From d53dca7322de92d15088bc5cd77743d8eb108b69 Mon Sep 17 00:00:00 2001
From: Ghom <42542238+Ghommie@users.noreply.github.com>
Date: Wed, 3 Jun 2020 00:30:22 +0200
Subject: [PATCH] Fixing just a couple issues. (#12417)
---
code/datums/skills/_skill_holder.dm | 2 +-
code/modules/client/preferences.dm | 8 ++++----
code/modules/clothing/head/misc.dm | 1 +
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/code/datums/skills/_skill_holder.dm b/code/datums/skills/_skill_holder.dm
index 071db3306a..0a5c4f8f58 100644
--- a/code/datums/skills/_skill_holder.dm
+++ b/code/datums/skills/_skill_holder.dm
@@ -191,7 +191,7 @@
/datum/mind/proc/skill_html_readout()
var/list/out = list("
Skills
")
out += "| Skill | Value |
"
- for(var/path in skill_holder.skills|skill_holder.skill_value_mods|skill_holder.skill_level_mods)
+ for(var/path in GLOB.skill_datums)
var/datum/skill/S = GLOB.skill_datums[path]
var/skill_value = get_skill_value(path)
var/skill_level = get_skill_level(path, round = TRUE)
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index 040b56f124..ec3656f007 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -2572,8 +2572,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
current_tab = text2num(href_list["tab"])
if(href_list["preference"] == "gear")
if(href_list["clear_loadout"])
- LAZYCLEARLIST(chosen_gear)
- gear_points = initial(gear_points)
+ chosen_gear = list()
+ gear_points = CONFIG_GET(number/initial_gear_points)
save_preferences()
if(href_list["select_category"])
for(var/i in GLOB.loadout_items)
@@ -2585,7 +2585,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
return
var/toggle = text2num(href_list["toggle_gear"])
if(!toggle && (G.type in chosen_gear))//toggling off and the item effectively is in chosen gear)
- LAZYREMOVE(chosen_gear, G.type)
+ chosen_gear -= G.type
gear_points += initial(G.cost)
else if(toggle && (!(is_type_in_ref_list(G, chosen_gear))))
if(!is_loadout_slot_available(G.category))
@@ -2595,7 +2595,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
to_chat(user, "This is an item intended for donator use only. You are not authorized to use this item.")
return
if(gear_points >= initial(G.cost))
- LAZYADD(chosen_gear, G.type)
+ chosen_gear += G.type
gear_points -= initial(G.cost)
ShowChoices(user)
diff --git a/code/modules/clothing/head/misc.dm b/code/modules/clothing/head/misc.dm
index 8627887492..7604703bdf 100644
--- a/code/modules/clothing/head/misc.dm
+++ b/code/modules/clothing/head/misc.dm
@@ -434,3 +434,4 @@
desc = "A symbol of discipline, honor, and lots and lots of removal of some type of skewered food."
icon_state = "russobluecamohat"
item_state = "russobluecamohat"
+ dynamic_hair_suffix = ""