Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Drathek <[email protected]>
  • Loading branch information
Red-byte3D and Drulikar authored Nov 5, 2024
1 parent cf4fa27 commit 5778e7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions code/__DEFINES/client_prefs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#define TOGGLE_START_JOIN_CURRENT_SLOT (1<<16) // Whether joining at roundstart ignores assigned character slot for the job and uses currently selected slot.
#define TOGGLE_LATE_JOIN_CURRENT_SLOT (1<<17) //Whether joining during the round ignores assigned character slot for the job and uses currently selected slot.
#define TOGGLE_ABILITY_DEACTIVATION_OFF (1<<18) // This toggles whether selecting the same ability again can toggle it off
#define TOGGLE_AMMO_DISPLAY_TYPE (1<<19)/// limit how often the ammo is displayed when using semi-automatic fire
#define TOGGLE_AUTO_SHOVE (1<<20)
#define TOGGLE_AMMO_DISPLAY_TYPE (1<<19) // limit how often the ammo is displayed when using semi-automatic fire
#define TOGGLE_AUTO_SHOVE (1<<20) // Whether a xeno will automatically shove when walking if possible

#define JOB_SLOT_RANDOMISED_SLOT -1
#define JOB_SLOT_CURRENT_SLOT 0
Expand Down
10 changes: 1 addition & 9 deletions code/modules/client/preferences_toggles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
to_chat(src, SPAN_BOLDNOTICE("You will now automatically shove anyone in your way as the Queen."))
else
to_chat(src, SPAN_BOLDNOTICE("You will no longer automatically shove anyone in your way as the Queen"))
prefs.save_preferences()

/client/proc/toggle_auto_eject() // Toggle whether guns with auto-ejectors will automatically eject magazines
prefs.toggle_prefs ^= TOGGLE_AUTO_EJECT_MAGAZINE_OFF
Expand Down Expand Up @@ -357,15 +358,6 @@
to_chat(src, SPAN_BOLDNOTICE("The 'Unload Weapon' verb will no longer put magazines in your offhand."))
prefs.save_preferences()

/client/proc/toggle_automatic_shove()
prefs.toggle_prefs ^= TOGGLE_AUTO_SHOVE
if(prefs.toggle_prefs & TOGGLE_AUTO_SHOVE)
to_chat(src, SPAN_BOLDNOTICE("You will now automatically shove people."))
else
to_chat(src, SPAN_BOLDNOTICE("You will no longer automatically shove people as the Queen"))
prefs.save_preferences()


/client/proc/toggle_automatic_punctuation() // Toggle whether your sentences are automatically punctuated
prefs.toggle_prefs ^= TOGGLE_AUTOMATIC_PUNCTUATION
if(prefs.toggle_prefs & TOGGLE_AUTOMATIC_PUNCTUATION)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/castes/Queen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
for(var/mob/living/carbon/xenomorph/xeno in new_loc.contents)
if(xeno.pass_flags.flags_pass & (PASS_MOB_THRU_XENO|PASS_MOB_THRU) && !(xeno.flags_pass_temp & PASS_MOB_THRU))
continue
if(xeno.hivenumber == hivenumber && queen.client?.prefs && (queen.client?.prefs?.toggle_prefs & TOGGLE_AUTO_SHOVE))
if(xeno.hivenumber == hivenumber && (queen.client?.prefs?.toggle_prefs & TOGGLE_AUTO_SHOVE))
xeno.KnockDown((5 DECISECONDS) / GLOBAL_STATUS_MULTIPLIER)
playsound(src, 'sound/weapons/alien_knockdown.ogg', 25, 1)

Expand Down

0 comments on commit 5778e7c

Please sign in to comment.