From f8a4de28233a07673efa8bc111638ea09a4008f3 Mon Sep 17 00:00:00 2001 From: eyespy <104491498+eyespy2222@users.noreply.github.com> Date: Thu, 4 May 2023 18:34:16 +1000 Subject: [PATCH] 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) --- GainStation13/code/mobs/chocoslime.dm | 48 +++++++++++++++++++++++ GainStation13/icons/mob/candymonster.dmi | Bin 601 -> 706 bytes tgstation.dme | 1 + 3 files changed, 49 insertions(+) create mode 100644 GainStation13/code/mobs/chocoslime.dm diff --git a/GainStation13/code/mobs/chocoslime.dm b/GainStation13/code/mobs/chocoslime.dm new file mode 100644 index 00000000..8e963585 --- /dev/null +++ b/GainStation13/code/mobs/chocoslime.dm @@ -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 + + + diff --git a/GainStation13/icons/mob/candymonster.dmi b/GainStation13/icons/mob/candymonster.dmi index bbdb9018648784039e5e4b13085581096aef886f..d1f7380503f2b15ecf49518ea00b2abf0bd294bd 100644 GIT binary patch delta 523 zcmV+m0`&da1i}T77Ybkm0{{R35VmRyks&$(k&#?@e_12kzW9{X#1!nh4YAmRSGlr+ ztDg(l`v4}BO7#WNQV9S60kug)K~z|U?U%7`gD?<=@f%>Gs$FA1%I>1>jp*J~);&Pg z%9Il)Rm#sG)_ z!G9nClTV}JbJziV-sldO9x!aNQ3PPhZ(vS_e>@w`XM;8PH5!L|NY1Ny}Yp_Ko{(LBKUVaK!i%3uBZxmK_7lEgD$3?xvk^? z00CP`L_t(YiS3q6Zi6rog_#>*qN?4-fRw$9x^G1HNoCCes%G6TkPko?J$B8n$77I% zx(sjk?DvfWGBZh%UAwkOSZxUiDP>LMRv@I?CqSEVId>$+SY+y*< z$YMYd1@NB$8z6B2W5Af0_t`vH09ZlpLkTh+miz+2`hWEA&wc3+jpNhxQ7&Pc00000 M2uVdwM6N<$g2%hKH2?qr diff --git a/tgstation.dme b/tgstation.dme index 7c065417..d6d2b944 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -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"