Merge pull request #5641 from avabee/patch-3

Fixes several typos with oxygen_pump.dm.
This commit is contained in:
Anewbe
2018-10-09 15:35:26 -05:00
committed by VirgoBot
parent ec3fb80f97
commit e362c66f51

View File

@@ -33,7 +33,7 @@
if(breather.internals) if(breather.internals)
breather.internals.icon_state = "internal0" breather.internals.icon_state = "internal0"
breather.remove_from_mob(contained) breather.remove_from_mob(contained)
visible_message("<span class='notice'>The mask rapidly retracts just before /the [src] is destroyed!</span>") visible_message("<span class='notice'>\The [contained] rapidly retracts just before /the [src] is destroyed!</span>")
breather = null breather = null
QDEL_NULL(tank) QDEL_NULL(tank)
@@ -45,11 +45,11 @@
if(istype(target) && CanMouseDrop(target)) if(istype(target) && CanMouseDrop(target))
if(!can_apply_to_target(target, usr)) // There is no point in attempting to apply a mask if it's impossible. if(!can_apply_to_target(target, usr)) // There is no point in attempting to apply a mask if it's impossible.
return return
usr.visible_message("\The [usr] begins placing the mask onto [target]..") usr.visible_message("\The [usr] begins placing \the [contained] onto [target].")
if(!do_mob(usr, target, 25) || !can_apply_to_target(target, usr)) if(!do_mob(usr, target, 25) || !can_apply_to_target(target, usr))
return return
// place mask and add fingerprints // place mask and add fingerprints
usr.visible_message("\The [usr] has placed \the mask on [target]'s mouth.") usr.visible_message("\The [usr] has placed \the [contained] on [target]'s mouth.")
attach_mask(target) attach_mask(target)
src.add_fingerprint(usr) src.add_fingerprint(usr)
@@ -69,7 +69,7 @@
tank.forceMove(src) tank.forceMove(src)
breather.remove_from_mob(contained) breather.remove_from_mob(contained)
contained.forceMove(src) contained.forceMove(src)
src.visible_message("<span class='notice'>\The [user] makes \The [contained] rapidly retracts back into \the [src]!</span>") src.visible_message("<span class='notice'>\The [user] makes \the [contained] rapidly retract back into \the [src]!</span>")
if(breather.internals) if(breather.internals)
breather.internals.icon_state = "internal0" breather.internals.icon_state = "internal0"
breather = null breather = null
@@ -112,7 +112,7 @@
to_chat(user, "<span class='warning'>There is no tank in \the [src].</span>") to_chat(user, "<span class='warning'>There is no tank in \the [src].</span>")
return return
if(stat & MAINT) if(stat & MAINT)
to_chat(user, "<span class='warning'>Please close \the maintenance hatch first.</span>") to_chat(user, "<span class='warning'>Please close the maintenance hatch first.</span>")
return return
if(!Adjacent(target)) if(!Adjacent(target))
to_chat(user, "<span class='warning'>Please stay close to \the [src].</span>") to_chat(user, "<span class='warning'>Please stay close to \the [src].</span>")
@@ -123,18 +123,15 @@
return return
//Checking if breather is still valid //Checking if breather is still valid
if(target == breather && target.wear_mask != contained) if(target == breather && target.wear_mask != contained)
to_chat(user, "<span class='warning'>\The [target] is not using the supplied mask.</span>") to_chat(user, "<span class='warning'>\The [target] is not using the supplied [contained].</span>")
return return
return 1 return 1
/obj/machinery/oxygen_pump/attackby(obj/item/weapon/W as obj, mob/user as mob) /obj/machinery/oxygen_pump/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(W.is_screwdriver()) if(W.is_screwdriver())
stat ^= MAINT stat ^= MAINT
user.visible_message("<span class='notice'>\The [user] [stat & MAINT ? "opens" : "closes"] \the [src].</span>", "<span class='notice'>You [stat & MAINT ? "open" : "close"] \the [src].</span>") user.visible_message("<span class='notice'>\The [user] [(stat & MAINT) ? "opens" : "closes"] \the [src].</span>", "<span class='notice'>You [(stat & MAINT) ? "open" : "close"] \the [src].</span>")
if(stat & MAINT) icon_state = (stat & MAINT) ? icon_state_open : icon_state_closed
icon_state = icon_state_open
if(!stat)
icon_state = icon_state_closed
//TO-DO: Open icon //TO-DO: Open icon
if(istype(W, /obj/item/weapon/tank) && (stat & MAINT)) if(istype(W, /obj/item/weapon/tank) && (stat & MAINT))
if(tank) if(tank)
@@ -151,7 +148,7 @@
/obj/machinery/oxygen_pump/examine(var/mob/user) /obj/machinery/oxygen_pump/examine(var/mob/user)
. = ..() . = ..()
if(tank) if(tank)
to_chat(user, "The meter shows [round(tank.air_contents.return_pressure())]") to_chat(user, "The meter shows [round(tank.air_contents.return_pressure())] kPa.")
else else
to_chat(user, "<span class='warning'>It is missing a tank!</span>") to_chat(user, "<span class='warning'>It is missing a tank!</span>")