Skip to content

Commit

Permalink
two more fixes, firedoor nad survery handheld do afters
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Jun 9, 2024
1 parent 35490d1 commit fee75aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/doors/firedoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
if(!welded && !operating && !(machine_stat & NOPOWER) && (!density || allow_hand_open(user)))
user.visible_message("[user] tries to open \the [src] manually.",
"You operate the manual lever on \the [src].")
if (!do_after(user, 30, src, TRUE))
if (!do_after(user, 30, src))
return FALSE
add_fingerprint(user)
if(density)
Expand Down Expand Up @@ -174,7 +174,7 @@
if(is_holding_pressure())
// tell the user that this is a bad idea, and have a do_after as well
to_chat(user, "<span class='warning'>As you begin crowbarring \the [src] a gush of air blows in your face... maybe you should reconsider?</span>")
if(!do_after(user, 20, src, TRUE)) // give them a few seconds to reconsider their decision.
if(!do_after(user, 20, src)) // give them a few seconds to reconsider their decision.
return
log_game("[key_name(user)] has opened a firelock with a pressure difference at [AREACOORD(loc)]")
user.log_message("has opened a firelock with a pressure difference at [AREACOORD(loc)]", LOG_ATTACK)
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/survery_handheld.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
src_turf.visible_message("<span class='warning'>Warning: unable to locate valuable information in current sector.</span>")
break

if(!do_after(user, list(src), survey_delay / penalty))
if(!do_after(user, survey_delay / penalty, src))
flick(icon_state + "-corrupted", src)
playsound(src, 'sound/machines/buzz-sigh.ogg', 20)
src_turf.visible_message("<span class='warning'>Warning: results corrupted. Please try again.</span>")
Expand Down

0 comments on commit fee75aa

Please sign in to comment.