mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-10-22 03:36:53 +00:00
🚀 add map 2f
This commit is contained in:
parent
f242f895ac
commit
7de6914679
3 changed files with 14 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ import pewterMuseum2f from "./pewter-museum-2f";
|
|||
import route3 from "./route-3";
|
||||
import route3PokemonCenter from "./route-3-pokemon-center";
|
||||
import mtMoon1f from "./mt-moon-1f";
|
||||
import mtMoon2f from "./mt-moon-2f";
|
||||
|
||||
const mapData: Record<string, MapType> = {
|
||||
[MapId.PalletTown]: palletTown,
|
||||
|
|
@ -59,6 +60,7 @@ const mapData: Record<string, MapType> = {
|
|||
[MapId.Route3]: route3,
|
||||
[MapId.Route3PokemonCenter]: route3PokemonCenter,
|
||||
[MapId.MtMoon1f]: mtMoon1f,
|
||||
[MapId.MtMoon2f]: mtMoon2f,
|
||||
};
|
||||
|
||||
export default mapData;
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ export enum MapId {
|
|||
Route3 = "route-3",
|
||||
Route3PokemonCenter = "route-3-pokemon-center",
|
||||
MtMoon1f = "mt-moon-1f",
|
||||
MtMoon2f = "mt-moon-2f",
|
||||
}
|
||||
|
||||
export interface PokemonMinimalType {
|
||||
|
|
@ -94,6 +95,11 @@ export interface MapItemType {
|
|||
item: ItemType;
|
||||
}
|
||||
|
||||
export interface MapWithPos {
|
||||
map: MapId;
|
||||
pos: PosType;
|
||||
}
|
||||
|
||||
export interface MapType {
|
||||
name: string;
|
||||
image: string;
|
||||
|
|
@ -103,6 +109,7 @@ export interface MapType {
|
|||
walls: Record<number, number[]>;
|
||||
text: Record<number, Record<number, string[]>>;
|
||||
maps: Record<number, Record<number, MapId>>;
|
||||
teleports?: Record<number, Record<number, MapWithPos>>;
|
||||
exits: Record<number, number[]>;
|
||||
cave?: boolean;
|
||||
exitReturnMap?: MapId;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,11 @@ const mtMoon1f: MapType = {
|
|||
15: ["Beware! ZUBAT is a blood sucker!"],
|
||||
},
|
||||
},
|
||||
maps: {},
|
||||
maps: {
|
||||
15: {
|
||||
25: MapId.MtMoon2f,
|
||||
},
|
||||
},
|
||||
exits: {
|
||||
35: [14, 15],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue