# AIHarvestBonus

FlagsNative

# Arguments

  • int — player
  • fixed — bonus

Returns — void

native void AIHarvestBonus(int player, fixed bonus);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:111

    if (diff == c_skirChInsane) {
        // insane starts at 1.2 and ramps to 2.0
        AIHarvestBonus(player, 1.2);
    }
    

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeAI.galaxy:137

        }
    }
    AIHarvestBonus(player, harvestBonus);
}

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:147

    if (diff == c_skirChInsane) {
        // insane starts at 1.2 and ramps to 2.0
        AIHarvestBonus(player, 1.2);
    }
    

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/MeleeAI.galaxy:137

        }
    }
    AIHarvestBonus(player, harvestBonus);
}

mods/warcoop/warmeleeai.sc2modbase.sc2data/LibW3AI.galaxy:60

            AISetDifficulty(lv_p, c_diffLimitAPM, false);
            if ((PlayerDifficulty(lv_p) >= 6)) {
                AIHarvestBonus(lv_p,3);
            }

mods/warcoop/warmeleeai.sc2modbase.sc2data/LibW3AI.galaxy:64


            if ((PlayerDifficulty(lv_p) >= 9)) {
                AIHarvestBonus(lv_p,6);
            }