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