branchrust_reboot/main/0_cost_repair_fixcancel

2 Commits over 0 Days - ∞cph!

1 Year Ago
Marked PTZ item as having condition, fixes camera getting repaired when being picked up Also allows PTZ camera to be repaired in the repair bench
1 Year Ago
Added a new item definition field - treatAsComponentForRepairs Our repair cost calculation will automatically substitute any items in the Component category with another resource, but some deployables have been using items in the resource category like CCTV cameras as a crafting cost By marking an item as treatAsComponentForRepairs, it will use the desired behvaiour even though it's in the wrong category resepair wise Applied to RF Broadcaster, RF Receiver, Targeting Computer and CCTV camera This should fix repair behaviour on Auto Turrets and Computer Stations Also fixed some rounding issues that could result in a repair csot of 0 for a given resource, the minimum repair cost for any ingredient will now be 1 This behavioiur should be consistent between the hammer and the repair bench