Skip to content

Commit

Permalink
update to game version 107882
Browse files Browse the repository at this point in the history
Moves flaming camels from castle to siege workshop.
  • Loading branch information
amrtgaber committed Mar 20, 2024
1 parent 07d8f5c commit e6edb55
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $ npm install

## Running the app

Start the appropriate docker container before running the API. Then run one of the commands below.

```bash
# development
$ npm run start
Expand Down Expand Up @@ -54,6 +56,8 @@ The scripts are in the `data-conversion` folder.

After running the scripts successfully, copy the files into `prisma/seed-data` to replace the files with the same names.

Update the game version in `prisma/seed.ts`.

## License

[MIT licensed](LICENSE).
Expand Down
2 changes: 1 addition & 1 deletion prisma/seed-data/buildings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const buildings: any = [
{ unitName: 'siege ram' },
{ unitName: 'siege onager' },
{ unitName: 'houfnice' },
{ unitName: 'flaming camel' },
],
techs: [],
age: 'castle age',
Expand Down Expand Up @@ -114,7 +115,6 @@ export const buildings: any = [
units: [
{ unitName: 'petard' },
{ unitName: 'trebuchet' },
{ unitName: 'flaming camel' },
{ unitName: 'composite bowman' },
{ unitName: 'elite composite bowman' },
{ unitName: 'jaguar warrior' },
Expand Down
2 changes: 1 addition & 1 deletion prisma/seed-data/units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ export const units: any = [
},
{
unitName: 'flaming camel',
buildings: [{ buildingName: 'castle' }],
buildings: [{ buildingName: 'siege workshop' }],
age: 'imperial age',
},
{
Expand Down
2 changes: 1 addition & 1 deletion prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ages } from './seed-data/ages';
import { clearDatabase } from './clear';

const API_VERSION = '1.0.0';
const GAME_VERSION = '99311';
const GAME_VERSION = '107882';
export const VERSION_ID = 1;

let id = 1000;
Expand Down

0 comments on commit e6edb55

Please sign in to comment.