File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ class ModsFolderLibrary extends AssetLibrary implements IModsAssetLibrary {
26
26
this .folderPath = folderPath ;
27
27
this .libName = libName ;
28
28
this .prefix = ' assets/ $libName /' ;
29
- if (modName == null )
30
- this .modName = libName ;
31
- else
32
- this .modName = modName ;
29
+ this .modName = modName == null ? libName : modName ;
33
30
super ();
34
31
}
35
32
Original file line number Diff line number Diff line change @@ -1515,6 +1515,7 @@ class PlayState extends MusicBeatState
1515
1515
*/
1516
1516
public function endSong (): Void
1517
1517
{
1518
+ endingSong = true ;
1518
1519
scripts .call (" onSongEnd" );
1519
1520
canPause = false ;
1520
1521
inst .volume = 0 ;
Original file line number Diff line number Diff line change @@ -272,8 +272,7 @@ class MenuCharacterSprite extends FlxSprite
272
272
public var oldChar : WeekData . WeekCharacter = null ;
273
273
274
274
public function changeCharacter (data : WeekData . WeekCharacter ) {
275
- visible = (data != null && data .xml != null );
276
- if (! visible ) return ;
275
+ if (! (visible = (data != null && data .xml != null ))) return ;
277
276
278
277
if (oldChar != (oldChar = data )) {
279
278
CoolUtil .loadAnimatedGraphic (this , data .spritePath );
@@ -342,7 +341,7 @@ class StoryWeeklist {
342
341
public function getWeeksFromSource (source : funkin.backend.assets. AssetsLibraryList . AssetSource , useTxt : Bool = true , loadCharactersData : Bool = true ) {
343
342
var path : String = Paths .txt (' weeks/weeks' );
344
343
var weeksFound : Array <String > = useTxt && Paths .assetsTree .existsSpecific (path , " TEXT" , source ) ? CoolUtil .coolTextFile (path ) :
345
- [for (c in Paths .getFolderContent (' data/weeks/weeks/' , false , source )) if (Path .extension (c ).toLowerCase () == " xml" ) Path .withoutExtension (c )];
344
+ [for (c in Paths .getFolderContent (' data/weeks/weeks/' , false , source )) if (Path .extension (c ).toLowerCase () == " xml" ) Path .withoutExtension (c )];
346
345
347
346
if (weeksFound .length > 0 ) {
348
347
for (w in weeksFound ) {
You can’t perform that action at this time.
0 commit comments