Skip to content

Commit

Permalink
Merge pull request #13 from Ranvier-TS/add-respawn-props-to-roomdefs
Browse files Browse the repository at this point in the history
Add respawn props to Npc/Item Room defs
  • Loading branch information
seanohue authored May 17, 2021
2 parents b8c3a75 + 9ede340 commit 8091f75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ export interface IRoomDef {

export interface IRoomItemDef {
id: string;
replaceOnRespawn?: boolean;
respawnChance?: number;
maxLoad?: number;
}

export interface IRoomNpcDef {
id: string;
maxLoad?: number;
respawnChance?: number; // percentage
}

/**
Expand Down

0 comments on commit 8091f75

Please sign in to comment.