Bugfix pile (#22823)

Fixes several runtimes from the past few weeks, some additional material
repath regressions, and the fact that if I shoot you with a stream of
ionized deuterium particles, it doesn't riddle you with cancer.

changes:
- bugfix: "Fixes emergency shields runtiming when hit by thrown
objects."
  - bugfix: "Fixes several stale global list runtimes."
- bugfix: "Fixes several health percentage checks that could use unset
initial health values."
  - bugfix: "Fixes additional materials regressions in INDRA code."
  - bugfix: "Fixes invalid fuel injector depletion math."
- bugfix: "Makes accelerated particles apply radiation damage to living
mobs they pass through."
This commit is contained in:
Batrachophreno
2026-07-12 18:06:28 +00:00
committed by GitHub
parent f39fd55441
commit 1c8c0c2221
178 changed files with 1040 additions and 794 deletions
+4 -2
View File
@@ -93,10 +93,12 @@
var/psionic_path = text2path(params["buy"])
if(ispath(psionic_path))
var/singleton/psionic_power/P = GET_SINGLETON(psionic_path)
if(P.point_cost > owner.psi.psi_points)
var/point_cost = max(P.point_cost, 0)
if(point_cost > owner.psi.psi_points)
to_chat(owner, SPAN_WARNING("You can't afford that!"))
return
if(P.apply(owner))
to_chat(owner, SPAN_NOTICE("You are now capable of using [P.name]."))
owner.psi.psi_points = max(owner.psi.psi_points - P.point_cost, 0)
owner.psi.psi_points = max(owner.psi.psi_points - point_cost, 0)
owner.psi.spent_psi_points += point_cost
return TRUE