Skip to main content

Modify Accessory Slots (Power Type)

Changes how many accessory slots the holder has. Adding slots is the usual case, such as an origin that can wear two rings instead of one.

Type ID: apoli:modify_accessory_slots (aliases apoli:modify_trinket_slot, apoli:modify_trinket_slots)

note

This type only exists when an accessory mod is installed: Trinkets, Accessories or Curios, depending on your loader. A pack that uses it must depend on one.

Fields

FieldTypeDefaultDescription
modifiersArray of modifier objectsrequiredThe slot changes (see below).

Modifier fields

FieldTypeDefaultDescription
slotStringrequiredThe slot to change, named the way your accessory mod names it. Trinkets uses group/slot (hand/ring), and Accessories and Curios use the slot name alone (ring).
idIdentifierrequiredA unique ID for this modifier, so it can be applied and removed cleanly.
amountFloat0.0How much to change the count by.
operationAttribute Modifier Operationadd_base_earlyHow amount is applied.

Examples

{
  "type": "apoli:modify_accessory_slots",
  "modifiers": [
    {
      "slot": "hand/ring",
      "id": "mypack:extra_ring",
      "amount": 1
    }
  ]
}

This gives the holder one extra ring slot.

{
  "type": "apoli:modify_accessory_slots",
  "modifiers": [
    { "slot": "chest/necklace", "id": "mypack:no_necklace", "amount": -1 },
    { "slot": "hand/ring",      "id": "mypack:extra_ring",  "amount": 2 }
  ]
}

This takes the necklace slot away as a drawback and adds two ring slots to make up for it.

The power's condition is checked every tick. The slots are added while it passes and taken away again while it fails, so a slot can follow a resource, a toggle or anything else the condition reads:

{
  "type": "apoli:modify_accessory_slots",
  "condition": {
    "type": "apoli:resource",
    "resource": "mypack:ring_charge",
    "comparison": ">",
    "compare_to": 0
  },
  "modifiers": [
    { "slot": "hand/ring", "id": "mypack:charged_ring", "amount": 1 }
  ]
}
warning

Give each modifier a different id. Two modifiers sharing an ID on the same slot overwrite each other.