-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extremely simple implementation of shops. #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things
src/world/config/shops.ts
Outdated
return undefined; | ||
} | ||
|
||
export function openShop(player: Player, identification: string, closeOnWalk: boolean = true): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer this to be it's own action as opposed to having it inside the shop config file
src/world/items/item-container.ts
Outdated
@@ -59,7 +59,7 @@ export class ItemContainer { | |||
} | |||
} | |||
|
|||
return -1; | |||
return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this to undefined? That may mess with other things across the server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing: