From a78bc1a73cd6f98af96dfd07f358870e32c1d63b Mon Sep 17 00:00:00 2001 From: Sebbe9123 <31856346+Sebbe9123@users.noreply.github.com> Date: Mon, 21 Jan 2019 09:13:10 +0100 Subject: [PATCH] Adds Poisionous Koi. --- .../subtypes/animal/passive/fish_vr.dm | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 code/modules/mob/living/simple_mob/subtypes/animal/passive/fish_vr.dm diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish_vr.dm b/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish_vr.dm new file mode 100644 index 0000000000..039dfa7a42 --- /dev/null +++ b/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish_vr.dm @@ -0,0 +1,60 @@ +/mob/living/simple_mob/animal/passive/fish/koi/poisonous + desc = "A genetic marvel, combining the docility and aesthetics of the koi with some of the resiliency and cunning of the noble space carp." + health = 50 + maxHealth = 50 + +/mob/living/simple_mob/animal/passive/fish/koi/poisonous/New() + ..() + create_reagents(60) + reagents.add_reagent("toxin", 45) + reagents.add_reagent("impedrezene", 15) + +/mob/living/simple_mob/animal/passive/fish/koi/poisonous/Life() + ..() + if(isbelly(loc) && prob(10)) + var/obj/belly/B = loc + sting(B.owner) + +/mob/living/simple_mob/animal/passive/fish/koi/poisonous/attack_hand(mob/living/L) + ..() + if(isliving(L) && Adjacent(L)) + var/mob/living/M = L + visible_message("\The [src][is_dead()?"'s corpse":""] flails at [M]!") + SpinAnimation(7,1) + if(prob(75)) + if(sting(M)) + to_chat(M, "You feel a tiny prick.") + if(is_dead()) + return + for(var/i = 1 to 3) + var/turf/T = get_step_away(src, M) + if(T && is_type_in_list(T, suitable_turf_types)) + Move(T) + else + break + sleep(3) +/* +/mob/living/simple_mob/animal/passive/fish/koi/poisonous/react_to_attack(var/atom/A) + if(isliving(A) && Adjacent(A)) + var/mob/living/M = A + visible_message("\The [src][is_dead()?"'s corpse":""] flails at [M]!") + SpinAnimation(7,1) + if(prob(75)) + if(sting(M)) + to_chat(M, "You feel a tiny prick.") + if(is_dead()) + return + for(var/i = 1 to 3) + var/turf/T = get_step_away(src, M) + if(T && is_type_in_list(T, suitable_turf_types)) + Move(T) + else + break + sleep(3) +*/ +/mob/living/simple_mob/animal/passive/fish/koi/poisonous/proc/sting(var/mob/living/M) + if(!M.reagents) + return 0 + M.reagents.add_reagent("toxin", 2) + M.reagents.add_reagent("impedrezene", 1) + return 1 \ No newline at end of file