Skip to content

Feature Request: Add Amount per crate to rust companion / http server #29

@HaasCM

Description

@HaasCM

Heyo!

I've been playing around with the http server & companion a tad bit, I noticed it's lacking the Quantity per crate. Was wondering if adding some of the "ItemDynamicData" is something you're open to?

I'm thinking of changing the object structure of the "contents" array from:

    {
      "icon": {
        "bounds": {
          "x": 14,
          "y": 34,
          "width": 32,
          "height": 32
        },
        "code_name": "SoldierSupplies",
        "is_crated": true
      },
      "quantity": {
        "bounds": {
          "x": 58,
          "y": 34,
          "width": 42,
          "height": 32
        },
        "label": "20",
        "value": 20
      }
    },

to something like:

    {
      "icon": {
        "bounds": {
          "x": 14,
          "y": 34,
          "width": 32,
          "height": 32
        },
        "code_name": "SoldierSupplies",
        "is_crated": true
      },
      "quantity": {
        "bounds": {
          "x": 58,
          "y": 34,
          "width": 42,
          "height": 32
        },
        "label": "20",
        "value": 20
      },
    "ItemData": {
        "QuantityPerCrate": 20
    },

Could also add more to the ItemData body as use cases arise.

I believe this will allow clients the ability to determine the uncrated value, even when an item is created. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions