How to be even more lazy: define a function Tile(x, y) so that you can write mapTile: Tile(133, 12) instead of mapTile: new MapTileCoordinate(133, 12)!
This commit is contained in:
parent
81430f90f0
commit
c1c462725f
@ -50,7 +50,7 @@ namespace rabi_splitter_WPF
|
|||||||
new BossFight (
|
new BossFight (
|
||||||
displayName: "Rita",
|
displayName: "Rita",
|
||||||
music: Music.MIDSTREAM_JAM,
|
music: Music.MIDSTREAM_JAM,
|
||||||
mapTile: new MapTileCoordinate(86, 10),
|
mapTile: Tile(86, 10),
|
||||||
startingBosses: new[] { Boss.Rita }
|
startingBosses: new[] { Boss.Rita }
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ namespace rabi_splitter_WPF
|
|||||||
new BossFight (
|
new BossFight (
|
||||||
displayName: "Cicini",
|
displayName: "Cicini",
|
||||||
music: Music.HI_TECH_DUEL,
|
music: Music.HI_TECH_DUEL,
|
||||||
mapTile: new MapTileCoordinate(22, 14),
|
mapTile: Tile(22, 14),
|
||||||
startingBosses: new[] { Boss.Cicini }
|
startingBosses: new[] { Boss.Cicini }
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ namespace rabi_splitter_WPF
|
|||||||
new BossFight (
|
new BossFight (
|
||||||
displayName: "Cocoa2",
|
displayName: "Cocoa2",
|
||||||
music: Music.GET_ON_WITH_IT,
|
music: Music.GET_ON_WITH_IT,
|
||||||
mapTile: new MapTileCoordinate(14, 10),
|
mapTile: Tile(14, 10),
|
||||||
startingBosses: new[] { Boss.Cocoa2 }
|
startingBosses: new[] { Boss.Cocoa2 }
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ namespace rabi_splitter_WPF
|
|||||||
displayName: "Side Chapter",
|
displayName: "Side Chapter",
|
||||||
music: Music.GET_ON_WITH_IT,
|
music: Music.GET_ON_WITH_IT,
|
||||||
map: Map.RabiRabiTown,
|
map: Map.RabiRabiTown,
|
||||||
mapTile: new MapTileCoordinate(133, 12),
|
mapTile: Tile(133, 12),
|
||||||
extraCondition: (startingBosses, music, map, mapTile) => {
|
extraCondition: (startingBosses, music, map, mapTile) => {
|
||||||
return startingBosses.Count == 3;
|
return startingBosses.Count == 3;
|
||||||
}
|
}
|
||||||
|
@ -79,6 +79,11 @@ namespace rabi_splitter_WPF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static MapTileCoordinate Tile(int x, int y)
|
||||||
|
{
|
||||||
|
return new MapTileCoordinate(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
{
|
{
|
||||||
var otherValue = obj as BossFight;
|
var otherValue = obj as BossFight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user