mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 09:35:30 +01:00
basicmob clowns (#78448)
## About The Pull Request this is a mostly 1 to 1 port of simpleanimal clowns to basicmob clowns this means they have 1 more brain cell and they waddle https://github.com/tgstation/tgstation/assets/70376633/0c5f01c7-fea2-4d8c-9fc1-764c1557e1b8 ## Why It's Good For The Game  ## Changelog 🆑 refactor: clowns are basicmobs now /🆑 --------- Co-authored-by: san7890 <the@san7890.com> Co-authored-by: Jacquerel <hnevard@gmail.com>
This commit is contained in:
@@ -199,3 +199,19 @@
|
||||
speech_chance = 5
|
||||
emote_hear = list("rawrs.","grumbles.","grawls.", "stomps!")
|
||||
emote_see = list("stares ferociously.")
|
||||
|
||||
/datum/ai_planning_subtree/random_speech/blackboard //literal tower of babel, subtree form
|
||||
speech_chance = 1
|
||||
|
||||
/datum/ai_planning_subtree/random_speech/blackboard/SelectBehaviors(datum/ai_controller/controller, seconds_per_tick)
|
||||
var/list/speech_lines = controller.blackboard[BB_BASIC_MOB_SPEAK_LINES]
|
||||
if(isnull(speech_lines))
|
||||
return ..()
|
||||
|
||||
speak = speech_lines[BB_EMOTE_SAY] ? speech_lines[BB_EMOTE_SAY] : initial(speak)
|
||||
emote_see = speech_lines[BB_EMOTE_SEE] ? speech_lines[BB_EMOTE_SEE] : initial(emote_see)
|
||||
emote_hear = speech_lines[BB_EMOTE_HEAR] ? speech_lines[BB_EMOTE_HEAR] : initial(emote_hear)
|
||||
sound = speech_lines[BB_EMOTE_SOUND] ? speech_lines[BB_EMOTE_SOUND] : initial(sound)
|
||||
speech_chance = speech_lines[BB_EMOTE_CHANCE] ? speech_lines[BB_EMOTE_CHANCE] : initial(speech_chance)
|
||||
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user