Skip to content

Commit

Permalink
Review + user
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Jul 5, 2023
1 parent 1a2f622 commit d61902c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions code/game/objects/items/tools/flame_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
/obj/item/tool/match/process(delta_time)
smoketime -= delta_time SECONDS
if(smoketime < 1)
var/user
if(istype(loc, /mob))
user = loc
burn_out(user)
burn_out()
return

/obj/item/tool/match/Destroy()
Expand Down Expand Up @@ -173,13 +170,20 @@ CIGARETTE PACKETS ARE IN FANCY.DM
damtype = "brute"
icon_state = "[initial(icon_state)]_burnt"
item_state = "cigoff"
if(user)
user.SetLuminosity(0, FALSE, src)
SetLuminosity(0)
name = burnt_name
desc = "A match. This one has seen better days."
STOP_PROCESSING(SSobj, src)

if(user)
user.SetLuminosity(0, FALSE, src)
return

if(ismob(loc))
user = loc
user.SetLuminosity(0, FALSE, src)
return

/obj/item/tool/match/paper
name = "paper match"
desc = "A simple match stick, used for lighting fine smokables."
Expand Down

0 comments on commit d61902c

Please sign in to comment.