wip: we can now travel between towns
authorxangelo <git@xangelo.ca>
Wed, 14 Jun 2023 19:22:51 +0000 (15:22 -0400)
committerxangelo <git@xangelo.ca>
Thu, 15 Jun 2023 17:27:38 +0000 (13:27 -0400)
commit3c79688bc2ec503dfa7ace337e45fffd2a88bcff
tree671a670da2453dffbbec9f0e59f815957841e888
parent6d3944fac3864739b383b7a50ade169f91104127
wip: we can now travel between towns

The travel system is very rudimentary right now.

Each city has a path that it leads to, and a path that leads to it.

The city/travel paths are done via the new socket event code layout and
is integrated with AirTable. The new seed for cities will create missing
cities and add missing links. It will also modify city names if the ID
already exists.

Weve also done a large change to migrate content over to integer ids so
that its' easier to create content from AirTable.

Monsters/Locations/Cities are all done via integer Ids.. when a fight is
created, we utilize a uuid, but maintain a reference back to the core
monster via `ref_id`.
23 files changed:
.gitignore
migrations/20230614155940_cities.ts [new file with mode: 0644]
migrations/20230615132904_int-ids.ts [new file with mode: 0644]
package-lock.json
package.json
public/assets/bundle.js
seeds/cities.ts [new file with mode: 0644]
seeds/monsters.ts
seeds/shop_items.ts
src/client/index.ts
src/client/socket-event.client.ts
src/events/client.ts
src/events/profession-changing/client.ts
src/events/server.ts
src/events/travel/client.ts [new file with mode: 0644]
src/events/travel/server.ts [new file with mode: 0644]
src/events/travel/shared.ts [new file with mode: 0644]
src/server/api.ts
src/server/map.ts
src/server/monster.ts
src/shared/fight.ts
src/shared/map.ts
src/shared/monsters.ts