diff --git a/config.lua b/config.lua index accbf81..941c3d2 100644 --- a/config.lua +++ b/config.lua @@ -42,6 +42,7 @@ local common_cfg = { cap_time = 300, timer_loser = 1/2, decrement_reward = false, -- bad idea, encourages mario to run into goombas. + score_multiplier = 1, -- how much the ingame score influences our rewards. } local cfg = { diff --git a/main.lua b/main.lua index 61f42ea..998f620 100644 --- a/main.lua +++ b/main.lua @@ -639,7 +639,7 @@ local function doit(dummy) --local reward_delta = screen_scroll_delta + status_delta * 256 + flagpole_bonus local score_delta = game.get_score() - score_old if score_delta < 0 then score_delta = 0 end - local reward_delta = screen_scroll_delta + score_delta + flagpole_bonus + local reward_delta = screen_scroll_delta + cfg.score_multiplier * (score_delta + flagpole_bonus) screen_scroll_delta = 0 if cfg.decrement_reward and reward_delta == 0 then reward_delta = reward_delta - 1 end