From 024efabf096275d26f976f69ef847e5b5a7aa01b Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 11 Jun 2017 20:47:55 -0500 Subject: [PATCH] IED code cleanup --- code/game/objects/items/weapons/grenades/ghettobomb.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/weapons/grenades/ghettobomb.dm b/code/game/objects/items/weapons/grenades/ghettobomb.dm index 76f3c8ac73..40c61306d2 100644 --- a/code/game/objects/items/weapons/grenades/ghettobomb.dm +++ b/code/game/objects/items/weapons/grenades/ghettobomb.dm @@ -15,10 +15,10 @@ det_time = 50 display_timer = 0 var/range = 3 - var/times = list() + var/list/times -/obj/item/weapon/grenade/iedcasing/New(loc) - ..() +/obj/item/weapon/grenade/iedcasing/Initialize() + . = ..() add_overlay("improvised_grenade_filled") add_overlay("improvised_grenade_wired") times = list("5" = 10, "-1" = 20, "[rand(30,80)]" = 50, "[rand(65,180)]" = 20)// "Premature, Dud, Short Fuse, Long Fuse"=[weighting value] @@ -43,7 +43,7 @@ if(!active) if(clown_check(user)) to_chat(user, "You light the [name]!") - active = 1 + active = TRUE cut_overlay("improvised_grenade_filled") icon_state = initial(icon_state) + "_active" add_fingerprint(user)