Skip to content

Commit

Permalink
also store sprite on fight character
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 16, 2023
1 parent 01af4ef commit a2aa056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/modules/fight/fight.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class FightService {
userId: player.userId,
characterId: uuid(),
name: user.username,
sprite: player.cosmetics.portrait,
level: player.level,
job: player.job,
baseStats: this.playerService.getTotalStats(player),
Expand All @@ -75,6 +76,7 @@ export class FightService {
monsterId: monster.itemId,
characterId: uuid(),
name: monster.name,
sprite: monster.sprite,
level: monster.level,
job: monster.job,
baseStats: monster.statBoosts,
Expand Down
1 change: 1 addition & 0 deletions shared/interfaces/combat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface IFightCharacter {
userId?: string;
monsterId?: string;
characterId: string;
sprite: number;
name: string;
level: number;
job: string;
Expand Down

0 comments on commit a2aa056

Please sign in to comment.