Fix cloning (#1610)

-fix clones spawning dead
-fix #1603
-fix welding tools ignoring robotic limb damage cap
This commit is contained in:
Alberyk
2017-01-19 21:47:06 +02:00
committed by skull132
parent 3869aad2d4
commit 0e8e6adcf1
5 changed files with 11 additions and 1 deletions
+3
View File
@@ -313,6 +313,9 @@
// Welder is switched off!
user << "<span class='warning'>You need to light the welding tool, first!</span>"
return
if(S.brute_dam > ROBOLIMB_SELF_REPAIR_CAP)
user << "<span class='warning'>The damage is far too severe to patch over externally.</span>"
return
if (src.remove_fuel(0))
// Use a bit of fuel and repair
S.heal_damage(15,0,0,1)