📄 misctype.java
字号:
misc.criticals = 6; misc.hittable = false; misc.spreadable = true; misc.flags |= F_TSM; misc.bv = 0; return misc; } public static MiscType createC3S() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_2; misc.name = "C3 Slave"; misc.setInternalName("ISC3SlaveUnit"); misc.addLookupName("IS C3 Slave"); misc.tonnage = 1; misc.criticals = 1; misc.hittable = true; misc.spreadable = false; misc.cost = 250000; misc.flags |= F_C3S; misc.bv = 0; return misc; } public static MiscType createC3I() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_2; misc.name = "C3i Computer"; misc.setInternalName("ISC3iUnit"); misc.addLookupName("ISImprovedC3CPU"); misc.addLookupName("IS C3i Computer"); misc.tonnage = 2.5f; misc.criticals = 2; misc.hittable = true; misc.spreadable = false; misc.cost = 750000; misc.flags |= F_C3I; misc.bv = 0; return misc; } public static MiscType createISArtemis() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_2; misc.name = "Artemis IV FCS"; misc.setInternalName("ISArtemisIV"); misc.addLookupName("IS Artemis IV FCS"); misc.tonnage = 1.0f; misc.criticals = 1; misc.cost = 100000; misc.flags |= F_ARTEMIS; return misc; } public static MiscType createCLArtemis() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_CLAN_LEVEL_2; misc.name = "Artemis IV FCS"; misc.setInternalName("CLArtemisIV"); misc.addLookupName("Clan Artemis IV FCS"); misc.tonnage = 1.0f; misc.cost = 100000; misc.criticals = 1; misc.flags |= F_ARTEMIS; return misc; } public static MiscType createGECM() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_2; misc.name = "Guardian ECM Suite"; misc.setInternalName("ISGuardianECMSuite"); misc.addLookupName("IS Guardian ECM"); misc.addLookupName("ISGuardianECM"); misc.addLookupName("IS Guardian ECM Suite"); misc.tonnage = 1.5f; misc.criticals = 2; misc.hittable = true; misc.cost = 200000; misc.spreadable = false; misc.flags |= F_ECM; misc.bv = 61; misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false); return misc; } public static MiscType createCLECM() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_CLAN_LEVEL_2; misc.name = "ECM Suite"; misc.setInternalName("CLECMSuite"); misc.addLookupName("Clan ECM Suite"); misc.tonnage = 1; misc.criticals = 1; misc.cost = 200000; misc.hittable = true; misc.spreadable = false; misc.flags |= F_ECM; misc.bv = 61; misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false); return misc; } public static MiscType createISAngelECM() { MiscType misc = new MiscType(); // Don't forget, this will eventually count double for ECCM. misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Angel ECM Suite"; misc.setInternalName("ISAngelECMSuite"); misc.addLookupName("IS Angel ECM Suite"); misc.addLookupName("ISAngelECM"); misc.tonnage = 2; misc.criticals = 2; misc.cost = 750000; misc.hittable = true; misc.spreadable = false; misc.flags |= F_ECM | F_ANGEL_ECM; misc.bv = 100; misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false); return misc; } public static MiscType createISTHBAngelECM() { MiscType misc = new MiscType(); // Don't forget, this will eventually count double for ECCM. misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "THB Angel ECM Suite"; misc.setInternalName("ISTHBAngelECMSuite"); misc.addLookupName("IS THB Angel ECM Suite"); misc.addLookupName("ISTHBAngelECM"); misc.tonnage = 1.5f; misc.criticals = 2; misc.cost = 1000000; misc.hittable = true; misc.spreadable = false; misc.flags |= F_ECM | F_ANGEL_ECM; misc.bv = 100; misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false); return misc; } public static MiscType createCLAngelECM() { MiscType misc = new MiscType(); // Don't forget, this will eventually count double for ECCM. misc.techLevel = TechConstants.T_CLAN_LEVEL_3; misc.name = "Clan Angel ECM Suite"; misc.setInternalName("CLAngelECMSuite"); misc.addLookupName("Clan Angel ECM Suite"); misc.addLookupName("CLAngelECM"); misc.tonnage = 1.5f; misc.criticals = 2; misc.cost = 750000; misc.hittable = true; misc.spreadable = false; misc.flags |= F_ECM | F_ANGEL_ECM; misc.bv = 100; misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false); return misc; } public static MiscType createWatchdogECM() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_CLAN_LEVEL_3; misc.name = "Watchdog ECM Suite"; misc.setInternalName("WatchdogECMSuite"); misc.addLookupName("Watchdog ECM Suite"); misc.addLookupName("WatchdogECM"); misc.addLookupName("CLWatchdogECM"); misc.tonnage = 1; misc.criticals = 1; misc.cost = 500000; misc.hittable = true; misc.spreadable = false; misc.flags |= F_ECM | F_BAP; misc.bv = 73; misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false); return misc; } public static MiscType createSword() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_2; misc.name = "Sword"; misc.setInternalName(misc.name); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.cost = COST_VARIABLE; misc.flags |= F_CLUB; misc.subType |= S_SWORD; misc.bv = BV_VARIABLE; return misc; } public static MiscType createTHBMace() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Mace (THB)"; misc.setInternalName(misc.name); misc.addLookupName("THB Mace"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.cost = COST_VARIABLE; misc.flags |= F_CLUB; misc.subType |= S_MACE_THB; misc.bv = BV_VARIABLE; return misc; } public static MiscType createMace() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Mace"; misc.setInternalName(misc.name); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.cost = 130000; misc.flags |= F_CLUB; misc.subType |= S_MACE; misc.bv = BV_VARIABLE; return misc; } public static MiscType createBackhoe() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Backhoe"; misc.setInternalName(misc.name); misc.tonnage = 5; misc.criticals = 6; misc.cost = 50000; misc.flags |= F_CLUB; misc.subType |= S_BACKHOE; misc.bv = 8; return misc; } public static MiscType createDualSaw() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Dual Saw"; misc.setInternalName(misc.name); misc.tonnage = 7; misc.criticals = 7; misc.cost = 100000; misc.flags |= F_CLUB; misc.subType |= S_DUAL_SAW; misc.bv = 9; return misc; } public static MiscType createPileDriver() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Pile Driver"; misc.setInternalName(misc.name); misc.addLookupName("PileDriver"); misc.tonnage = 10; misc.criticals = 8; misc.cost = 100000; misc.flags |= F_CLUB; misc.subType |= S_PILE_DRIVER; misc.bv = 5; return misc; } public static MiscType createChainsaw() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name = "Chainsaw"; misc.setInternalName(misc.name); misc.tonnage = 5; misc.criticals = 5; misc.cost = 100000; misc.flags |= F_CLUB; misc.subType |= S_CHAINSAW; misc.bv = 7; return misc; } public static MiscType createArmoredCowl() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_3; misc.name="Armored Cowl"; misc.setInternalName(misc.name); misc.tonnage = 1; misc.criticals = 1; misc.cost = 10000; misc.flags |= F_COWL; misc.bv = 10; return misc; } /** * Targeting comps should NOT be spreadable. However, I've set them such * as a temp measure to overcome the following bug: * TC space allocation is calculated based on tonnage of direct-fire weaponry. * However, since meks are loaded location-by-location, when the TC is loaded * it's very unlikely that all of the weaponry will be attached, resulting in * undersized comps. Any remaining TC crits after the last expected one are * being handled as a 2nd TC, causing LocationFullExceptions. */ public static MiscType createISTargComp() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_IS_LEVEL_2; misc.name = "Targeting Computer"; misc.setInternalName("ISTargeting Computer"); misc.addLookupName("IS Targeting Computer"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.cost = COST_VARIABLE; misc.bv = BV_VARIABLE; misc.flags |= F_TARGCOMP; // see note above misc.spreadable = true; String[] modes = { "Normal", "Aimed shot" }; misc.setModes(modes); return misc; } public static MiscType createCLTargComp() { MiscType misc = new MiscType(); misc.techLevel = TechConstants.T_CLAN_LEVEL_2; misc.name = "Targeting Computer"; misc.setInternalName("CLTargeting Computer"); misc.addLookupName("Clan Targeting Computer"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.cost = COST_VARIABLE; misc.bv = BV_VARIABLE;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -