1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-26 22:56:43 +02:00

shaman fix

This commit is contained in:
danielmartin0 2024-10-17 12:52:34 +01:00
parent 4ded92482b
commit d5c40d6cd1

View File

@ -85,6 +85,10 @@ function Public.class_update_auxiliary_data(tick_interval)
local data = class_auxiliary_data[player_index]
processed_players[player_index] = true
if not data.shaman_charge then
data.shaman_charge = 0
end
if data.shaman_charge < Balance.shaman_max_charge then
-- charge from accumulators
local power_need = Balance.shaman_max_charge - data.shaman_charge