mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user