Skip to content

Cross Dimension Distance Fix + Inventory Has Function#9

Open
KascadeKyle wants to merge 2 commits intoclockworklabs:masterfrom
KascadeKyle:fix-dimensions-inventory
Open

Cross Dimension Distance Fix + Inventory Has Function#9
KascadeKyle wants to merge 2 commits intoclockworklabs:masterfrom
KascadeKyle:fix-dimensions-inventory

Conversation

@KascadeKyle
Copy link

Summary

Fixes cross-dimension distance handling and corrects InventoryState::has() validation.

Changes

  • Distance functions now return an unreachable sentinel when dimensions differ to prevent unintended interactions.
  • InventoryState::has() now validates using both item_id and item_type instead of only item_id. This prevents items and cargos that share the same id from being counted interchangeably.
  • Minor idiomatic cleanup (is_empty() replaces len() == 0, no behavioral change - but avoids linter complaint).

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.

1 participant