Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit 116b9df

Browse files
committed
Fix some bugs with botplay
1 parent d83d4b4 commit 116b9df

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

assets/preload/data/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ setBot Play || Enable Bot play to showcase your mods. WIP || false
1919
setCharting Background || Toggle the stage background in charting. || true
2020
setChange Note Theme || Change the theme of your notes. || NOTE
2121
setCustomize Info Bar || Customize what stats are beside your healthbar during games. || Press ENTER
22-
setModifiers || Manage modifiers on your game. || Press ENTER
22+
setModifiers || Manage modifiers on your game. || Press ENTER

source/PlayState.hx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,7 @@ class PlayState extends MusicBeatState
27952795
if (daNote.canBeHit && daNote.mustPress && daNote.isSustainNote)
27962796
{
27972797
if (FlxG.save.data.botplay) {
2798+
27982799
switch (daNote.noteData)
27992800
{
28002801
// NOTES YOU ARE HOLDING
@@ -3037,6 +3038,8 @@ class PlayState extends MusicBeatState
30373038
var rightP = controls.RIGHT_P;
30383039
var downP = controls.DOWN_P;
30393040
var leftP = controls.LEFT_P;
3041+
if (FlxG.save.data.botplay)
3042+
return; // sike
30403043

30413044
// SEXY FAILSAFE (THANKS VM U A REAL ONE)
30423045
if (note == 'none') {
@@ -3140,6 +3143,8 @@ class PlayState extends MusicBeatState
31403143
function goodNoteHit(note:Note):Void
31413144
{
31423145
if (note.nType == 1) {
3146+
if (FlxG.save.data.botplay)
3147+
return;
31433148
trace("FIRE NOTE OH SHTIT");
31443149
health -= 1;
31453150
}

source/ProjectFNF.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ProjectFNF
1717
if (FlxG.save.data.dadnotescankill == null)
1818
FlxG.save.data.dadnotescankill = false;
1919
if (FlxG.save.data.damagefromdadnotes == null)
20-
FlxG.save.data.damagefromdadnotes = 1;
20+
FlxG.save.data.damagefromdadnotes = 10;
2121
if (FlxG.save.data.nohealthgain == null)
2222
FlxG.save.data.nohealthgain = 0;
2323
if (FlxG.save.data.dadnotesvisible == null)

0 commit comments

Comments
 (0)