mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
makes foam touch (#18463)
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
#define OPENCONTAINER (REFILLABLE | DRAINABLE | TRANSPARENT)
|
||||
|
||||
|
||||
#define TOUCH 1 // splashing
|
||||
#define TOUCH 1 // splashing, foam
|
||||
#define INGEST 2 // ingestion
|
||||
#define VAPOR 3 // foam, spray, blob attack
|
||||
#define VAPOR 3 // spray, blob attack
|
||||
#define PATCH 4 // patches
|
||||
#define INJECT 5 // injection
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
var/turf/turf = object.loc
|
||||
if(turf.intact && object.level == 1) //hidden under the floor
|
||||
continue
|
||||
reagents.reaction(object, VAPOR, fraction)
|
||||
reagents.reaction(object, TOUCH, fraction)
|
||||
|
||||
var/hit = 0
|
||||
for(var/mob/living/foamer in location)
|
||||
@@ -99,7 +99,7 @@
|
||||
if(hit)
|
||||
lifetime += ds_delta_time //this is so the decrease from mobs hit and the natural decrease don't cumulate.
|
||||
|
||||
reagents.reaction(location, VAPOR, fraction)
|
||||
reagents.reaction(location, TOUCH, fraction)
|
||||
|
||||
/**
|
||||
* Applies the effect of this foam to a mob.
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
delta_time = min(delta_time SECONDS, lifetime)
|
||||
var/fraction = (delta_time * MINIMUM_FOAM_DILUTION) / (initial(lifetime) * max(MINIMUM_FOAM_DILUTION, group.total_size))
|
||||
reagents.reaction(foaming, VAPOR, fraction)
|
||||
reagents.reaction(foaming, TOUCH, fraction)
|
||||
lifetime -= delta_time
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user