From bf4423545a0fa722da64efdf0de1c1d9d1813c1a Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Thu, 19 Jan 2023 23:01:09 +0100 Subject: [PATCH] woof woof im a cat --- buildnumber.txt | 2 +- source/funkin/game/PlayState.hx | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index 9aba31b8..5c8f449e 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2090 \ No newline at end of file +2092 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index e03d3575..d75f617c 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -161,7 +161,7 @@ class PlayState extends MusicBeatState /** * Dad character */ - public var dad:Character; + public var dad(default, set):Character; /** * Girlfriend character */ @@ -169,7 +169,7 @@ class PlayState extends MusicBeatState /** * Boyfriend character */ - public var boyfriend:Character; + public var boyfriend(default, set):Character; /** * Group of all of the notes. Using `forEach` on this group will only loop through the first notes. @@ -1671,6 +1671,17 @@ class PlayState extends MusicBeatState return cpuStrums; private inline function set_cpu(s:StrumLine):StrumLine return cpuStrums = s; + + private function set_boyfriend(bf:Character):Character { + if (players != null && players[1] != null) + players[1].characters = [bf]; + return this.boyfriend = bf; + } + private function set_dad(dad:Character):Character { + if (players != null && players[0] != null) + players[0].characters = [dad]; + return this.dad = dad; + } } class ComboRating {