Forbid the items shot by siege engines if the forbid ammo order is set.

This only applies when targeting the engine, so you could still make
cheaty infinite ammo training units by using stock aiming mode.
develop
Alexander Gavrilov 2014-03-24 16:05:12 +04:00
parent 97ae857c38
commit 8963a49414
1 changed files with 4 additions and 0 deletions

@ -1619,6 +1619,10 @@ struct projectile_hook : df::proj_itemst {
aimAtArea(engine, skill); aimAtArea(engine, skill);
} }
bool forbid_ammo = DF_GLOBAL_VALUE(standing_orders_forbid_used_ammo, false);
if (forbid_ammo)
item->flags.bits.forbid = true;
switch (item->getType()) switch (item->getType())
{ {
case item_type::CAGE: case item_type::CAGE: