Skip to content

Commit

Permalink
Fixes changing ghost sprites for BYOND members (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
xPokee committed May 29, 2024
1 parent 5dfb50c commit 6512f8a
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
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.

0 comments on commit 6512f8a

Please sign in to comment.