-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* You can now buy cards * Various bug/display fixes * Make joker selection buttons invisible for buy card to eliminate visual redundancy Co-authored-by: Gregory Heskett <[email protected]>
- Loading branch information
Showing
8 changed files
with
675 additions
and
157 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,66 @@ | ||
import { card } from "./card"; | ||
import {card} from "./card"; | ||
|
||
export class serverManager { | ||
lookUpCard(database, cardId) { | ||
//TODO: actual numbers | ||
if (cardId == -1) { | ||
return { | ||
"card_id" : 0, | ||
"rank" : 1, | ||
"prestige_points" : 0, | ||
"gem_type" : "diamond", | ||
"diamond" : 0, | ||
"sapphire" : 0, | ||
"emerald" : 0, | ||
"ruby" : 0, | ||
"onyx" : 0 | ||
}; | ||
} | ||
lookUpCard(database, cardId) { | ||
//TODO: actual numbers | ||
if (cardId == -1) { | ||
return { | ||
card_id: 0, | ||
rank: 1, | ||
prestige_points: 0, | ||
gem_type: "diamond", | ||
diamond: 0, | ||
sapphire: 0, | ||
emerald: 0, | ||
ruby: 0, | ||
onyx: 0, | ||
}; | ||
} | ||
|
||
let card = database[cardId] | ||
let card = database[cardId]; | ||
|
||
return { | ||
"card_id" : card.card_id, | ||
"rank" : card.rank, | ||
"prestige_points" : card.prestige_points, | ||
"gem_type" : card.gem_type, | ||
"diamond" : card.diamond, | ||
"sapphire" : card.sapphire, | ||
"emerald" : card.emerald, | ||
"ruby" : card.ruby, | ||
"onyx" : card.onyx | ||
}; | ||
} | ||
return { | ||
card_id: card.card_id, | ||
rank: card.rank, | ||
prestige_points: card.prestige_points, | ||
gem_type: card.gem_type, | ||
diamond: card.diamond, | ||
sapphire: card.sapphire, | ||
emerald: card.emerald, | ||
ruby: card.ruby, | ||
onyx: card.onyx, | ||
}; | ||
} | ||
|
||
lookUpNoble(database, nobleId) { | ||
//TODO: actual numbers | ||
if (nobleId == -1) { | ||
return { | ||
"noble_id" : 0, | ||
"prestige_points" : 0, | ||
"diamond" : 0, | ||
"sapphire" : 0, | ||
"emerald" : 0, | ||
"ruby" : 0, | ||
"onyx" : 0 | ||
}; | ||
} | ||
lookUpNoble(database, nobleId) { | ||
//TODO: actual numbers | ||
if (nobleId == -1) { | ||
return { | ||
noble_id: 0, | ||
prestige_points: 0, | ||
diamond: 0, | ||
sapphire: 0, | ||
emerald: 0, | ||
ruby: 0, | ||
onyx: 0, | ||
}; | ||
} | ||
|
||
let noble = database[nobleId] | ||
let noble = database[nobleId]; | ||
|
||
return { | ||
"noble_id" : noble.noble_id, | ||
"prestige_points" : noble.prestige_points, | ||
"diamond" : noble.diamond, | ||
"sapphire" : noble.sapphire, | ||
"emerald" : noble.emerald, | ||
"ruby" : noble.ruby, | ||
"onyx" : noble.onyx | ||
}; | ||
} | ||
return { | ||
noble_id: noble.noble_id, | ||
prestige_points: noble.prestige_points, | ||
diamond: noble.diamond, | ||
sapphire: noble.sapphire, | ||
emerald: noble.emerald, | ||
ruby: noble.ruby, | ||
onyx: noble.onyx, | ||
}; | ||
} | ||
|
||
lookUpFieldChips(game, chipType) { | ||
if (game == null) | ||
return 0; | ||
return game.field_chips[chipType]; | ||
} | ||
} | ||
lookUpFieldChips(game, chipType) { | ||
if (game == null) return 0; | ||
return game.field_chips[chipType]; | ||
} | ||
} |
Oops, something went wrong.