Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanger committed Jun 24, 2023
2 parents 9eabf9d + f061758 commit 87eef8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/src/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ export class Player extends GameObject {
}
}

for (const item in this.inventory.items) {
const count = this.inventory.items[item];
if (count > 0) {
this.game.addLoot(ObjectType.fromString(ObjectCategory.Loot, item), this.position, count);
}
}

// Create death marker
const deathMarker = new DeathMarker(this);
this.game.dynamicObjects.add(deathMarker);
Expand Down

0 comments on commit 87eef8c

Please sign in to comment.