Skip to content

Commit

Permalink
feat(models): update cost field in Creature model
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Jan 31, 2022
1 parent 85fdb5d commit df58bc8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/models/Creature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import type { Spell } from './Spell'
export interface Creature {
aiValue?: number
attack: number
cost?: number
cost?: {
gold?: number
gem?: number
crystal?: number
mercury?: number
sulfur?: number
}
defense: number
fightValue?: number
growth?: number
Expand Down Expand Up @@ -34,7 +40,13 @@ export interface CreatureTranslation {

export class CreatureInstance implements Creature {
aiValue?: number
cost?: number
cost?: {
gold?: number
gem?: number
crystal?: number
mercury?: number
sulfur?: number
}
attack: number
defense: number
fightValue?: number
Expand Down

0 comments on commit df58bc8

Please sign in to comment.