mirror of
https://github.com/Steffo99/noita-starting-perk.git
synced 2024-12-03 10:54:18 +00:00
Fix rounding error in perks_amount
This commit is contained in:
parent
a287e0b025
commit
a87f75a4ff
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
@ -13,7 +13,7 @@ function OnPlayerSpawned( player_entity )
|
|||
GameAddFlagRun( init_check_flag )
|
||||
|
||||
-- Load mod settings
|
||||
local perks_amount = math.ceil(ModSettingGet("starting_perk.perks_spawned"))
|
||||
local perks_amount = math.ceil(ModSettingGet("starting_perk.perks_spawned") - 0.5)
|
||||
local only_one = ModSettingGet("starting_perk.only_one")
|
||||
|
||||
-- Print mod settings to the player
|
||||
|
|
Loading…
Reference in a new issue