Skip to content

Commit

Permalink
Update species_attack.dm
Browse files Browse the repository at this point in the history
There's the define, thanks for nothing staging-sierra
  • Loading branch information
UEDCommander authored Apr 10, 2024
1 parent 05f73b0 commit f7cd9d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mods/unathi/code/species_attack.dm
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#define VENOM_ON_ATTACK_LOWER_TRESHOLD 0.875

/datum/unarmed_attack/bite/venom/yeosa
var/poison_per_bite = 8
var/poison_type = /datum/reagent/toxin/yeosvenom
attack_verb = list("bit", "sank their fangs into")
attack_sound = 'sound/weapons/bite.ogg'
attack_name = "venomous bite"
damage = 1
delay = 30
delay = 3 SECONDS

/datum/unarmed_attack/bite/venom/yeosa/apply_effects(mob/living/carbon/human/user, mob/living/carbon/human/target, armour, attack_damage, zone)
..()
Expand All @@ -15,9 +17,11 @@
if(istype(S) && !length(S.breaches))
return
if(target.reagents)
target.reagents.add_reagent(src.poison_type, rand(0.875 * src.poison_per_bite, src.poison_per_bite))
target.reagents.add_reagent(src.poison_type, rand(VENOM_ON_ATTACK_LOWER_TRESHOLD * src.poison_per_bite, src.poison_per_bite))
if(prob(src.poison_per_bite))
to_chat(H, SPAN_WARNING("You feel a tiny prick."))

/datum/unarmed_attack/bite/venom/yeosa/get_damage_type()
return DAMAGE_BRUTE

#undef VENOM_ON_ATTACK_LOWER_TRESHOLD

0 comments on commit f7cd9d0

Please sign in to comment.