Giter Club home page Giter Club logo

inventory's People

Contributors

ahv15 avatar askneller avatar benjaminamos avatar cervator avatar darkweird avatar jdrueckert avatar kblaszczyk avatar keturn avatar pollend avatar skaldarnar avatar stefaniamak avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inventory's Issues

bug(StartingInventory): nesting items not working for trunk block

So, seemingly CoreAdvancedAssets:Trunk is an item/block that holds an inventory and thus should be able to be filled with items in a starting inventory:

{
  "uri": "CoreAdvancedAssets:Trunk",
    "items": [
      { "uri": "CoreAssets:Cobblestone", "quantity": 99 }
    ]
}

However, the item trunk.prefab does not have an InventoryComponent - only the trunkRegion.prefab does. However, the inventory will be retained via RetainBlockInventory when a trunk placed in the world is destroyed.

I don't know whether this is a restriction of the StartingInventorySystem or due to the structure of prefabs used to build the trunk functionality. I would suspect that we may to be able to make it behave better by having another look at the prefabs, but I'm not entirely sure about this - pinging @Qwertygiy for their opinion.


Related to Terasology/CoreAdvancedAssets

Nested items in StartingInventory not working

In #9 I've added the capability for nested starting inventory items, which was working fine. With the changes in #13 items are only added to entites which already have an InventoryComponent.

This breaks the player's starting inventory as added in Terasology/CoreSampleGameplay#2.

Block items created by BlockItemFactory::newInstance will strip away all components that don't have the @AddToBlockBasedItem annotation. As far as I can see, only DisplayNameComponent has this annotation (from the set of our basic components).
Thus, although the block prefab contains an inventory component, it is not added to the block item upon creation.

I don't know how to "fix" this in the correct way, yet ๐Ÿ˜ž

Inventory management shortcut

This issue was originally created by @5archoufa as MovingBlocks/Terasology#5234

The inventory could benefit from an "inventory auto-stack" feature. It allows players to quickly consolidate items of the same type in their inventory by double-clicking on an item stack, causing all similar items in the inventory to stack together or on the cursor. This feature helps in managing inventory efficiently, especially when dealing with large amounts of items.

image

organize under single `inventory` package

Similar to Terasology/Health#71

The package names currently used in this module make it difficult to distinguish which classes are in this module and which are from engine or elsewhere.

Recommend all packages here descend from a single org.terasology.inventory (or org.terasology.module.inventory?) instead of org.terasology.logic & rendering.

I'm singling some of these out not just because they're not under a single package, but also because health and inventory packages still exist in engine, making things extra muddled.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.