Fixes bumbles resting (#11564)
* Fixes bumbles resting * Update code/modules/mob/living/simple_animal/friendly/bumbles.dm Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com> * Update bumbles.dm * Update bumbles.dm Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -5,10 +5,10 @@
|
|||||||
icon_living = "bumbles"
|
icon_living = "bumbles"
|
||||||
icon_dead = "bumbles_dead"
|
icon_dead = "bumbles_dead"
|
||||||
turns_per_move = 1
|
turns_per_move = 1
|
||||||
response_help = "shoos"
|
response_help = "pets"
|
||||||
response_disarm = "brushes aside"
|
response_disarm = "brushes aside"
|
||||||
response_harm = "squashes"
|
response_harm = "squashes"
|
||||||
speak_emote = list("bzzzs")
|
speak_emote = list("buzzes")
|
||||||
maxHealth = 100
|
maxHealth = 100
|
||||||
health = 100
|
health = 100
|
||||||
harm_intent_damage = 1
|
harm_intent_damage = 1
|
||||||
@@ -20,10 +20,12 @@
|
|||||||
mob_size = MOB_SIZE_TINY
|
mob_size = MOB_SIZE_TINY
|
||||||
mob_biotypes = MOB_ORGANIC|MOB_BEAST
|
mob_biotypes = MOB_ORGANIC|MOB_BEAST
|
||||||
gold_core_spawnable = FRIENDLY_SPAWN
|
gold_core_spawnable = FRIENDLY_SPAWN
|
||||||
verb_say = "bzzs"
|
verb_say = "buzzs"
|
||||||
verb_ask = "bzzs inquisitively"
|
verb_ask = "buzzes inquisitively"
|
||||||
verb_exclaim = "bzzs intensely"
|
verb_exclaim = "buzzes intensely"
|
||||||
verb_yell = "bzzs intensely"
|
verb_yell = "buzzes intensely"
|
||||||
|
emote_see = list("buzzes.", "makes a loud buzz.", "rolls several times.", "buzzes happily.")
|
||||||
|
speak_chance = 1
|
||||||
|
|
||||||
/mob/living/simple_animal/pet/bumbles/Initialize()
|
/mob/living/simple_animal/pet/bumbles/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -44,3 +46,22 @@
|
|||||||
|
|
||||||
/mob/living/simple_animal/pet/bumbles/bee_friendly()
|
/mob/living/simple_animal/pet/bumbles/bee_friendly()
|
||||||
return TRUE //treaty signed at the Beeneeva convention
|
return TRUE //treaty signed at the Beeneeva convention
|
||||||
|
|
||||||
|
/mob/living/simple_animal/pet/bumbles/handle_automated_movement()
|
||||||
|
. = ..()
|
||||||
|
if(!isturf(loc) || !CHECK_MOBILITY(src, MOBILITY_MOVE) || buckled)
|
||||||
|
return
|
||||||
|
if(!resting && prob(1))
|
||||||
|
emote("me", EMOTE_VISIBLE, pick("curls up on the surface below ", "is looking very sleepy.", "buzzes softly ", "looks around for a flower nap "))
|
||||||
|
set_resting(TRUE)
|
||||||
|
else if (resting && prob(1))
|
||||||
|
emote("me", EMOTE_VISIBLE, pick("wakes up with a smiling buzz.", "rolls upside down before waking up.", "stops resting."))
|
||||||
|
set_resting(FALSE)
|
||||||
|
/mob/living/simple_animal/pet/bumbles/update_mobility()
|
||||||
|
. = ..()
|
||||||
|
if(stat != DEAD)
|
||||||
|
if(!CHECK_MOBILITY(src, MOBILITY_STAND))
|
||||||
|
icon_state = "[icon_living]_rest"
|
||||||
|
else
|
||||||
|
icon_state = "[icon_living]"
|
||||||
|
regenerate_icons()
|
||||||
|
|||||||
Reference in New Issue
Block a user