From f5b9ea3e59a5e4626e689a0bb6fb06a2e84d096a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 9 Jul 2022 03:07:00 +0000 Subject: [PATCH] re-tune puzzle size --- .../source/HabitModel.kiss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/projects/flixel-desktop-habit-puzzle-game/source/HabitModel.kiss b/projects/flixel-desktop-habit-puzzle-game/source/HabitModel.kiss index b2448cc5..021e6123 100644 --- a/projects/flixel-desktop-habit-puzzle-game/source/HabitModel.kiss +++ b/projects/flixel-desktop-habit-puzzle-game/source/HabitModel.kiss @@ -27,11 +27,9 @@ (continue)) ((Some "") (continue)) // Types won't unify with the next case, so this is its own: - ((when (= lastHeader "FILES") (Some line)) + ((when (= lastHeader "FILES") (Some path)) (rewardFiles.push - (let [parts (line.split " ") - startingPoints (Std.parseInt (parts.pop)) - path (parts.join " ")] + (let [startingPoints (* rewardFiles.length HabitState.TOTAL_PIECES)] (objectWith path startingPoints)))) ((Some line) (.push @@ -138,7 +136,7 @@ "${label.label} $(* "|" label.points)") "/")") (function :String stringifyRewardFile [:RewardFile rewardFile] - "${rewardFile.path} ${rewardFile.startingPoints}") + rewardFile.path) (method :Void save [] (localVar &mut content "DAILY\n-----\n")