# Fixing a mod artifact item

**URL:** https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585
**Category:** The Lab
**Created:** [August 28, 2020, 12:05am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585 "2020-08-28T00:05:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Grimm\_Spector](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/grimm_spector/32/5132_2.png) [@Grimm\_Spector](https://discourse.cataclysmdda.org/u/Grimm_Spector)
#### Post date: [August 28, 2020, 12:05am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/1 "2020-08-28T00:05:47Z")

</div>

Hey, got an item here, and it’s supposed to have an internal power supply that’s charged up by it’s own internal Joint Torsion Ratchet. It’s also supposed to apply a few debuffs when off and on, and the invisibility buff when it is on. Hoping someone can tell me how to get it working correctly, here’s the JSON:

```
  {
"id": "acs_74_stealth_cloak_off",
"type": "TOOL_ARMOR",
"name": { "str": "ACS-74 stealth cloak" },
"description": "An experimental cloak that uses a highly sophisticated network of cameras and LEDs to render the user fully invisible. It is powered by built-in torsion ratchets. Due to particularities of its construction, it is very difficult to move in, hampering wearer's strength, dexterity and movement speed.",
"weight": "1556 g",
"volume": "3 L",
"price": 8400000,
"to_hit": -1,
"phase": "solid",
"material": ["superalloy", "plastic"],
"symbol": "[",
"color": "light_gray",
"covers": ["torso", "head", "arm_l", "arm_r", "leg_l", "leg_r"],
"coverage": 75,
"encumbrance": 15,
"warmth": 15,
"material_thickness": 1,
"environmental_protection": 4,
"max_charges": 100,
"initial_charges": 5,
"artifact_data": { "charge_type": "ARTC_TIME", "effects_worn": ["AEP_STR_DOWN", "AEP_DEX_DOWN", "AEP_SPEED_DOWN"] },
"use_action": { "active": true, "need_charges": 1, "need_charges_msg": "The stored energy has run dry.", "menu_text": "Activate Cloaking", "target": "acs_74_stealth_cloak_on", "msg": "You turn on your cloak.", "type": "transform" },
"flags": ["OVERSIZE", "HOOD", "WATERPROOF", "OUTER", "VARSIZE"]

```

},

Let me know!

---

<div class="post-metadata">

### Author: ![KorGgenT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/korggent/32/12330_2.png) [@KorGgenT](https://discourse.cataclysmdda.org/u/KorGgenT)
#### Post date: [August 28, 2020, 2:10am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/2 "2020-08-28T02:10:13Z")

</div>

artifact\_data doesn’t do anything anymore, you’l need to update it to relic\_data. doc here [https://github.com/CleverRaven/Cataclysm-DDA/blob/54596a7b83c8a6084a69d8eb395c8fc049ceeb07/doc/ARTIFACTS.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/54596a7b83c8a6084a69d8eb395c8fc049ceeb07/doc/ARTIFACTS.md)

---

<div class="post-metadata">

### Author: ![Grimm\_Spector](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/grimm_spector/32/5132_2.png) [@Grimm\_Spector](https://discourse.cataclysmdda.org/u/Grimm_Spector)
#### Post date: [August 28, 2020, 2:49am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/3 "2020-08-28T02:49:12Z")

</div>

I see, it looks like the newer system doesn’t allow for an item anything like this. That’s unfortunate.

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [September 3, 2020, 5:48am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/4 "2020-09-03T05:48:30Z")

</div>

> [@Grimm\_Spector](#):
>
> […] the newer system doesn’t allow for an item anything like this.

I’m not sure about the “own internal Joint Torsion Ratchet”, but I’d assume that for the artifact effects you could add the relic\_data as it can be found on artifact in the save file, like

```auto
"relic_data": {
  "passive_effects": [...]
  },

```

and add probably the debug invisibility mutation to it.

Let me see if I can find the right values and write something up quickly.

Edit:  
Before I went to test my code, I’ve actually decided to look up the item id, in so I can try it directly with the on/off settings. Turns out, there’s already a version that does use relic\_data.  
So… instead of my version, [here’s the item you’re looking for](https://github.com/TheGoatGod/Goats-Mod-Compilation/blob/bcf5aafe201818ac536e27beba3ce6e930a3ebc5/data/Unlesh_The_Mods/working_mods/mods/Nocts_cata_mod/Surv_help/c_armor.json#L243) and the [related effect](https://github.com/TheGoatGod/Goats-Mod-Compilation/blob/bcf5aafe201818ac536e27beba3ce6e930a3ebc5/data/Unlesh_The_Mods/working_mods/mods/Nocts_cata_mod/Surv_help/c_armor.json#L235) of it.

---

<div class="post-metadata">

### Author: ![Grimm\_Spector](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/grimm_spector/32/5132_2.png) [@Grimm\_Spector](https://discourse.cataclysmdda.org/u/Grimm_Spector)
#### Post date: [September 3, 2020, 1:09pm UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/5 "2020-09-03T13:09:40Z")

</div>

> [@Valase](#):
>
> Edit:  
> Before I went to test my code, I’ve actually decided to look up the item id, in so I can try it directly with the on/off settings. Turns out, there’s already a version that does use relic\_data.  
> So… instead of my version, [here’s the item you’re looking for](https://github.com/TheGoatGod/Goats-Mod-Compilation/blob/bcf5aafe201818ac536e27beba3ce6e930a3ebc5/data/Unlesh_The_Mods/working_mods/mods/Nocts_cata_mod/Surv_help/c_armor.json#L243) and the [related effect](https://github.com/TheGoatGod/Goats-Mod-Compilation/blob/bcf5aafe201818ac536e27beba3ce6e930a3ebc5/data/Unlesh_The_Mods/working_mods/mods/Nocts_cata_mod/Surv_help/c_armor.json#L235) of it.

Yeah, that’s the one I’m trying to fix, it doesn’t work.

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [September 4, 2020, 1:43am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/6 "2020-09-04T01:43:19Z")

</div>

I’ve just downloaded the newest version of the Mod-Compilation and tested it in experimental build 0.E-10973, spawning in the cloak and wearing it applies the stats debuff and the invisibility fine (my character can walk right past a zombie and it can’t see me)…

The only thing that changed was that it no longer has to be activated to work and is basically “always on”.

> [@Grimm\_Spector](#):
>
> […] it doesn’t work.

Since it does for me… Explain. **What** doesn’t work?

---

<div class="post-metadata">

### Author: ![Grimm\_Spector](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/grimm_spector/32/5132_2.png) [@Grimm\_Spector](https://discourse.cataclysmdda.org/u/Grimm_Spector)
#### Post date: [September 4, 2020, 10:59am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/7 "2020-09-04T10:59:53Z")

</div>

Interesting as it did none of that for me, I’ll check what version I’m on when I get off work I guess.

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [September 10, 2020, 2:50am UTC](https://discourse.cataclysmdda.org/t/fixing-a-mod-artifact-item/24585/8 "2020-09-10T02:50:50Z")

</div>

@Grimm_Spector, any news on that front? Were you able to get it to do what it’s supposed to?
