Merge pull request #13985 from bgobandit/bugfixesandshit

Fixes some minor bugs and adds minor feedback.
This commit is contained in:
tkdrg
2015-12-25 18:24:25 -03:00
3 changed files with 10 additions and 5 deletions

View File

@@ -923,7 +923,10 @@ About the new airlock wires panel:
else if(istype(C, /obj/item/weapon/airlock_painter))
change_paintjob(C, user)
else if(istype(C, /obj/item/device/doorCharge) && p_open)
else if(istype(C, /obj/item/device/doorCharge))
if(!p_open)
user << "<span class='warning'>The maintenance panel must be open to apply [C]!</span>"
return
if(emagged)
return
if(charge && !detonated)

View File

@@ -32,8 +32,10 @@
if(T && (M == user || do_after(user, 50)))
if(user && M && (get_turf(M) == T) && src && imp)
if(imp.implant(M, user))
user << "<span class='notice'>You implant the implant into [M].</span>"
M.visible_message("[user] has implanted [M].", "<span class='notice'>[user] implants you with the implant.</span>")
if (M == user)
user << "<span class='notice'>You implant yourself.</span>"
else
M.visible_message("[user] has implanted [M].", "<span class='notice'>[user] implants you.</span>")
imp = null
update_icon()

View File

@@ -183,7 +183,7 @@
)
if( ! ( item_to_add.type in allowed_types ) )
usr << "<span class='warning'>You set [item_to_add] on [src]'s back, but \he shakes it off!</span>"
usr << "<span class='warning'>You set [item_to_add] on [src]'s back, but it falls off!</span>"
if(!usr.drop_item())
usr << "<span class='warning'>\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s back!</span>"
return
@@ -260,7 +260,7 @@
if(user && !user.drop_item())
user << "<span class='warning'>\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!</span>"
return 0
user << "<span class='warning'>You set [item_to_add] on [src]'s head, but \he shakes it off!</span>"
user << "<span class='warning'>You set [item_to_add] on [src]'s head, but it falls off!</span>"
item_to_add.loc = loc
if(prob(25))
step_rand(item_to_add)