1
Fork 0
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:
Steffo 2023-05-14 22:20:44 +02:00 committed by GitHub
parent a287e0b025
commit a87f75a4ff
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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