Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] FIX: Makes Hatsune mi-go a (friendly) gold slime mob #2684

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions code/modules/mob/living/basic/space_fauna/netherworld/migo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,21 @@
/mob/living/basic/migo/proc/update_dodge_chance(health_ratio)
dodge_prob = LERP(50, 10, health_ratio)

/mob/living/basic/migo/proc/make_migo_sound()
playsound(src, pick(migo_sounds), 50, TRUE)

/mob/living/basic/migo/send_speech(message_raw, message_range, obj/source, bubble_type, list/spans, datum/language/message_language, list/message_mods, forced, tts_message, list/tts_filter)
. = ..()
if(stat != CONSCIOUS)
return
playsound(src, pick(migo_sounds), 50, TRUE)
make_migo_sound()

/mob/living/basic/migo/Life(seconds_per_tick = SSMOBS_DT, times_fired)
..()
if(stat)
return
if(SPT_PROB(5, seconds_per_tick))
var/chosen_sound = pick(migo_sounds)
playsound(src, chosen_sound, 50, TRUE)
make_migo_sound()

/mob/living/basic/migo/Move(atom/newloc, dir, step_x, step_y)
if(!ckey && prob(dodge_prob) && moving_diagonally == 0 && isturf(loc) && isturf(newloc))
Expand All @@ -82,4 +84,15 @@
desc = parent_type::desc + " This one is wearing a bright blue wig."
icon_state = "mi-go-h"
icon_living = "mi-go-h"
gold_core_spawnable = NO_SPAWN

gender = FEMALE
gold_core_spawnable = FRIENDLY_SPAWN
faction = list(FACTION_NEUTRAL)

/mob/living/basic/migo/hatsune/make_migo_sound()
playsound(src, 'sound/creatures/tourist/tourist_talk_japanese1.ogg', 50, TRUE)

/mob/living/basic/migo/hatsune/Initialize(mapload)
. = ..()
var/static/list/death_loot = list(/obj/item/instrument/piano_synth)
AddElement(/datum/element/death_drops, death_loot)
Loading