From 5937d893da5656be3f486c863ae54e08bbe66579 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 9 Aug 2022 16:57:53 -0400 Subject: Added generic items, worked on features --- features/antennae.json | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'features/antennae.json') diff --git a/features/antennae.json b/features/antennae.json index 12739a4..3945752 100644 --- a/features/antennae.json +++ b/features/antennae.json @@ -1,14 +1,22 @@ { - "name": "antennae (action)", - "text": "The rust monster corrodes a nonmagical ferrous metal object it can see within 5 feet of it. If the object isn't being worn or carried, the touch destroys a 1-foot cube of it. If the object is being worn or carried by a creature, the creature can make a DC 11 Dexterity saving throw to avoid the rust monster's touch.", + "name": "antennae", + "text": "The {NAME} corrodes a nonmagical ferrous metal object it can see within 5 feet of it. If the object isn't being worn or carried, the touch destroys a 1-foot cube of it. If the object is being worn or carried by a creature, the creature can make a DC {(8,PROF,STR,+,+)} Dexterity saving throw to avoid the rust monster's touch. If the object touched is either metal armor or a metal shield being worn or carried, its takes a permanent and cumulative −1 penalty to the AC it offers. Armor reduced to an AC of 10 or a shield that drops to a +0 bonus is destroyed. If the object touched is a held metal weapon, it rusts as described in the Rust Metal trait.", "subfeatures": [ { - "trigger": [], - "conditions": [], + "trigger": [ "action" ], + "conditions": [ + [ "N is within radius X of N", "object", "5'", "self" ], + [ "N is made of metal", "object" ], + [ "N is worn or carried by N", "object", "creature" ], + [ "N fails dc X ABILITY save by at least X", "creature", "(8,PROF,STR,+,+)", "dexterity", 0 ] + ], "effects": [{ - "target": "", - "effect": [], - "duration": "" + "target": "object", + "effect": [ "Set N = N", "object.RUST", "(object.RUST,1,+)" ] + }, { + "target": "object", + "effect conditions": [[ "(object.OBJECT_TYPE,1,==,object.RUST,5,>=,&,object.OBJECT_TYPE,2,==,object.RUST,object.OBJECT_AC,-,10,<=,&,object.OBJECT_TYPE,3,==,object.RUST,object.OBJECT_AC,-,0,<=,&,|,|)" ]], + "effect": [ "Destroyed" ] }] } ] -- cgit v1.2.3