Skip to content

Commit

Permalink
add snail
Browse files Browse the repository at this point in the history
  • Loading branch information
MistakeNot4892 authored and comma committed Oct 22, 2024
1 parent 00d073e commit 13159d7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions code/modules/mob/living/simple_animal/friendly/snail.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// TODO: /obj/effect/decal/cleanable/snail_trail
/datum/mob_controller/snail
expected_type = /mob/living/simple_animal/snail
emote_see = list("retracts and extends its eyes")
speak_chance = 0
turns_per_wander = 20

/mob/living/simple_animal/snail
name = "snail"
desc = "A famous shelled mollusc known for carrying their home with them."
icon = 'icons/mob/simple_animal/snail.dmi'
mob_size = MOB_SIZE_TINY
base_movement_delay = 5 SECONDS
max_health = 1
butchery_data = null
ai = /datum/mob_controller/snail

/mob/living/simple_animal/snail/proc/smear(turf/smear_turf)
if(istype(smear_turf) && !(locate(/obj/effect/decal/cleanable/mucus) in smear_turf))
new /obj/effect/decal/cleanable/mucus(smear_turf)

/mob/living/simple_animal/snail/Move()
var/last_loc = loc
. = ..()
if(. && last_loc)
smear(last_loc)

/mob/living/simple_animal/snail/death(gibbed)
. = ..()
if(loc)
smear(loc)
new /obj/item/food/butchery/meat/fish/mollusc(get_turf(loc))
qdel(src)
Binary file added icons/mob/simple_animal/snail.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions nebula.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2980,6 +2980,7 @@
#include "code\modules\mob\living\simple_animal\friendly\lizard.dm"
#include "code\modules\mob\living\simple_animal\friendly\mushroom.dm"
#include "code\modules\mob\living\simple_animal\friendly\possum.dm"
#include "code\modules\mob\living\simple_animal\friendly\snail.dm"
#include "code\modules\mob\living\simple_animal\friendly\tomato.dm"
#include "code\modules\mob\living\simple_animal\hostile\_hostile.dm"
#include "code\modules\mob\living\simple_animal\hostile\antlion.dm"
Expand Down

0 comments on commit 13159d7

Please sign in to comment.