Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes changing ghost sprites for BYOND members #173

Merged
merged 3 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 56 additions & 2 deletions code/_globalvars/lists/flavor_misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,62 @@ GLOBAL_LIST_INIT(mutant_reference_list, list())
//references wag types to regular types, wings open to wings, etc
GLOBAL_LIST_INIT(mutant_transform_list, list())

GLOBAL_LIST_INIT(ghost_forms_with_directions_list, list("ghost")) //stores the ghost forms that support directional sprites
GLOBAL_LIST_INIT(ghost_forms_with_accessories_list, list("ghost")) //stores the ghost forms that support hair and other such things
GLOBAL_LIST_INIT(ghost_forms_with_directions_list, list(
"ghost",
"ghostian",
"ghostian2",
"ghostking",
"ghost_red",
"ghost_black",
"ghost_blue",
"ghost_yellow",
"ghost_green",
"ghost_pink",
"ghost_cyan",
"ghost_dblue",
"ghost_dred",
"ghost_dgreen",
"ghost_dcyan",
"ghost_grey",
"ghost_dyellow",
"ghost_dpink",
"skeleghost",
"ghost_purpleswirl",
"ghost_rainbow",
"ghost_fire",
"ghost_funkypurp",
"ghost_pinksherbert",
"ghost_blazeit",
"ghost_mellow",
"ghost_camo",
"catghost")) //stores the ghost forms that support directional sprites

GLOBAL_LIST_INIT(ghost_forms_with_accessories_list, list(
"ghost",
"ghost_red",
"ghost_black",
"ghost_blue",
"ghost_yellow",
"ghost_green",
"ghost_pink",
"ghost_cyan",
"ghost_dblue",
"ghost_dred",
"ghost_dgreen",
"ghost_dcyan",
"ghost_grey",
"ghost_dyellow",
"ghost_dpink",
"skeleghost",
"ghost_purpleswirl",
"ghost_rainbow",
"ghost_fire",
"ghost_funkypurp",
"ghost_pinksherbert",
"ghost_blazeit",
"ghost_mellow",
"ghost_camo",))
//stores the ghost forms that support hair and other such things

GLOBAL_LIST_INIT(ai_core_display_screens, list(
":thinking:",
Expand Down
3 changes: 3 additions & 0 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/new_form = input(user, "Thanks for supporting BYOND - Choose your ghostly form:","Thanks for supporting BYOND",null) as null|anything in GLOB.ghost_forms
if(new_form)
ghost_form = new_form
if(isobserver(user))
var/mob/dead/observer/dude = user
dude.Login()
if("ghostorbit")
if(unlock_content)
var/new_orbit = input(user, "Thanks for supporting BYOND - Choose your ghostly orbit:","Thanks for supporting BYOND", null) as null|anything in GLOB.ghost_orbits
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/dead/observer/login.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
if (isturf(T))
update_z(T.z)

update_icon(preferred_form)
update_icon(new_form = preferred_form)
updateghostimages()
Binary file modified icons/mob/mob.dmi
Binary file not shown.
Loading