1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-27 22:38:18 +02:00
Added dupe counter to dex label
This commit is contained in:
Gerkiz
2023-11-11 23:58:39 +01:00
parent f0c8c9a237
commit 9f82a74838
3 changed files with 16 additions and 1 deletions

View File

@@ -599,6 +599,7 @@ local function on_player_rotated_entity(event)
if rpg_t.rotated_entity_delay > game.tick then
return
end
rpg_t.rotated_entity_delay = game.tick + 20
Public.gain_xp(player, 0.20)
end
@@ -749,6 +750,7 @@ local function on_player_crafted_item(event)
name = item.name,
count = 1
}
Public.increment_duped_crafted_items(player)
if player.can_insert(reward) then
player.insert(reward)
end