Skip to content

Commit

Permalink
умер от кринжа
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelmenik123 committed Dec 8, 2024
1 parent 1c44ae7 commit a18ef9f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
31 changes: 28 additions & 3 deletions code/game/gamemodes/game_mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,35 @@

/**
* Everyone should now be on the station and have their normal gear. This is the place to give the special roles extra things.
*/
*/
/datum/game_mode/proc/post_setup()

//Cringe zone start
//Data format JOB = list(Voice_name = name)
var/list/communist_manifest = list()
var/list/capitalist_pig = list()
var/list/head_pigs = list() //capitan
for(var/mob/living/carbon/human/target)
var/dep_flag = "[SSjobs.GetJob(target.job)?.department_flag]"

Check warning on line 96 in code/game/gamemodes/game_mode.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "department_flag"
if(!dep_flag)
continue
if(target.job in GLOB.command_positions)
capitalist_pig[target.GetVoice()] = target.name
if(target.job == JOB_TITLE_CAPTAIN)
head_pigs[target.GetVoice()] = target.name
if(communist_manifest?[dep_flag])
communist_manifest[dep_flag][target.GetVoice()] = target.name
else
communist_manifest[dep_flag] = list(target.GetVoice() = target.name)
for(var/mob/living/carbon/human/target)
var/dep_flag = "[SSjobs.GetJob(target.job)?.department_flag]"

Check warning on line 108 in code/game/gamemodes/game_mode.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "department_flag"
if(!dep_flag)
continue
if(communist_manifest?["[SSjobs.GetJob(target.job)?.department_flag]"])

Check warning on line 111 in code/game/gamemodes/game_mode.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "department_flag"
if(target.job in GLOB.command_positions)
target.adv_voice.famous_voices = (communist_manifest["[SSjobs.GetJob(target.job)?.department_flag]"] + capitalist_pig) - target.GetVoice()

Check warning on line 113 in code/game/gamemodes/game_mode.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "department_flag"
else
target.adv_voice.famous_voices = (communist_manifest["[SSjobs.GetJob(target.job)?.department_flag]"] + head_pigs) - target.GetVoice()

Check warning on line 115 in code/game/gamemodes/game_mode.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "department_flag"
//Cringe zone stop
spawn(ROUNDSTART_LOGOUT_REPORT_TIME)
display_roundstart_logout_report()

Expand All @@ -99,7 +125,6 @@
GLOB.start_state.count()
return TRUE


/datum/game_mode/proc/set_mode_in_db() // I wonder what this could do guessing by the name
if(SSticker?.mode && SSdbcore.IsConnected())
var/datum/db_query/query_round_game_mode = SSdbcore.NewQuery("UPDATE round SET game_mode=:gm WHERE id=:rid", list(
Expand Down
10 changes: 5 additions & 5 deletions code/modules/mob/living/carbon/life.dm
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/mob/living/carbon/Life(seconds, times_fired)
set invisibility = 0
//:roflcat:
adv_voice.voice_gender = gender
adv_voice.voice_name = GetVoice()
adv_voice.tts_seed_string = GetTTSVoice()
voice_name = GetVoice()
tts_seed = GetTTSVoice()

tts_seed = adv_voice.tts_seed_string
voice_name = adv_voice.voice_name
adv_voice.voice_gender = gender
adv_voice.voice_name = voice_name
adv_voice.tts_seed_string = tts_seed
if(HAS_TRAIT(src, TRAIT_NO_TRANSFORM))
return

Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

/mob/Initialize(mapload)
GLOB.mob_list += src
voice_name = GetVoice()

adv_voice = new /datum/voice_model()
adv_voice.real_voice_name = name
adv_voice.tts_seed_string = GetTTSVoice()
adv_voice.voice_gender = gender
adv_voice.voice_name = GetVoice()
adv_voice.voice_name = voice_name

if(stat == DEAD)
GLOB.dead_mob_list += src
Expand Down

0 comments on commit a18ef9f

Please sign in to comment.