A couple vacpack and vorgan juice fixes

Vacpack now checks for spont prey pref.
Fixed vacpack direct targeted sucks missing their after-click doublechecks. (the cancel stuff for fleeing distance and things leaving/yoinked from the tile)
Fixed liquidbelly acid item interaction order (now does digest_act stuff first if in belly)
Fixed open containers eating up all liquids.
This commit is contained in:
Verkister
2023-05-11 15:49:49 +03:00
parent 6239d377ea
commit 92b321b906
3 changed files with 9 additions and 5 deletions

View File

@@ -273,7 +273,7 @@
touch(target, amount * multiplier) //First, handle mere touch effects
if(isturf(target))
return trans_to_turf(target, amount, multiplier, copy)
if(isobj(target) && target.is_open_container())
if(isobj(target) && target.is_open_container() && !isbelly(target.loc)) //CHOMPEdit
return trans_to_obj(target, amount, multiplier, copy)
return 0

View File

@@ -444,7 +444,6 @@
M.take_organ_damage(0, removed * power * 0.1) // Balance. The damage is instant, so it's weaker. 10 units -> 5 damage, double for pacid. 120 units beaker could deal 60, but a) it's burn, which is not as dangerous, b) it's a one-use weapon, c) missing with it will splash it over the ground and d) clothes give some protection, so not everything will hit
/datum/reagent/acid/touch_obj(var/obj/O, var/amount) //CHOMPEdit Start
..()
if(isbelly(O.loc))
var/obj/belly/B = O.loc
if(B.item_digest_mode == IM_HOLD || B.item_digest_mode == IM_DIGEST_FOOD)
@@ -455,6 +454,7 @@
B.owner.adjust_nutrition((B.nutrition_percent / 100) * 5 * spent_amt)
remove_self(spent_amt) //10u stomacid per w_class, less if stronger acid.
return
..()
if(O.unacidable || is_type_in_list(O,item_digestion_blacklist)) //CHOMPEdit End
return
if((istype(O, /obj/item) || istype(O, /obj/effect/plant)) && (volume > meltdose))