mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 18:46:24 +01:00
Adds a coverage check to xenoflora splattering, adjusts brainloss across
the board.
This commit is contained in:
@@ -153,7 +153,6 @@
|
||||
|
||||
if(!body_coverage)
|
||||
return
|
||||
|
||||
target << "<span class='danger'>You are stung by \the [fruit]!</span>"
|
||||
for(var/rid in chems)
|
||||
var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/5))
|
||||
@@ -178,9 +177,20 @@
|
||||
for(var/mob/living/M in T.contents)
|
||||
if(!M.reagents)
|
||||
continue
|
||||
for(var/chem in chems)
|
||||
var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/3))
|
||||
M.reagents.add_reagent(chem,injecting)
|
||||
var/body_coverage = HEAD|FACE|EYES|UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
|
||||
for(var/obj/item/clothing/clothes in M)
|
||||
if(M.l_hand == clothes || M.r_hand == clothes)
|
||||
continue
|
||||
body_coverage &= ~(clothes.body_parts_covered)
|
||||
if(!body_coverage)
|
||||
continue
|
||||
var/datum/reagents/R = M.reagents
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(istype(H))
|
||||
R = H.touching
|
||||
if(istype(R))
|
||||
for(var/chem in chems)
|
||||
R.add_reagent(chem,min(5,max(1,get_trait(TRAIT_POTENCY)/3)))
|
||||
|
||||
//Applies an effect to a target atom.
|
||||
/datum/seed/proc/thrown_at(var/obj/item/thrown,var/atom/target, var/force_explode)
|
||||
|
||||
Reference in New Issue
Block a user