free skill option

This commit is contained in:
Detoria
2021-05-06 17:16:28 -03:00
committed by GitHub
parent 42e916df6d
commit b2929d9ab8
6 changed files with 195 additions and 121 deletions

View File

@ -553,6 +553,22 @@ class OffsetMenu extends Option
return "Time your offset";
}
}
class BotPlay extends Option
{
public function new(desc:String)
{
super();
description = desc;
}
public override function press():Bool
{
FlxG.save.data.botplay = !FlxG.save.data.botplay;
trace('BotPlay : ' + FlxG.save.data.botplay);
display = updateDisplay();
return true;
}
private override function updateDisplay():String
return "BotPlay " + (FlxG.save.data.botplay ? "on" : "off");
}