[MIRROR] Gulag teleporters now give prison jumpskirt according to player preferences. (#596)

* Gulag teleporters now give prison jumpskirt according to player preferences. (#53171)

* It now gives jumpskirts when it should.

* Code improvement (tm)

* Comment.

* Gulag teleporters now give prison jumpskirt according to player preferences.

Co-authored-by: uomo <51800976+uomo91@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-02 02:58:27 +02:00
committed by GitHub
co-authored by uomo
parent 3970ca73fd
commit 0627476aa6
+3 -1
View File
@@ -21,6 +21,7 @@ The console is located at computer/gulag_teleporter.dm
var/message_cooldown
var/breakout_time = 600
var/jumpsuit_type = /obj/item/clothing/under/rank/prisoner
var/jumpskirt_type = /obj/item/clothing/under/rank/prisoner/skirt
var/shoes_type = /obj/item/clothing/shoes/sneakers/orange
var/obj/machinery/gulag_item_reclaimer/linked_reclaimer
var/static/list/telegulag_required_items = typecacheof(list(
@@ -151,7 +152,8 @@ The console is located at computer/gulag_teleporter.dm
strip_occupant()
var/mob/living/carbon/human/prisoner = occupant
if(!isplasmaman(prisoner) && jumpsuit_type)
prisoner.equip_to_appropriate_slot(new jumpsuit_type)
var/suit_or_skirt = prisoner.jumpsuit_style == PREF_SKIRT ? jumpskirt_type : jumpsuit_type //Check player prefs for jumpsuit or jumpskirt toggle, then give appropriate prison outfit.
prisoner.equip_to_appropriate_slot(new suit_or_skirt)
if(shoes_type)
prisoner.equip_to_appropriate_slot(new shoes_type)
if(id)