mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-29 21:47:08 +02:00
shaman fix
This commit is contained in:
parent
4ded92482b
commit
d5c40d6cd1
@ -85,6 +85,10 @@ function Public.class_update_auxiliary_data(tick_interval)
|
|||||||
local data = class_auxiliary_data[player_index]
|
local data = class_auxiliary_data[player_index]
|
||||||
processed_players[player_index] = true
|
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
|
if data.shaman_charge < Balance.shaman_max_charge then
|
||||||
-- charge from accumulators
|
-- charge from accumulators
|
||||||
local power_need = Balance.shaman_max_charge - data.shaman_charge
|
local power_need = Balance.shaman_max_charge - data.shaman_charge
|
||||||
|
Loading…
x
Reference in New Issue
Block a user