Skip to content

Commit

Permalink
Merge branch 'Sandstorm-Station:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
MosleyTheMalO authored Oct 8, 2023
2 parents 0770dfc + e6ba821 commit 4742a61
Show file tree
Hide file tree
Showing 17 changed files with 536 additions and 590 deletions.
1 change: 1 addition & 0 deletions code/__SANDCODE/DEFINES/DNA.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define PREVIEW_PREF_JOB "Job"
#define PREVIEW_PREF_LOADOUT "Loadout"
#define PREVIEW_PREF_NAKED "Naked"
#define PREVIEW_PREF_NAKED_AROUSED "Naked - Aroused"
3 changes: 2 additions & 1 deletion code/modules/arousal/genitals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
return FALSE
if(!((HAS_TRAIT(owner,TRAIT_PERMABONER) && !new_state) || HAS_TRAIT(owner,TRAIT_NEVERBONER) && new_state))
aroused_state = new_state
owner.log_message("[src]'s arousal was [new_state ? "enabled" : "disabled"] due to [cause]", LOG_EMOTE)
if(cause)
owner.log_message("[src]'s arousal was [new_state ? "enabled" : "disabled"] due to [cause]", LOG_EMOTE)
return aroused_state

/obj/item/organ/genital/proc/update()
Expand Down
22 changes: 14 additions & 8 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,14 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "<center>"
dat += "<table width='100%'>"
dat += "<tr>"
dat += "<td width=35%>"
dat += "Preview:"
dat += "<td width=35% style=\"line-height:10px\">"
dat += "<center><b>Preview:</b></center><br>"
dat += "<center>"
dat += "<a href='?_src_=prefs;preference=character_preview;tab=[PREVIEW_PREF_JOB]' [preview_pref == PREVIEW_PREF_JOB ? "class='linkOn'" : ""]>[PREVIEW_PREF_JOB]</a>"
dat += "<a href='?_src_=prefs;preference=character_preview;tab=[PREVIEW_PREF_LOADOUT]' [preview_pref == PREVIEW_PREF_LOADOUT ? "class='linkOn'" : ""]>[PREVIEW_PREF_LOADOUT]</a>"
dat += "<a href='?_src_=prefs;preference=character_preview;tab=[PREVIEW_PREF_NAKED]' [preview_pref == PREVIEW_PREF_NAKED ? "class='linkOn'" : ""]>[PREVIEW_PREF_NAKED]</a>"
dat += "<a href='?_src_=prefs;preference=character_preview;tab=[PREVIEW_PREF_NAKED_AROUSED]' [preview_pref == PREVIEW_PREF_NAKED_AROUSED ? "class='linkOn'" : ""]>[PREVIEW_PREF_NAKED_AROUSED]</a>"
dat += "</center>"
dat += "</td>"
if(character_settings_tab == LOADOUT_CHAR_TAB) //if loadout
//calculate your gear points from the chosen item
Expand All @@ -521,16 +524,19 @@ GLOBAL_LIST_EMPTY(preferences_datums)
else
chosen_gear = list()

dat += "<td width=65%>"
dat += "<b><font color='[gear_points == 0 ? "#E62100" : "#CCDDFF"]'>[gear_points]</font> loadout point[gear_points == 1 ? "" : "s"] remaining <a href='?_src_=prefs;preference=gear;clear_loadout=1'>Clear Loadout</a></b>"
dat += "<td width=65% style=\"line-height:10px\">"
dat += "<center><b><font color='[gear_points == 0 ? "#E62100" : "#CCDDFF"]'>[gear_points]</font> loadout point[gear_points == 1 ? "" : "s"] remaining</center><br>"
dat += "<center><a href='?_src_=prefs;preference=gear;clear_loadout=1'>Clear Loadout</a></b></center>"
dat += "</td>"
else
dat += "<td width=35%>"
dat += "<b>Mismatched parts:</b> <a href='?_src_=prefs;preference=mismatched_markings;task=input'>[(show_mismatched_markings) ? "Enabled" : "Disabled"]</a>"
dat += "<td width=35% style=\"line-height:10px\">"
dat += "<center><b>Mismatched parts:</b></center><br>"
dat += "<center><a href='?_src_=prefs;preference=mismatched_markings;task=input'>[(show_mismatched_markings) ? "Enabled" : "Disabled"]</a></center>"
dat += "</td>"

dat += "<td width=30%>"
dat += "<b> Advanced colors:</b> <a href='?_src_=prefs;preference=color_scheme;task=input'>[(features["color_scheme"] == ADVANCED_CHARACTER_COLORING) ? "Enabled" : "Disabled"]</a>"
dat += "<td width=30% style=\"line-height:10px\">"
dat += "<center><b>Advanced colors:</b></center><br>"
dat += "<center><a href='?_src_=prefs;preference=color_scheme;task=input'>[(features["color_scheme"] == ADVANCED_CHARACTER_COLORING) ? "Enabled" : "Disabled"]</a></center>"
dat += "</td>"

dat += "</tr>"
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/dead/new_player/preferences_setup.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
if(PREVIEW_PREF_LOADOUT)
SSjob.equip_loadout(parent.mob, mannequin, bypass_prereqs = TRUE, can_drop = FALSE)
SSjob.post_equip_loadout(parent.mob, mannequin, bypass_prereqs = TRUE, can_drop = FALSE)
if(PREVIEW_PREF_NAKED_AROUSED)
for(var/obj/item/organ/genital/genital in mannequin.internal_organs)
if(CHECK_BITFIELD(genital.genital_flags, GENITAL_CAN_AROUSE))
genital.set_aroused_state(TRUE, null)

mannequin.regenerate_icons()

Expand Down
Loading

0 comments on commit 4742a61

Please sign in to comment.