mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-14 02:34:09 +02:00
fix that magic required level 51 to work
This commit is contained in:
parent
6167ab4ec1
commit
44af53da8c
@ -351,9 +351,13 @@ end
|
||||
|
||||
local function hidden_treasure(player, entity)
|
||||
local rpg = RPG.get_value_from_player(player.index)
|
||||
if not rpg then
|
||||
return
|
||||
end
|
||||
|
||||
local magic = rpg.magicka
|
||||
|
||||
if magic > 50 then
|
||||
if magic >= 50 then
|
||||
local msg = rare_treasure_chest_messages[random(1, #rare_treasure_chest_messages)]
|
||||
Alert.alert_player(player, 5, msg)
|
||||
Loot.add_rare(entity.surface, entity.position, 'wooden-chest', magic)
|
||||
|
Loading…
Reference in New Issue
Block a user