wowgetoffyourcellphone Posted December 24, 2020 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. Link to comment Share on other sites More sharing options...
Freagarach Posted December 24, 2020 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 Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted December 24, 2020 Author 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 Link to comment Share on other sites More sharing options...
wraitii Posted December 24, 2020 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 Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted December 24, 2020 Author 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now