Added weapon durability and malfunction mechanics.
Added building templates; right-click while holding a block to select a template.
Adjusted sell prices at trading terminals.
Adjusted the durability of dropped AI equipment and the quantity of dropped ammunition.
Fixed an issue that could cause a crash when exiting the game.