You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-11-25 22:32:18 +02:00
RPG
Added dupe counter to dex label
This commit is contained in:
@@ -887,6 +887,19 @@ function Public.set_crafting_boost(player, get_dex_modifier)
|
||||
Task.set_timeout_in_ticks(bonus_length, restore_crafting_boost_token, {player_index = player.index})
|
||||
end
|
||||
|
||||
function Public.increment_duped_crafted_items(player)
|
||||
local rpg_t = Public.get_value_from_player(player.index)
|
||||
if not rpg_t then
|
||||
return false
|
||||
end
|
||||
|
||||
if not rpg_t.duped_items then
|
||||
rpg_t.duped_items = 0
|
||||
end
|
||||
|
||||
rpg_t.duped_items = rpg_t.duped_items + 1
|
||||
end
|
||||
|
||||
function Public.restore_crafting_boost(player)
|
||||
local rpg_t = Public.get_value_from_player(player.index)
|
||||
if not rpg_t then
|
||||
|
||||
Reference in New Issue
Block a user