Skip to content

Commit

Permalink
Reverted cooldown (decided it was unnecessary)
Browse files Browse the repository at this point in the history
  • Loading branch information
BasilHerb committed Nov 20, 2024
1 parent ade2bc6 commit 3fb6ceb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions code/modules/projectiles/guns/smartgun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -294,23 +294,10 @@
name = "Toggle Frontline Mode"
action_icon_state = "iff_toggle_on"
listen_signal = COMSIG_KB_HUMAN_WEAPON_TOGGLE_FRONTLINE_MODE
cooldown = 1 SECONDS
button.name = name
button.overlays.Cut()
button.overlays += image ('icons/mob/hud/actions.dmi', button, action_icon_state)

/datum/action/item_action/smartgun/toggle_frontline_mode/can_use_action()
if(!..())
return FALSE
return action_cooldown_check()

/datum/action/item_action/smartgun/toggle_frontline_mode/update_button_icon()
. = ..()
if(!action_cooldown_check())
button.color = rgb(120,120,120,200)
else
button.color = rgb(255,255,255,255)

/datum/action/item_action/smartgun/toggle_frontline_mode/action_activate()
. = ..()
var/obj/item/weapon/gun/smartgun/G = holder_item
Expand Down

0 comments on commit 3fb6ceb

Please sign in to comment.