Adds click cooldowns to common healing and repair actions

This commit is contained in:
mwerezak
2015-12-06 00:23:49 -05:00
parent e4b95d6e8d
commit fa6c8415ea
6 changed files with 11 additions and 1 deletions
+1
View File
@@ -435,6 +435,7 @@
if(S.brute_dam)
if(S.brute_dam < ROBOLIMB_SELF_REPAIR_CAP)
S.heal_damage(15,0,0,1)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
user.visible_message("<span class='notice'>\The [user] patches some dents on \the [M]'s [S.name] with \the [src].</span>")
else if(S.open != 2)
user << "<span class='danger'>The damage is far too severe to patch over externally.</span>"