mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
fixes being unable to rename paper (#23269)
* fixes being unable to rename paper * Update code/modules/paperwork/paper.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> --------- Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
@@ -98,8 +98,14 @@
|
||||
|
||||
if(is_pen(user.get_active_hand()))
|
||||
rename(user)
|
||||
else
|
||||
return ..()
|
||||
return
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/I = H.is_in_hands(/obj/item/paper)
|
||||
if(I)
|
||||
ProcFoldPlane(H, I)
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/item/paper/proc/rename(mob/user)
|
||||
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
|
||||
|
||||
@@ -108,20 +108,6 @@
|
||||
E.take_damage(8, 1)
|
||||
H.emote("scream")
|
||||
|
||||
/obj/item/paper/AltClick(mob/user, obj/item/I)
|
||||
if(in_range(user, src) && !user.incapacitated())
|
||||
if(is_pen(user.get_active_hand()))
|
||||
rename()
|
||||
return
|
||||
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
I = H.is_in_hands(/obj/item/paper)
|
||||
if(I)
|
||||
ProcFoldPlane(H, I)
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/paper/proc/ProcFoldPlane(mob/living/carbon/user, obj/item/I)
|
||||
if(istype(user))
|
||||
if((!in_range(src, user)) || user.stat || user.restrained())
|
||||
|
||||
Reference in New Issue
Block a user