Anti-bait gadget leaves the application of defaults to whoever controls the unit:
|
-- The gadget sets a default of zero for compatibility with AIs and other uncontrolled units. |
|
-- Widget space or the AI interface is responsible for turning this behaviour on. |
The Chicken AI gadget could apply the default anti-bait level to the units it spawns. This way modders could make bursty chickens that aren't trivialized by bait.
Anti-bait gadget leaves the application of defaults to whoever controls the unit:
Zero-K/LuaRules/Gadgets/unit_bait_prevention.lua
Lines 144 to 145 in 9dd3604
The Chicken AI gadget could apply the default anti-bait level to the units it spawns. This way modders could make bursty chickens that aren't trivialized by bait.