Add hallucinogen poison to frog attacks (#67572)

* Add frog hallucingen effects

* Add frog to venomous code comment
This commit is contained in:
Tim
2022-06-07 20:34:23 -05:00
committed by GitHub
parent 3635fff5fa
commit cdf0a3c58a
2 changed files with 7 additions and 1 deletions
@@ -33,6 +33,10 @@
worn_slot_flags = ITEM_SLOT_HEAD
head_icon = 'icons/mob/animal_item_head.dmi'
var/stepped_sound = 'sound/effects/huuu.ogg'
///How much of a reagent the mob injects on attack
var/poison_per_bite = 3
///What reagent the mob injects targets with
var/poison_type = /datum/reagent/drug/space_drugs
/mob/living/simple_animal/hostile/retaliate/frog/Initialize(mapload)
. = ..()
@@ -46,11 +50,13 @@
icon_living = "rare_frog"
icon_dead = "rare_frog_dead"
butcher_results = list(/obj/item/food/nugget = 5)
poison_type = /datum/reagent/drug/mushroomhallucinogen
var/static/list/loc_connections = list(
COMSIG_ATOM_ENTERED = .proc/on_entered,
)
AddElement(/datum/element/connect_loc, loc_connections)
AddElement(/datum/element/venomous, poison_type, poison_per_bite)
add_cell_sample()
/mob/living/simple_animal/hostile/retaliate/frog/proc/on_entered(datum/source, AM as mob|obj)