Air Units: Difference between revisions
Line 39: | Line 39: | ||
|'''T_HELI'''<ref>Same Unit as Transport Copters</ref>|| N/A | |'''T_HELI'''<ref>Same Unit as Transport Copters</ref>|| N/A | ||
|- | |- | ||
|'''DUSTER'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref> | |'''DUSTER'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref>|| N/A | ||
|- | |- | ||
|'''BOMBER''' | |'''BOMBER'''||N/A | ||
|- | |- | ||
|'''STEALTHBOMBER''' | |'''STEALTHBOMBER'''||N/A | ||
|- | |- | ||
|'''TRANSPORTPLANE''' | |'''TRANSPORTPLANE'''||N/A | ||
|- | |- | ||
|'''FIGHTER''' | |'''FIGHTER'''||N/A | ||
|- | |- | ||
|'''WATERPLANE'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref> | |'''WATERPLANE'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref>||N/A | ||
|- | |- | ||
|'''ZCOUNIT_KIROV'''<ref>CO Unit of Tasha, Eagle, Waylon</ref> | |'''ZCOUNIT_KIROV'''<ref>CO Unit of Tasha, Eagle, Waylon</ref>||N/A | ||
|- | |- | ||
|'''BLACK_BOMB''' | |'''BLACK_BOMB'''||N/A | ||
|- | |- | ||
|} | |} |
Revision as of 21:03, 5 October 2023
Air Units' stats and properties can be modified as a whole, by using the GameEnums.UnitType_Air variable.For instance:
CO_TEST.getOffensiveBonus = function (co, attacker, atkPosX, atkPosY,
defender, defPosX, defPosY, isDefender, action,luckmode, map) {
if (co.getIsCO0() === true) {
switch (co.getPowerMode()) {
case GameEnums.PowerMode_Power:
if (attacker.getUnitType() === GameEnums.UnitType_Air) {
return 30;
}
break;
//rest of the code goes here
}
}
}
Increases the Offense of Air Units by 30% during the CO Power.
Modifying stats or properties of specific Units
Each Unit can be modified through a comparison of the UnitID. The Unit ID can be obtained through unit.getUnitID() And it's of a String type.
Possible values are, along with their weapon names:
Air Units | Weapon Strings |
---|---|
K_HELI[1] | N/A |
T_HELI[2] | N/A |
DUSTER[3] | N/A |
BOMBER | N/A |
STEALTHBOMBER | N/A |
TRANSPORTPLANE | N/A |
FIGHTER | N/A |
WATERPLANE[4] | N/A |
ZCOUNIT_KIROV[5] | N/A |
BLACK_BOMB | N/A |
Of these, the ones with the ZCOUNIT_ prefix are Units specific to COs that cannot be deployed by the rest.