Skip to content

Zombie api gadget expanded - #5835

Draft
Stiofan-K wants to merge 4 commits into
ZeroK-RTS:masterfrom
Stiofan-K:zombie_revive_for_all
Draft

Stiofan-K wants to merge 4 commits into
ZeroK-RTS:masterfrom
Stiofan-K:zombie_revive_for_all

Conversation

@Stiofan-K

Copy link
Copy Markdown
Contributor

Moves the rez queue functionality of zombies to the api and makes accessible for other things.

Moves the rez queue functionality to the api and makes accessible for other things via a callback function.
Except I havent figured out how to get the callback funciton to work correctly.
Comment thread LuaRules/Gadgets/unit_global_zombie_resurrect.lua Outdated
Comment thread LuaRules/Gadgets/api_zombie_helper.lua
Comment thread LuaRules/Gadgets/api_zombie_helper.lua
Comment thread LuaRules/Gadgets/api_zombie_helper.lua
Comment thread LuaRules/Gadgets/api_zombie_helper.lua Outdated
if ud and not NonZombies[resName] then
local rezTime = ud.metalCost / buildpower
if (rezTime < minRezTime) then
rezTime = minRezTime

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace

Thx Steelblue
who knew functions accept only as many arguments as they request!

new zombies also do their thing on rez correctly
thxthx anyhow. needs to be fixed at some point eh?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants