hmm, seems messy too to do it through Sciences...
It came to me, another way to 'disable' an upgrade is through conflicting upgrades... hmm
You see, basically I have managed to code the old C&C building placement behavior with the help of other coders, mainly ravage.
What I have left to do, is replicate some method of prepurchasing a structure before placing it, the idea is that the Cons yard has several 'Drones' to build, each of these drones are a prerequisite to certain buildings, you build one and then you can use the placement icon of that building (the Drone will be destroyed then by a weapon from that building).
The problem is, you can select any upgrade and this confuses the player about the prerequisites as you can pay for a structure yet not place it as you have not built its building prerequisites.
I suppose I am lucky to get this far, If I can implement a cancel structure button it shoudln't be too bad.
|