Skip to content

Commit

Permalink
fixes and sound proc overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 committed Mar 24, 2024
1 parent aa356e2 commit 30d42ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion code/__DEFINES/typecheck/humanoids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#define isSEA(A) (ishuman(A) && A.job == "Senior Enlisted Advisor")
#define issynth(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic))
#define iscolonysynthetic(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/colonial))
#define isworkingjoe(A) (iscolonysynthetic(A) && A.job == JOB_WORKING_JOE)
#define isworkingjoe(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/colonial/working_joe))
#define ishazardjoe(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/colonial/working_joe/hazard))
#define isinfiltratorsynthetic(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/infiltrator))

//Specic group checks, use instead of typechecks (but use traits instead)
Expand Down
7 changes: 0 additions & 7 deletions code/_globalvars/global_lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -549,14 +549,7 @@ GLOBAL_LIST_INIT(available_specialist_kit_boxes, list(
if(!(initial(emote.category) in GLOB.hj_categories))
GLOB.hj_categories += initial(emote.category)

//edits to the emotes
if(emote.haz_message)
emote.say_message = emote.haz_message

emote.sound = emote.haz_sound

emotes_to_add += emote

return emotes_to_add

GLOBAL_LIST_EMPTY(topic_tokens)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
var/override_say = ""
/// Path to hazard joe variant sound
var/haz_sound
/// Alt message for Hazard Joe voiceline, if empty, will play message instead. Should only be set if emote used for both joes
var/haz_message = ""
/// What Working Joe types can use this emote
var/joe_flag = WORKING_JOE_EMOTE

/datum/emote/living/carbon/human/synthetic/working_joe/get_sound(mob/living/user)
return ishazardjoe(user) ? haz_sound : sound
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/emote/living/carbon/human/synthetic/working_joe/quip
category = JOE_EMOTE_CATEGORY_QUIP

/datum/emote/living/carbon/human/synthetic/working_joe/quip/alwaysknow //THE FUNNY LINE
/datum/emote/living/carbon/human/synthetic/working_joe/quip/alwaysknow // THE FUNNY LINE
key = "alwaysknow"
key_third_person = "workingjoe"
sound = 'sound/voice/joe/alwaysknow.ogg'
Expand Down

0 comments on commit 30d42ee

Please sign in to comment.