mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Make random in blinds mod the same every replay
This commit is contained in:
parent
2de3b33780
commit
8a01fc1bff
@ -121,8 +121,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
Depth = fg_panel_depth
|
Depth = fg_panel_depth
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// seed with unique seed per map so NPC always comes from the same sides for a same map for reproducible replays.
|
||||||
random = new Random();
|
random = new Random(beatmap.Metadata.ToString().GetHashCode());
|
||||||
Add(bgRandomNpc = new Box
|
Add(bgRandomNpc = new Box
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
@ -133,7 +133,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
RelativePositionAxes = Axes.Y,
|
RelativePositionAxes = Axes.Y,
|
||||||
X = -512,
|
X = -512,
|
||||||
Y = 0,
|
Y = 0,
|
||||||
Depth = black_depth
|
Depth = black_depth,
|
||||||
|
Alpha = 0
|
||||||
});
|
});
|
||||||
Add(new SkinnableDrawable("Play/Catch/fruit-catcher-idle", name => randomNpc = new Sprite
|
Add(new SkinnableDrawable("Play/Catch/fruit-catcher-idle", name => randomNpc = new Sprite
|
||||||
{
|
{
|
||||||
@ -144,7 +145,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
Height = 512,
|
Height = 512,
|
||||||
RelativePositionAxes = Axes.Y,
|
RelativePositionAxes = Axes.Y,
|
||||||
X = -512,
|
X = -512,
|
||||||
Y = 0
|
Y = 0,
|
||||||
|
Alpha = 0
|
||||||
}) {
|
}) {
|
||||||
Depth = npc_depth
|
Depth = npc_depth
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user