mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
Adds Character Loadout Tab to preferences (with just a small handful of items to start) (#83521)
## About The Pull Request Adds a Character Loadout Tab to the preference menu This tab lets you pick items to start the round with  This also has some additional mechanics, such as being able to recolor colorable items, rename certain items (such as plushies), set item skins (such as the pride pin)  ## Why It's Good For The Game This has been headcoder sanctioned for some time, just no one did it. So here we are. Allows players to add some additional customization to their characters. Keeps us from cluttering the quirks list with quirks that do nothing but grants items. ## Changelog 🆑 Melbert add: Character Loadouts del: Pride Pin quirk (it's in the Loadout menu now) /🆑
This commit is contained in:
@@ -225,8 +225,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
|
||||
return TRUE
|
||||
if ("rotate")
|
||||
character_preview_view.dir = turn(character_preview_view.dir, -90)
|
||||
|
||||
character_preview_view.setDir(turn(character_preview_view.dir, -90))
|
||||
return TRUE
|
||||
if ("set_preference")
|
||||
var/requested_preference_key = params["preference"]
|
||||
@@ -351,6 +350,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
var/mob/living/carbon/human/dummy/body
|
||||
/// The preferences this refers to
|
||||
var/datum/preferences/preferences
|
||||
/// Whether we show current job clothes or nude/loadout only
|
||||
var/show_job_clothes = TRUE
|
||||
|
||||
/atom/movable/screen/map_view/char_preview/Initialize(mapload, datum/preferences/preferences)
|
||||
. = ..()
|
||||
@@ -368,16 +369,14 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
create_body()
|
||||
else
|
||||
body.wipe_state()
|
||||
appearance = preferences.render_new_preview_appearance(body)
|
||||
|
||||
appearance = preferences.render_new_preview_appearance(body, show_job_clothes)
|
||||
|
||||
/atom/movable/screen/map_view/char_preview/proc/create_body()
|
||||
QDEL_NULL(body)
|
||||
|
||||
body = new
|
||||
|
||||
// Without this, it doesn't show up in the menu
|
||||
body.appearance_flags &= ~KEEP_TOGETHER
|
||||
|
||||
/datum/preferences/proc/create_character_profiles()
|
||||
var/list/profiles = list()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user