BenMakesGames / BenMakesGames/PoppySeedPets
support bulk-spicing of food items
- Dominant language
- PHP
- Stars
- 15
- Forks
- 6
- Avg merge
- 5m
- Merged PRs (30d)
- 2
Description
if a player select multiple foods & spices, we should smartly bulk-apply those for them. here are the scenarios to consider:
## all of the food items are the same (for example, all Reds), and **at least** as many food items as spice items were selected
**conditions:**
1. all food items are the same
2. \# of food items >= \# of spice items
3. \# of food items > 0
4. \# of spice items > 0
**action to take:**
for each selected spice, apply it to one of the food items
if more foods were selected than spices, fine: some foods will remain unspiced, but all spices will have been used
## all of the spice items are the same (for example, all Spicy Spice), and **at least** as many spice items as food items were selected
**conditions:**
1. all spice items are the same
2. \# of spice items >= \# of food items
3. \# of food items > 0
4. \# of spice items > 0
**action to take:**
for each selected food, apply apply one of the selected spice items to it
if more spices were selected than foods, fine: some spices will remain unused, but all foods will have been spiced
## any other scenario
we can't be sure what exactly the player intended, so no spicing should take place
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named. Start by locating the code that handles selecting multiple food and spice items and applying spices, then trace how the selected items are paired. Done means the two same-type, count-compatible scenarios apply the intended items and every other scenario performs no spicing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, php
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 43/100