From b55ec86ee35544e93f70bf22b9dc28c6096a50ae Mon Sep 17 00:00:00 2001 From: CosmoOrSth <79050675+CosmoOrSth@users.noreply.github.com> Date: Thu, 1 Feb 2024 15:15:36 +0530 Subject: [PATCH] Complete implementation of Shade origin -added shade origin -implemented invisibility power for shade origin --- .../assets/terraoriginum/lang/en_us.json | 8 +++++- .../data/origins/origin_layers/origin.json | 1 + .../data/terraoriginum/origins/shade.json | 20 ++++++++++++++ .../powers/shade-powers/invisibility1.json | 15 +++++++++++ .../powers/shade-powers/invisibility2.json | 10 +++++++ .../powers/shade-powers/invisibility3.json | 27 +++++++++++++++++++ todo.md | 3 +++ 7 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/data/terraoriginum/origins/shade.json create mode 100644 src/main/resources/data/terraoriginum/powers/shade-powers/invisibility1.json create mode 100644 src/main/resources/data/terraoriginum/powers/shade-powers/invisibility2.json create mode 100644 src/main/resources/data/terraoriginum/powers/shade-powers/invisibility3.json diff --git a/src/main/resources/assets/terraoriginum/lang/en_us.json b/src/main/resources/assets/terraoriginum/lang/en_us.json index e2af182..79b78ba 100644 --- a/src/main/resources/assets/terraoriginum/lang/en_us.json +++ b/src/main/resources/assets/terraoriginum/lang/en_us.json @@ -29,6 +29,12 @@ "power.terraoriginum.wraith-powers/torment1.name": "Torment", "power.terraoriginum.wraith-powers/torment1.description": "The Wraith recalls the eons of agony it suffered, causing it's body to respond to the trauma by strengthening itself. Expends ectoplasm quickly.", "power.terraoriginum.wraith-powers/charred.name": "Charred", - "power.terraoriginum.wraith-powers/charred.description": "Wraiths are burned of torment, which gives them a literally charred appearance." + "power.terraoriginum.wraith-powers/charred.description": "Wraiths are burned of torment, which gives them a literally charred appearance.", + + //-----Shade-----// + "origin.terraoriginum.shade.name": "Shade", + "origin.terraoriginum.shade.description": "Shades are shy ghostly entities, generally choosing to remain hidden from other non-ghostly entities.", + "power.terraoriginum.shade-powers/invisibility1.name": "Invisibility", + "power.terraoriginum.shade-powers/invisibility1.description": "Shades have the ability to turn their entire bodies, including any armour they are wearing, entirely invisible. The invisibility is counteracted by the glowing effect and expends some ectoplasm" } \ No newline at end of file diff --git a/src/main/resources/data/origins/origin_layers/origin.json b/src/main/resources/data/origins/origin_layers/origin.json index 169e331..cc7a12a 100644 --- a/src/main/resources/data/origins/origin_layers/origin.json +++ b/src/main/resources/data/origins/origin_layers/origin.json @@ -5,6 +5,7 @@ "terraoriginum:demon", "terraoriginum:spirit", "terraoriginum:wraith", + "terraoriginum:shade", { "condition": { "type": "origins:equipped_item", diff --git a/src/main/resources/data/terraoriginum/origins/shade.json b/src/main/resources/data/terraoriginum/origins/shade.json new file mode 100644 index 0000000..9c282de --- /dev/null +++ b/src/main/resources/data/terraoriginum/origins/shade.json @@ -0,0 +1,20 @@ +{ + "powers": [ + "terraoriginum:shade-powers/invisibility1", + "terraoriginum:shade-powers/invisibility2", + "terraoriginum:shade-powers/invisibility3", + "terraoriginum:spirit-powers/ectoplasm", + "terraoriginum:spirit-powers/ectodiff", + "terraoriginum:spirit-powers/lackofectodmg", + "terraoriginum:spirit-powers/skin", + "terraoriginum:spirit-powers/phasing1", + "terraoriginum:spirit-powers/phasing2", + "terraoriginum:spirit-powers/phasing3", + "terraoriginum:spirit-powers/undead", + "terraoriginum:spirit-powers/nightvis", + "terraoriginum:ectotest" + ], + "icon": "minecraft:black_candle", + "order": 1004, + "impact": 3 +} diff --git a/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility1.json b/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility1.json new file mode 100644 index 0000000..1defc09 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility1.json @@ -0,0 +1,15 @@ +{ + "type": "origins:toggle", + "active_by_default": false, + "key": { + "key": "key.origins.primary_active", + "continuous": false + }, + "retain_state": false, + "condition": { + "type": "origins:resource", + "resource": "terraoriginum:spirit-powers/ectoplasm", + "comparison": ">=", + "compare_to": 1 + } + } \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility2.json b/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility2.json new file mode 100644 index 0000000..2175b4d --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility2.json @@ -0,0 +1,10 @@ +{ + "type": "origins:invisibility", + "render_armor": false, + "render_outline": true, + "condition": { + "type": "origins:power_active", + "power": "terraoriginum:shade-powers/invisibility1" + }, + "hidden": true +} \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility3.json b/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility3.json new file mode 100644 index 0000000..a9ad461 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/shade-powers/invisibility3.json @@ -0,0 +1,27 @@ +{ + "type": "origins:action_over_time", + "interval": 20, + "hidden": true, + "entity_action": { + "type": "origins:if_else_list", + "actions": [ + { + "condition": { + "type": "origins:power_active", + "power": "terraoriginum:shade-powers/invisibility1" + }, + "action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:change_resource", + "resource": "terraoriginum:spirit-powers/ectoplasm", + "change": -5, + "operation": "add" + } + ] + } + } + ] + } + } \ No newline at end of file diff --git a/todo.md b/todo.md index e69de29..fcc8619 100644 --- a/todo.md +++ b/todo.md @@ -0,0 +1,3 @@ +# implement functionality to crucifix + - damages Demons + - applies glowing to shades \ No newline at end of file