# AIHarvestBonus
Flags —
Native
# Arguments
int
— playerfixed
— bonus
Returns — void
native void AIHarvestBonus(int player, fixed bonus);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/MeleeAI.galaxy:137
}
}
AIHarvestBonus(player, harvestBonus);
}
mods/starcoop/starcoop.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/MeleeAI.galaxy:137
}
}
AIHarvestBonus(player, harvestBonus);
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:60
AISetDifficulty(lv_p, c_diffLimitAPM, false);
if ((PlayerDifficulty(lv_p) >= 6)) {
AIHarvestBonus(lv_p,3);
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:64
if ((PlayerDifficulty(lv_p) >= 9)) {
AIHarvestBonus(lv_p,6);
}