brought back the week locking

This commit is contained in:
Lucky56
2021-06-17 18:02:20 +02:00
parent 19134e6694
commit b6953ec111
6 changed files with 53 additions and 20 deletions

View File

@ -634,3 +634,25 @@ class CamZoomOption extends Option
return "Camera Zoom " + (!FlxG.save.data.camzoom ? "off" : "on");
}
}
class LockWeeksOption extends Option
{
public function new(desc:String)
{
super();
description = desc;
}
public override function press():Bool
{
FlxG.save.data.weekUnlocked = 0;
StoryMenuState.weekUnlocked = [true];
trace('Weeks Locked');
display = updateDisplay();
return true;
}
private override function updateDisplay():String
{
return "Lock Weeks";
}
}