jellewie / Unity-Gnorts

Gnorts an RTS unity game
11 stars 7 forks source link

Remove building Returns #39

Closed jellewie closed 5 years ago

jellewie commented 5 years ago

When building is removed and not used before (used tag is set when the fist NPC has been there) the return cost is 100%. Else it's 50%? Also it will move 75% of the stock to the stockpile and 90% of what the NPC is carrying if possible. '

There is a flag 'used' in 'BuildinOptions.cs' that when flagged does this, what is now needed is the trigger. I was thinking about a timer and just set every building to be used after X seconds (can be changed for each building) would this be the best option? or should things like walls only return less when there hit?

jellewie commented 5 years ago

Stone tower cost 40, will return 36 when not used, and 20 when used