Bugfixes - Shield Projectors, Luceian Items, Kinetic Harvester (#22042)

Fixes https://github.com/Aurorastation/Aurora.3/issues/22003
Fixes https://github.com/Aurorastation/Aurora.3/issues/22026

changes:
- bugfix: "Resolves some lingering weird behavior with emergency shield
projectors with regards to power draw."
- bugfix: "Updates Warding Spheres, Luminous Sceptres, and Azubarre
Torches to correctly emit light."
- bugfix: "Updates temp control unit to correctly use MOVABLE_LIGHT for
its light_system."
- bugfix: "Hull shield generator correctly checks for both capacitor
presence and activation state when toggling."
- qol: "INDRA Kinetic Harvester no longer disables harvesting a material
if it happens to drop to zero (less aggravation when staggering fuel
injection)."
This commit is contained in:
Batrachophreno
2026-03-16 21:09:50 +00:00
committed by GitHub
parent 39d1d964ae
commit 39f473bd31
6 changed files with 84 additions and 46 deletions
@@ -83,9 +83,9 @@
if(SSmaterials.materials_by_name[mat] && !stored[mat])
stored[mat] = 0
for(var/mat in harvesting)
if(!SSmaterials.materials_by_name[mat] || !harvest_from.owned_field.reactants[mat])
if(!SSmaterials.materials_by_name[mat])
harvesting -= mat
else
else if(mat in harvest_from.owned_field.reactants)
var/harvest = min(harvest_from.owned_field.reactants[mat], rand(100,200))
// Leave a few counts of the reactant to avoid deactivating harvest mode
harvest_from.owned_field.reactants[mat] -= (harvest - rand(0,5))