(Created page with "Air Units' stats and properties can be modified as a whole, by using the '''GameEnums.UnitType_Air''' variable.For instance: <syntaxhighlight lang="javascript"> 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() === GameEnu...")
 
Line 33: Line 33:
!colspan="10"|Ground Units
!colspan="10"|Ground Units
|-
|-
|style="text-align: center;"|'''INFANTRY'''
|style="text-align: center;"|'''K_HELI'''<ref>Same Unit as Battlecopters</ref>
|style="text-align: center;"|'''MECH'''
|style="text-align: center;"|'''T_HELI'''<ref>Same Unit as Transport Copters</ref>
|style="text-align: center;"|'''SNIPER'''
|style="text-align: center;"|'''DUSTER'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref>
|style="text-align: center;"|'''MOTORBIKE'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref>
|style="text-align: center;"|'''BOMBER'''
|-
|-
|style="text-align: center;"|'''ZCOUNIT_PARTISAN'''<ref>CO Unit of Kindle, Alexander</ref>
|style="text-align: center;"|'''STEALTHBOMBER'''
|style="text-align: center;"|'''ZCOUNIT_COMMANDO'''<ref>CO Unit of Sensei, Sophie, Sami  </ref>
|style="text-align: center;"|'''TRANSPORTPLANE'''
|style="text-align: center;"|'''ZCOUNIT_RANGER'''<ref>CO Unit of Cairn </ref>
|style="text-align: center;"|'''FIGHTER''
|style="text-align: center;"|'''ZCOUNIT_AT_CYCLE'''<ref>CO Unit of Grimm, Flak, Roboandy, Beast, Mary </ref>
|style="text-align: center;"|'''WATERPLANE'''<ref>Same Unit as that from Days of Ruin/Dark Conflict</ref>
|-
|style="text-align: center;"|'''ZCOUNIT_KIROV'''<ref>CO Unit of Tasha, Eagle, Waylon</ref>
|}
|}



Revision as of 05:28, 3 March 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:

Ground Units
K_HELI[1] T_HELI[2] DUSTER[3] BOMBER
STEALTHBOMBER TRANSPORTPLANE 'FIGHTER WATERPLANE[4]
ZCOUNIT_KIROV[5]


Of these, the ones with the ZCOUNIT_ prefix are Units specific to COs that cannot be deployed by the rest.

Notes

  1. Same Unit as Battlecopters
  2. Same Unit as Transport Copters
  3. Same Unit as that from Days of Ruin/Dark Conflict
  4. Same Unit as that from Days of Ruin/Dark Conflict
  5. CO Unit of Tasha, Eagle, Waylon