wowgetoffyourcellphone Posted December 24, 2020 Report Share Posted December 24, 2020 Even if a building is undeletable (a CC for example), I think a placed foundation of the building should still be deletable if it hasn't yet been touched by a hammer. So, if you place a CC foundation, but no unit has started constructing it yet, then it should be deletable. Quote Link to comment Share on other sites More sharing options...
Freagarach Posted December 24, 2020 Report Share Posted December 24, 2020 In templates/special/filter/foundation.xml one can change the undeletable flag: <Identity merge=""/> to <Identity merge=""> <Undeletable>false</Undeletable> </Identity> But it might be that when the hammer touches the foundation (i.e. the foundation is committed) it still is deletable then. 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted December 24, 2020 Author Report Share Posted December 24, 2020 2 hours ago, Freagarach said: In templates/special/filter/foundation.xml one can change the undeletable flag: <Identity merge=""/> to <Identity merge=""> <Undeletable>false</Undeletable> </Identity> But it might be that when the hammer touches the foundation (i.e. the foundation is committed) it still is deletable then. Thank you. The "ideal" threshold might be 50% finished or 1% finished or 99% finished. Your solution looks like it'll make the threshold 99% which is okay to me for now, but others might want something more comprehensive. 1 Quote Link to comment Share on other sites More sharing options...
wraitii Posted December 24, 2020 Report Share Posted December 24, 2020 Are you talking about the "virtual" foundation that doesn't block movement? That's in "construction.xml", not foundation.xml 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted December 24, 2020 Author Report Share Posted December 24, 2020 15 minutes ago, wraitii said: Are you talking about the "virtual" foundation that doesn't block movement? That's in "construction.xml", not foundation.xml Right, but I'd rather let the player the ability to delete it up to 99% completion (after thinking about it a bit) so foundation.xml works fine. If I change my mind back I'll switch it to construction.xml. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.