Skip to content
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

Reset inventory script #291

Closed
wants to merge 1 commit into from
Closed

Reset inventory script #291

wants to merge 1 commit into from

Conversation

kyvg
Copy link
Collaborator

@kyvg kyvg commented Sep 19, 2023

Close #285

@kyvg kyvg requested a review from catHD September 19, 2023 07:58
@kyvg kyvg changed the title Reset inventory Reset inventory script Sep 19, 2023
@kyvg kyvg temporarily deployed to test September 19, 2023 07:58 — with GitHub Actions Inactive
@catHD
Copy link
Collaborator

catHD commented Sep 19, 2023

Думаешь прям удалять инвентарь? Не выставлять его в пустой массив ?

if (!character || !item) {
console.log('Entity not found for: ', inventory);
} else {
await inventory.deleteOne();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что его создаст после удаления?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Точно, надо firstCreate делать после удаления

@catHD catHD closed this Sep 27, 2023
@catHD catHD deleted the 285-reset-inventory branch September 27, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Скрипт сброса вещей
2 participants