Chocolate slimes!

Adds chocolate slimes that give nutriment to people when they hit them (if they have the pref for weapon based weight gain on)
This commit is contained in:
eyespy
2023-05-04 18:34:16 +10:00
parent b80acfa79c
commit f8a4de2823
3 changed files with 49 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
/mob/living/simple_animal/hostile/feed
var/food_per_feeding = 5
var/food_fed = /datum/reagent/consumable/nutriment
/mob/living/simple_animal/hostile/feed/AttackingTarget()
. = ..()
var/mob/living/carbon/L = target
if(L.client.prefs.weight_gain_weapons)
if(L.reagents)
if(!L.is_mouth_covered(head_only = 1))
L.reagents.add_reagent(food_fed, food_per_feeding)
/mob/living/simple_animal/hostile/feed/chocolate_slime
name = "Chocolate slime"
desc = "It's a living blob of tasty chocolate!"
icon = 'GainStation13/icons/mob/candymonster.dmi'
icon_state = "a_c_slime"
icon_living = "a_c_slime"
icon_dead = "a_c_slime_dead"
speak_emote = list("blorbles")
emote_hear = list("blorbles")
speak_chance = 5
turns_per_move = 5
see_in_dark = 10
butcher_results = list(/obj/item/reagent_containers/food/snacks/chocolatebar = 4)
response_help = "pets"
response_disarm = "shoos"
response_harm = "hits"
maxHealth = 100
health = 100
obj_damage = 0
melee_damage_lower = 1
melee_damage_upper = 1
faction = list("slime")
pass_flags = PASSTABLE
move_to_delay = 7
ventcrawler = VENTCRAWLER_ALWAYS
attacktext = "glorps"
attack_sound = 'sound/weapons/tap.ogg'
unique_name = 1
gold_core_spawnable = HOSTILE_SPAWN
see_in_dark = 4
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE
initial_language_holder = /datum/language_holder/slime
environment_smash = ENVIRONMENT_SMASH_STRUCTURES
Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 706 B

+1
View File
@@ -3081,6 +3081,7 @@
#include "GainStation13\code\mechanics\wand.dm"
#include "GainStation13\code\mechanics\web_weaving.dm"
#include "GainStation13\code\mobs\cakegolem.dm"
#include "GainStation13\code\mobs\chocoslime.dm"
#include "GainStation13\code\mobs\races\caloritegolem.dm"
#include "GainStation13\code\modules\client\preferences\preferences.dm"
#include "GainStation13\code\modules\food_and_drinks\drinks\drinks.dm"