So kids, how would we refactor this?
https://github.com/LemonHaze420/DCPopulous/blob/master/popul...
https://github.com/LemonHaze420/DCPopulous/blob/master/popul...
On the other hand, it doesn’t seem to matter since people will buy Skyrim for their fridge for the 40th time over.
(For me personally, AlephOne for Marathon has some mysterious crashes every few days and it’s pretty annoying.)
Maybe if they had programmers who didn't suck*
Fixed for accuracy.
The main idea is to have a callback and iteration over entities you have (that match some condition/interface). This would refactor the code to .add_system(reduce_size).add_system(handle_magnet_carrier).add_system(...)..., where each section is a separate behaviour which can be tested in isolation.
/* if either paple magnet carrier is a knight make them drop the pm*/I mean, why refactor when something is so eminently readable?