Merge pull request #11605 from mwerezak/click-cooldown

Adds click cooldowns
This commit is contained in:
Chinsky
2015-12-07 19:56:23 +03:00
11 changed files with 19 additions and 2 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>"