1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-25 22:32:18 +02:00

removal of conditionals and fixes

This commit is contained in:
Gerkiz
2021-05-15 16:01:07 +02:00
parent ba9124291c
commit 01762f6f81
18 changed files with 105 additions and 476 deletions

View File

@@ -643,7 +643,7 @@ function Public.gain_xp(player, amount, added_to_pool, text)
RPG.debug_log('RPG - ' .. player.name .. ' got org xp: ' .. amount)
end
rpg_t[player.index].xp = rpg_t[player.index].xp + amount
rpg_t[player.index].xp = math.round(rpg_t[player.index].xp + amount, 3)
rpg_t[player.index].xp_since_last_floaty_text = rpg_t[player.index].xp_since_last_floaty_text + amount
if not experience_levels[rpg_t[player.index].level + 1] then