Skip to content

Commit

Permalink
overwatch fix and interference overflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveloopers committed May 25, 2024
1 parent 5b376bc commit 91b6f0d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions code/datums/components/hivemind_interference.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
else
interference += inter.interference

interference = min(interference, max_buildup)

/datum/component/status_effect/interference/process(delta_time)
if(has_immunity)
return ..()
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/XenoOverwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
to_chat(src, SPAN_XENOWARNING("We can't watch ourselves!"))
return

if(HAS_TRAIT(src, TRAIT_HIVEMIND_INTERFERENCE))
to_chat(src, SPAN_XENOWARNING("Our psychic connection is cut off!"))
return

if(HAS_TRAIT(targetXeno, TRAIT_HIVEMIND_INTERFERENCE))
to_chat(src, SPAN_XENOWARNING("Our sister's psychic connection is cut off!"))
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
var/mob/living/carbon/xenomorph/xeno = M
if(potency > POTENCY_MAX_TIER_1) //Needs level 7+ to have any effect
xeno.AddComponent(/datum/component/status_effect/toxic_buildup, potency * volume * 0.25)
to_chat(X, SPAN_XENODANGER("The corrosive substance damages your carapace!"))
to_chat(xeno, SPAN_XENODANGER("The corrosive substance damages your carapace!"))

/datum/chem_property/negative/corrosive/reaction_obj(obj/O, volume, potency)
if((istype(O,/obj/item) || istype(O,/obj/effect/glowshroom)) && prob(potency * 10))
Expand Down
4 changes: 2 additions & 2 deletions code/modules/reagents/chemistry_properties/prop_positive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,8 @@
if(!isxeno(M))
return
var/mob/living/carbon/xenomorph/xeno = M
if(!HAS_TRAIT(xeno , TRAIT_HIVEMIND_INTERFERENCE))
to_chat(xeno , SPAN_XENOHIGHDANGER("Your awareness dims to a small area!"))
if(!HAS_TRAIT(xeno, TRAIT_HIVEMIND_INTERFERENCE))
to_chat(xeno, SPAN_XENOHIGHDANGER("Your awareness dims to a small area!"))
xeno.AddComponent(/datum/component/status_effect/interference, volume * potency, 90)

/datum/chem_property/positive/neutralizing
Expand Down

0 comments on commit 91b6f0d

Please sign in to comment.