From 5dd513f23f11fccf9db8f457e429fbfc4bae80bc Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 3 Jun 2021 23:18:08 +0200 Subject: [PATCH] [MIRROR] Custom Outfits can now remember their trims (#6104) * Custom Outfits can now remember their trims (#59446) So, someone did an oopsie and forgot to change outfit saving code, which meant that you couldn't save a custom outfit's ID trim. So, here I go, fixing that, so we can actually customize what job our outfit would start as. Less copy-pasting for admins, and feex good. Also, I was worried that it might not be compatible with previous custom outfits, and it's 100% compatible with old .json files for outfits that didn't have an id_trim set. * Custom Outfits can now remember their trims Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> --- code/datums/outfit.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/datums/outfit.dm b/code/datums/outfit.dm index d3f8673a5dd..1def91f371b 100755 --- a/code/datums/outfit.dm +++ b/code/datums/outfit.dm @@ -336,6 +336,7 @@ .["ears"] = ears .["glasses"] = glasses .["id"] = id + .["id_trim"] = id_trim .["l_pocket"] = l_pocket .["r_pocket"] = r_pocket .["suit_store"] = suit_store @@ -363,6 +364,7 @@ ears = target.ears glasses = target.glasses id = target.id + id_trim = target.id_trim l_pocket = target.l_pocket r_pocket = target.r_pocket suit_store = target.suit_store @@ -401,6 +403,7 @@ ears = text2path(outfit_data["ears"]) glasses = text2path(outfit_data["glasses"]) id = text2path(outfit_data["id"]) + id_trim = text2path(outfit_data["id_trim"]) l_pocket = text2path(outfit_data["l_pocket"]) r_pocket = text2path(outfit_data["r_pocket"]) suit_store = text2path(outfit_data["suit_store"])