diff --git a/jsonschema/current/Interfaces.schema.json b/jsonschema/current/Interfaces.schema.json index aa59945f..da5a6478 100644 --- a/jsonschema/current/Interfaces.schema.json +++ b/jsonschema/current/Interfaces.schema.json @@ -18,12 +18,9 @@ {"$ref": "dungeoneer/entities/projectiles/Projectile.schema.json"}, {"$ref": "dungeoneer/entities/triggers/BasicTrigger.schema.json"}, {"$ref": "dungeoneer/entities/triggers/ButtonModel.schema.json"}, - {"$ref": "dungeoneer/entities/triggers/ButtonDecal.schema.json"}, - {"$ref": "dungeoneer/entities/triggers/ConditionalTrigger.schema.json"}, {"$ref": "dungeoneer/entities/triggers/DamageTrigger.schema.json"}, - {"$ref": "dungeoneer/entities/triggers/LevelSwap.schema.json"}, {"$ref": "dungeoneer/entities/triggers/LookAtTrigger.schema.json"}, - {"$ref": "dungeoneer/entities/triggers/Trigger.schema.json"}, + {"$ref": "Interfaces.schema.json#/definitions/TriggerLike"}, {"$ref": "Interfaces.schema.json#/definitions/ActorLike"}, {"$ref": "Interfaces.schema.json#/definitions/AreaLike"}, {"$ref": "Interfaces.schema.json#/definitions/ItemLike"}, @@ -97,6 +94,14 @@ "oneOf": [ {"$ref": "dungeoneer/statuseffects/StatusEffect.schema.json" } ] + }, + "TriggerLike": { + "oneOf": [ + {"$ref": "dungeoneer/entities/triggers/ButtonDecal.schema.json"}, + {"$ref": "dungeoneer/entities/triggers/ConditionalTrigger.schema.json"}, + {"$ref": "dungeoneer/entities/triggers/LevelSwap.schema.json"}, + {"$ref": "dungeoneer/entities/triggers/Trigger.schema.json"} + ] } } }