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

Cash register: Can't sell food if you also sell clothing? #785

Open
32bitx64bit opened this issue Mar 22, 2024 · 4 comments
Open

Cash register: Can't sell food if you also sell clothing? #785

32bitx64bit opened this issue Mar 22, 2024 · 4 comments
Labels
bug This is a bug in a mod.

Comments

@32bitx64bit
Copy link

Describe the bug
For some reason, if I'm selling clothing, food goes completely untouched, and wont ever sell.
as soon as I remove clothing from my shop, food starts getting sold again.

To Reproduce
Sell food, and clothing in the same shop.

Console log
No crash.

Error stacktrace
No errors happen.

@32bitx64bit 32bitx64bit added the bug This is a bug in a mod. label Mar 22, 2024
@OrionFive
Copy link
Owner

I take it that this is an issue with Storefront?
Maybe @tomvd can take a look.

@tomvd
Copy link
Contributor

tomvd commented Mar 24, 2024

Given he is talking about a shop, I think so- it can be shopping area as well.
Shopping area and storefront share 99% of the logic what pawns buy though. Guests generally prefer clothing over food when shopping for recreation. Only pawns that are hungry and used up the food in their inventory will look around to satisfy their hunger need and if they have money, they will buy food. (you can try this in dev mode and make a guest, with silver in their pocket, but not food really hungry - I bet they will go and buy food in your clothing+food shop)
But if you remove clothing from the shop, they still want to fulfill their recreation need and don't have any choice to buy food, so its normal they start buying food in that case.

@32bitx64bit
Copy link
Author

32bitx64bit commented Mar 25, 2024

Given he is talking about a shop, I think so- it can be shopping area as well. Shopping area and storefront share 99% of the logic what pawns buy though. Guests generally prefer clothing over food when shopping for recreation. Only pawns that are hungry and used up the food in their inventory will look around to satisfy their hunger need and if they have money, they will buy food. (you can try this in dev mode and make a guest, with silver in their pocket, but not food really hungry - I bet they will go and buy food in your clothing+food shop) But if you remove clothing from the shop, they still want to fulfill their recreation need and don't have any choice to buy food, so its normal they start buying food in that case.

issue is it wouldn't even appear in the sell area, whats for sale. It would just be completely missing.

(That being the stock level thing, in the "shop" menu on the cash register)

@tomvd
Copy link
Contributor

tomvd commented Mar 25, 2024

as soon as I remove clothing from my shop, food starts getting sold again

issue is it wouldn't even appear in the sell area, whats for sale. It would just be completely missing.

(That being the stock level thing, in the "shop" menu on the cash register)

Ok, and is the clothing part still relevant? (just trying to get the steps to reproduce right before I start testing randomly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug in a mod.
Projects
None yet
Development

No branches or pull requests

3 participants