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

Commit 293ace6

Browse files
committed
Revert "Merge branch 'master' into master" CUZ IM AN IDIOT
This reverts commit 005ed34, reversing changes made to 3f72476.
1 parent 005ed34 commit 293ace6

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ ProjectFNF is a engine for Friday Night Funkin' designed to be flexible. It cont
7979

8080

8181
# Usage
82-
We do not ask for much, all we ask is you link the github and if the mod is on gamebanana make sure to credit aflacc and Zeptos for making the engine. Also please do not remove the ProjectFNF version on the bottom of the screen in the main menu, this gives the engine its credit and also makes it easier to receive help with the mod. I will *not* be able to help you if you do not have the version of ProjectFNF in the game. also make sure to add the tag "projectfnf" to the github page.
82+
We do not ask for much, all we ask is you link the github and if the mod is on gamebanana make sure to credit aflack and Zeptos for making the engine. Also please do not remove the ProjectFNF version on the bottom of the screen in the main menu, this gives the engine its credit and also makes it easier to receive help with the mod. I will *not* be able to help you if you do not have the version of ProjectFNF in the game. also make sure to add the tag "projectfnf" to the github page.

source/PlayState.hx

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ class PlayState extends MusicBeatState
7474
private var curSong:String = "";
7575

7676
private var gfSpeed:Int = 1;
77-
77+
7878
var health:Float; // modders: go to line 208 to set starting health (dont set to static)
79-
var maxHealth:Float = 3; // 100%
79+
var maxHealth:Float = 2; // 100%
8080
var healthPercentage:Float;
8181

8282
private var combo:Int = 0;
@@ -205,7 +205,7 @@ class PlayState extends MusicBeatState
205205
if (FlxG.save.data.customscrollspeed > 0) {
206206
usingCustomScrollSpeed = true;
207207
}
208-
health = FlxG.save.data.nohealthgain == 0 ? 2 : FlxG.save.data.nohealthgain * 0.02;
208+
health = FlxG.save.data.nohealthgain == 0 ? 1 : FlxG.save.data.nohealthgain * 0.02;
209209
var stageCurtains:FlxSprite;
210210
var stageFront:FlxSprite;
211211
var bg:FlxSprite;
@@ -2187,16 +2187,16 @@ class PlayState extends MusicBeatState
21872187
sustain2(spr.ID, spr, daNote);
21882188
}
21892189
});
2190-
if (health > 2) {
2191-
health -= 0.0275;
2192-
} else if (health > 1.6) {
2193-
health -= 0.025;
2194-
} else if (health < 0.4) {
2195-
health -= 0.02;
2196-
} else {
2197-
health -= 0.0225;
2190+
if (ModCharts.dadNotesDoDamage) {
2191+
if (!(health - ModCharts.damageFromDadNotes < 0.001)) {
2192+
health -= ModCharts.damageFromDadNotes;
2193+
updateInfo();
2194+
} else {
2195+
if (ModCharts.dadNotesCanKill) {
2196+
health -= ModCharts.damageFromDadNotes;
2197+
}
2198+
}
21982199
}
2199-
updateInfo();
22002200

22012201
dad.holdTimer = 0;
22022202

@@ -2892,15 +2892,13 @@ class PlayState extends MusicBeatState
28922892
trace("BALLS");
28932893
// trace(boyfriend.stunned);
28942894
try {
2895-
if (note.nType == 1) {
2896-
health += 0.023;
2897-
return;
2898-
}
2895+
if (note.nType == 1) { return; }
28992896
} catch (e) {
29002897
trace("idk smtn");
29012898
}
2899+
trace(FlxG.save.data.ghosttapping);
29022900
trace(boyfriend.stunned);
2903-
if (true) {
2901+
if (!FlxG.save.data.ghosttapping) {
29042902
if (!boyfriend.stunned)
29052903
{
29062904
trace('balls');
@@ -3050,7 +3048,7 @@ class PlayState extends MusicBeatState
30503048

30513049
// SEXY FAILSAFE (THANKS VM U A REAL ONE)
30523050
if (note == 'none') {
3053-
if (false) {
3051+
if (FlxG.save.data.ghosttapping) {
30543052
if (FlxG.save.data.enablemissanimations) { // indenting worked out in the end *holds hands with family*
30553053
if (leftP) {
30563054
boyfriend.playAnim('singLEFTmiss', true);
@@ -3166,14 +3164,14 @@ class PlayState extends MusicBeatState
31663164
if (note.noteData >= 0)
31673165
{
31683166
if (FlxG.save.data.nohealthgain == 0)
3169-
health += FlxG.save.data.hardmode ? 0.007 : 0.029;
3167+
health += FlxG.save.data.hardmode ? 0.007 : 0.023;
31703168
if (combo == 10 || combo == 50 || combo == 100 || combo == 200 || combo == 300)
31713169
gf.playAnim('cheer', true);
31723170
}
31733171
else
31743172
{
31753173
if (FlxG.save.data.nohealthgain == 0)
3176-
health += 0.009;
3174+
health += 0.004;
31773175
if (combo == 10 || combo == 50 || combo == 100 || combo == 200 || combo == 300)
31783176
gf.playAnim('cheer', true);
31793177
}

0 commit comments

Comments
 (0)