-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix-reddash-uptransition
- Loading branch information
Showing
9 changed files
with
144 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Microsoft.Xna.Framework; | ||
using MonoMod; | ||
|
||
namespace Celeste { | ||
class patch_DeathEffect : DeathEffect { | ||
|
||
public patch_DeathEffect(Color color, Vector2 offset) | ||
: base(color, offset) { } | ||
|
||
[MonoModIgnore] | ||
[PatchDeathEffectUpdate] | ||
public override extern void Update(); | ||
|
||
[MonoModReplace] | ||
public override void Render() { | ||
if (Entity != null) | ||
Draw(Entity.Position + Position, Color, Percent); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Celeste { | ||
class patch_LevelSetStats : LevelSetStats { | ||
public int MaxAreaMode { | ||
get { | ||
if (Name == "Celeste") { | ||
return (int) AreaMode.CSide; | ||
} | ||
int areaOffset = AreaOffset; | ||
int maxAreaMode = 0; | ||
for (int i = 0; i <= MaxArea; i++) { | ||
ModeProperties[] mode = AreaData.Areas[areaOffset + i].Mode; | ||
foreach (ModeProperties modeProperties in mode) { | ||
if ((int) modeProperties.MapData.Area.Mode > maxAreaMode) { | ||
maxAreaMode = (int) modeProperties.MapData.Area.Mode; | ||
} | ||
} | ||
} | ||
return maxAreaMode; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters