Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 16, 2024
1 parent 415ce62 commit 37f8bb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
7 changes: 3 additions & 4 deletions source/meta/data/options/SocialCreditState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class SocialCreditState extends MusicBeatState
{
super.create();

underZero = (socialCredit <= 0);

#if desktop
DiscordClient.changePresence("Social Credit Menu", null);
#end
Expand All @@ -24,14 +22,14 @@ class SocialCreditState extends MusicBeatState
bg.color = 0xFFea71fd;
add(bg);

var titleTxt:Alphabet = new Alphabet(0, 40, "Your current social credit score:", false);
var titleTxt:Alphabet = new Alphabet(0, 35, "Your current social credit score:", false);
titleTxt.screenCenter(X);
add(titleTxt);

var creditTxt:Alphabet = new Alphabet(5, FlxG.height - 444, Std.string(socialCredit), true);
add(creditTxt);

var creditTxt2:Alphabet = new Alphabet(5, FlxG.height - 300, "Social Credit", false);
var creditTxt2:Alphabet = new Alphabet(5, FlxG.height - 400, "Social Credit", false);
add(creditTxt2);

guy = new FlxSprite(700, 0);
Expand All @@ -40,6 +38,7 @@ class SocialCreditState extends MusicBeatState
guy.animation.addByPrefix('shocked', 'ohno', 12);
guy.animation.addByPrefix('why', 'waaa', 12);
guy.animation.play('default');
guy.scale.set(0.8, 0.8);
guy.screenCenter(Y);
add(guy);
}
Expand Down
17 changes: 4 additions & 13 deletions source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4745,19 +4745,10 @@ class PlayState extends MusicBeatState

ButtplugUtils.stop();

if (deathCounter >= 0 || songMisses >= 20)
{
FlxG.save.data.socialCredit -= 10;
SocialCreditState.socialCredit = FlxG.save.data.socialCredit;
SocialCreditState.wentDown = true;
}
else
{
gainedCredit = FlxG.random.int(1, 100);
FlxG.save.data.socialCredit = gainedCredit;
SocialCreditState.socialCredit += FlxG.save.data.socialCredit;
SocialCreditState.wentUp = true;
}
gainedCredit = FlxG.random.int(1, 100);
FlxG.save.data.socialCredit += gainedCredit;
SocialCreditState.socialCredit = FlxG.save.data.socialCredit;
SocialCreditState.wentUp = true;

#if sys
if (!inReplay)
Expand Down

0 comments on commit 37f8bb2

Please sign in to comment.