Removes click cooldowns almost everywhere.

Still have: doors, windoors, cameras, windows, grilles, blobs, resisting, alien stuff, mechas, spray bottles.
Setting changeNextMove is now responsibility of the item being attacked.
Adds a config option to eliminate click cooldowns completely. Intended to be used by devs.
This commit is contained in:
Kelenius
2015-05-09 17:27:19 +03:00
parent 538ce2f3ea
commit 3fa79f8d51
33 changed files with 110 additions and 144 deletions
@@ -325,9 +325,12 @@
if(!req_breakout())
return
if(!escapee.canClick())
return
escapee.changeNextMove(100)
//okay, so the closet is either welded or locked... resist!!!
escapee.next_move = world.time + 100
escapee.last_special = world.time + 100
escapee << "<span class='warning'>You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)</span>"
visible_message("<span class='danger'>The [src] begins to shake violently!</span>")
+3
View File
@@ -33,6 +33,7 @@
/obj/structure/grille/attack_hand(mob/user as mob)
user.changeNextMove(8)
playsound(loc, 'sound/effects/grillehit.ogg', 80, 1)
var/damage_dealt = 1
@@ -154,8 +155,10 @@
//window placing end
else if(istype(W, /obj/item/weapon/shard))
user.changeNextMove(8)
health -= W.force * 0.1
else if(!shock(user, 70))
user.changeNextMove(8)
playsound(loc, 'sound/effects/grillehit.ogg', 80, 1)
switch(W.damtype)
if("fire")
+3
View File
@@ -175,6 +175,7 @@
playsound(loc, 'sound/effects/Glasshit.ogg', 50, 1)
/obj/structure/window/attack_hand(mob/user as mob)
user.changeNextMove(8)
if(HULK in user.mutations)
user.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!"))
user.visible_message("<span class='danger'>[user] smashes through [src]!</span>")
@@ -200,6 +201,7 @@
return
/obj/structure/window/attack_generic(var/mob/user, var/damage)
user.changeNextMove(8)
if(!damage)
return
if(damage >= 10)
@@ -268,6 +270,7 @@
new glasstype(loc)
qdel(src)
else
user.changeNextMove(8)
if(W.damtype == BRUTE || W.damtype == BURN)
hit(W.force)
if(health <= 7)