Wrda
Spell Reviewer
- Joined
- Nov 18, 2012
- Messages
- 1,911
You could use a hashtable to map the ability to the build unit type using a hashtable, it will most likely be faster than looping through all the array
I think you can actually return the item charge to the inventory by "uses an item", since this event is triggered after the construction event. You'd basically register the building and associate it with the unit who built.
So if unit dies, check if has a "tiny" builder associated with, and give the charge back
Quite a useful system that expands on the "limit" concept from the standard way of building. If you want I can make an official review right now, but I don't think it is fair since it has this incompletion. Also, add GUI tag since you're also making support for it.
I think you can actually return the item charge to the inventory by "uses an item", since this event is triggered after the construction event. You'd basically register the building and associate it with the unit who built.
So if unit dies, check if has a "tiny" builder associated with, and give the charge back
Quite a useful system that expands on the "limit" concept from the standard way of building. If you want I can make an official review right now, but I don't think it is fair since it has this incompletion. Also, add GUI tag since you're also making support for it.