Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 22, 2024
1 parent afbca80 commit 5e2654b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bot/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export interface MapDB {
setAlliances(alliances: DBAlliance[]): Promise<WriteResult>
getResidents(): Promise<DBResident[]>
setResidents(residents: DBResident[]): Promise<void>
getTowns(): Promise<(DBTown | DBSquaremapTown)[]>
setTowns(towns: (DBTown | DBSquaremapTown)[]): Promise<void>
getNations(): Promise<(DBNation | DBSquaremapNation)[]>
setNations(nations: (DBNation | DBSquaremapNation)[]): Promise<void>
getTowns(): Promise<(DBSquaremapTown)[]>
setTowns(towns: (DBSquaremapTown)[]): Promise<void>
getNations(): Promise<(DBSquaremapNation)[]>
setNations(nations: (DBSquaremapNation)[]): Promise<void>
}

export type AllianceType = 'sub' | 'mega' | 'normal'
Expand Down
2 changes: 1 addition & 1 deletion bot/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async function updateMapData(map: MapInstance) {

console.log(`[${mapName}] Updating data..`)

//#region Town Logic
//#region Town Logic
const townsArray = towns.map(t => {
const isNPC = /^NPC[0-9]{1,5}$/.test(t.mayor)
t["ruined"] = !isNPC && t.residents ? false : true
Expand Down

0 comments on commit 5e2654b

Please sign in to comment.