oranisagu / SDV-FarmAutomation

Stardew Valley Farm Automation Mods
MIT License
7 stars 5 forks source link

InventoryChanged Event: only invalidate the cache if a matching item has changed #6

Open oranisagu opened 8 years ago

oranisagu commented 8 years ago

Current

all items which are considered connectors (all machines + chests) will cause the cache to invalidate.

in addition, all items of the furniture category will invalidate the cache, whether it's one of the configured floor tilings or not. the reason being, the floor tiles have different ids from the terrain features and I have not found a link between those yet.

Planned

Either add all item id's for the flooring tiles as well or find the link between terrain features and the items creating them when being dropped

oranisagu commented 8 years ago

grabbed all the information necessary: Name, whichFloor ID, parentSheetIndex Wood Floor; 0; 328 Stone Floor; 1; 329 Weathered Floor; 2; 331 Crystal Floor; 3; 333 Straw Floor; 4; 401 Gravel Path; 5; 407 Wood Path; 6; 405 Crystal Path; 7; 409 Cobblestone Path; 8; 411 Stepping Stone Path; 9; 415