mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Fix for hardsuit modifications
When suits are turned to tajaran or unathi types, any helmets on the suit are put on the floor.
This commit is contained in:
@@ -35,7 +35,13 @@
|
||||
if(istype(I,/obj/item/weapon/modkit/tajaran))
|
||||
user.drop_item()
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
user << "\red You painstakingly modify [src] to make it more suitable for a Tajaran user."
|
||||
if(helmet)
|
||||
helmet.loc = get_turf(src)
|
||||
src.helmet = null
|
||||
user << "\red You painstakingly modify [src] to make it more suitable for a Tajaran user. You pop the helmet on the floor"
|
||||
else
|
||||
user << "\red You painstakingly modify [src] to make it more suitable for a Tajaran user."
|
||||
|
||||
new /obj/item/clothing/suit/space/rig/tajara(user.loc)
|
||||
del(I)
|
||||
del(src)
|
||||
@@ -43,7 +49,13 @@
|
||||
if(istype(I,/obj/item/weapon/modkit/unathi))
|
||||
user.drop_item()
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
user << "\red You painstakingly modify [src] to make it more suitable for a Tajaran user."
|
||||
if(helmet)
|
||||
helmet.loc = get_turf(src)
|
||||
src.helmet = null
|
||||
user << "\red You painstakingly modify [src] to make it more suitable for a Unathi user. You pop the helmet on the floor"
|
||||
else
|
||||
user << "\red You painstakingly modify [src] to make it more suitable for a Unathi user."
|
||||
|
||||
new /obj/item/clothing/suit/space/rig/unathi(user.loc)
|
||||
del(I)
|
||||
del(src)
|
||||
|
||||
Reference in New Issue
Block a user