Skip to content

Commit

Permalink
Add infrastructure for starting
Browse files Browse the repository at this point in the history
  • Loading branch information
Standing-Storm committed Sep 8, 2024
1 parent de53902 commit d5c4811
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 4 deletions.
137 changes: 137 additions & 0 deletions data/mods/Xedra_Evolved/eocs/playable_changeling_advancement_eocs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
[
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": { "test_eoc": "EOC_TEST_CHANGELING_COMMONER_INITIAL_CONDITIONS" },
"effect": [
{
"u_message": "That night, you dream of your parents and the unknown place of your birth. Who were they?",
"type": "info"
},
{
"run_eoc_selector": [
"EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_BROWNIE",
"EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_POOKA",
"EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_SELKIE",
"EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_TROW"
],
"names": [ "Brownie", "Pooka", "Selkie", "Trow" ],
"title": "What is your heritage?",
"descriptions": [
"Your parents were brownies, the simple, down-to-earth crafters of the fae.",
"Your parents were pookas, shapechangers that can take animal forms.",
"Your parents were selkies, who spend part of the time upon land and part of the time as a seal in the sea",
"Your parents were trow, tough as stone, who dwell beneath the earth."
]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_BROWNIE",
"condition": { "test_eoc": "EOC_TEST_CHANGELING_COMMONER_INITIAL_CONDITIONS" },
"effect": [
{ "u_add_trait": "FAIR_FOLK_COMMONER_BROWNIE" },
{ "u_add_trait": "UNKNOWING_CHANGELING_COMMONER_CHOICE" },
{ "u_message": "XE_CHANGELING_COMMONER_BROWNIE", "type": "neutral", "snippet": true }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_POOKA",
"condition": { "test_eoc": "EOC_TEST_CHANGELING_COMMONER_INITIAL_CONDITIONS" },
"effect": [
{ "u_add_trait": "FAIR_FOLK_COMMONER_POOKA" },
{ "u_add_trait": "UNKNOWING_CHANGELING_COMMONER_CHOICE" },
{ "u_message": "XE_CHANGELING_COMMONER_POOKA", "type": "neutral", "snippet": true }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_SELKIE",
"condition": { "test_eoc": "EOC_TEST_CHANGELING_COMMONER_INITIAL_CONDITIONS" },
"effect": [
{ "u_add_trait": "FAIR_FOLK_COMMONER_SELKIE" },
{ "u_add_trait": "UNKNOWING_CHANGELING_COMMONER_CHOICE" },
{ "u_message": "XE_CHANGELING_COMMONER_SELKIE", "type": "neutral", "snippet": true }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_COMMONER_CHOOSE_HERITAGE_TROW",
"condition": { "test_eoc": "EOC_TEST_CHANGELING_COMMONER_INITIAL_CONDITIONS" },
"effect": [
{ "u_add_trait": "FAIR_FOLK_COMMONER_TROW" },
{ "u_add_trait": "UNKNOWING_CHANGELING_COMMONER_CHOICE" },
{ "u_message": "XE_CHANGELING_COMMONER_TROW", "type": "neutral", "snippet": true }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_NOBLE_NEW_POWERS",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": {
"and": [ { "u_has_trait": "UNKNOWING_CHANGELING_NOBLE" }, { "math": [ "u_vitamin('changeling_dreams')", ">=", "1" ] } ]
},
"effect": [ ]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_BROWNIE_NEW_POWERS",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": {
"and": [
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER" },
{ "u_has_trait": "FAIR_FOLK_COMMONER_BROWNIE" },
{ "math": [ "u_vitamin('changeling_dreams')", ">=", "1" ] }
]
},
"effect": [ ]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_POOKA_NEW_POWERS",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": {
"and": [
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER" },
{ "u_has_trait": "FAIR_FOLK_COMMONER_POOKA" },
{ "math": [ "u_vitamin('changeling_dreams')", ">=", "1" ] }
]
},
"effect": [ ]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_SELKIE_NEW_POWERS",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": {
"and": [
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER" },
{ "u_has_trait": "FAIR_FOLK_COMMONER_SELKIE" },
{ "math": [ "u_vitamin('changeling_dreams')", ">=", "1" ] }
]
},
"effect": [ ]
},
{
"type": "effect_on_condition",
"id": "EOC_PLAYABLE_CHANGELING_TROW_NEW_POWERS",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": {
"and": [
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER" },
{ "u_has_trait": "FAIR_FOLK_COMMONER_TROW" },
{ "math": [ "u_vitamin('changeling_dreams')", ">=", "1" ] }
]
},
"effect": [ ]
}
]
4 changes: 4 additions & 0 deletions data/mods/Xedra_Evolved/mutations/mutation_category.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@
{
"type": "mutation_type",
"id": "MANA_SIPHON"
},
{
"type": "mutation_type",
"id": "HERITAGE"
}
]
16 changes: 16 additions & 0 deletions data/mods/Xedra_Evolved/mutations/playable_changeline_eocs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
[
{
"type": "effect_on_condition",
"id": "EOC_TEST_CHANGELING_COMMONER_INITIAL_CONDITIONS",
"condition": {
"and": [
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER" },
{ "not": { "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_CHOICE" } },
{
"not": {
"u_has_any_trait": [ "FAIR_FOLK_COMMONER_BROWNIE", "FAIR_FOLK_COMMONER_POOKA", "FAIR_FOLK_COMMONER_SELKIE", "FAIR_FOLK_COMMONER_TROW" ]
}
}
]
},
"effect": [ ]
},
{
"type": "effect_on_condition",
"id": "EOC_UNKNOWING_CHANGELING_WEARING_IRON_OR_STEEL",
Expand Down
44 changes: 40 additions & 4 deletions data/mods/Xedra_Evolved/mutations/playable_changeling.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"name": "Unknowing Changeling, Noble (Species)",
"description": "You grew up thinking you were human, just another person among billions, but you were born Under the Hill and swapped for a human baby shortly after birth. Your parents were the nobility of the Fair Folk, the great lords and ladies who traveled in spider-silk carriages on roads built of moonbeams and danced the unending nights away before leading fantastic armies in battle the next morning. When the Cataclysm hit, your parents' slumbering power asserted itself, giving you access to a portion of their fae magick. Hopefully it will help you survive.",
"points": 4,
"traits": [ "THRESH_FAIR_FOLK_NOBLE", "UNKNOWING_CHANGELING" ]
"traits": [ "THRESH_FAIR_FOLK_NOBLE", "ELFA_EARS", "UNKNOWING_CHANGELING_NOBLE" ]
},
{
"type": "profession",
"subtype": "hobby",
"id": "hobby_species_changeling_commoner",
"name": "Unknowing Changeling, Commoner (Species)",
"description": "You grew up thinking you were human, just another person among billions, but you were born Under the Hill and swapped for a human baby shortly after birth. Your parents come from the common masses of the Fair Folk, the pooka, redcaps, hobgoblins, trow, pixies, knockers, selkies, or any of the myriad of others. While your time in the mortal realm has covered over any distinctions that might have been derived from your heritage, when the Cataclysm hit, your parents' slumbering power asserted itself, giving you access to a portion of their fae magick. Hopefully it will help you survive.",
"description": "You grew up thinking you were human, just another person among billions, but you were born Under the Hill and swapped for a human baby shortly after birth. Your parents come from the common masses of the Fair Folk, the pooka, redcaps, hobgoblins, trow, pixies, knockers, selkies, or any of the myriad of others. When the Cataclysm hit, your parents' slumbering power asserted itself, revealing your heritage and giving you access to a portion of their fae magick. Hopefully it will help you survive.",
"points": 4,
"traits": [ "THRESH_FAIR_FOLK_COMMONER", "UNKNOWING_CHANGELING" ]
"traits": [ "THRESH_FAIR_FOLK_COMMONER", "ELFA_EARS", "UNKNOWING_CHANGELING_COMMONER" ]
},
{
"type": "mutation",
Expand All @@ -37,18 +37,54 @@
"purifiable": false,
"threshold": true
},
{
"type": "mutation",
"id": "FAIR_FOLK_COMMONER_BROWNIE",
"name": { "str": "Brownie Changeling" },
"description": "This tracks your heritage, used for advancement. YOu shouldn't see it.",
"points": 4,
"valid": false,
"purifiable": false,
"player_display": false
},
{
"type": "mutation",
"id": "FAIR_FOLK_COMMONER_POOKA",
"name": { "str": "Pooka Changeling" },
"copy-from": "FAIR_FOLK_COMMONER_BROWNIE"
},
{
"type": "mutation",
"id": "FAIR_FOLK_COMMONER_SELKIE",
"name": { "str": "Selkie Changeling" },
"copy-from": "FAIR_FOLK_COMMONER_BROWNIE"
},
{
"type": "mutation",
"id": "FAIR_FOLK_COMMONER_TROW",
"name": { "str": "Trow Changeling" },
"copy-from": "FAIR_FOLK_COMMONER_BROWNIE"
},
{
"type": "mutation",
"id": "FAIR_FOLK_COMMONER_TROW",
"name": { "str": "Made Commoner Choice" },
"description": "This tracks your heritage, used to prevent picking more than one heritage. You shouldn't see it.",
"copy-from": "FAIR_FOLK_COMMONER_BROWNIE"
},
{
"type": "mutation",
"id": "UNKNOWING_CHANGELING_NOBLE",
"name": { "str": "Changeling" },
"description": "You grew up thinking you were human, just another person among billions, but you were born Under the Hill and swapped for a human baby shortly after birth. While you find it uncomfortable ever since your heritage asserted itself, your time in the mortal realm has innured you to the presence of iron. However, it has not done so enough to allow you to install any CBMs.",
"description": "You grew up thinking you were human, just another person among billions, but you were born Under the Hill and swapped for a human baby shortly after birth. While you find it uncomfortable ever since your heritage asserted itself, your time in the mortal realm has inured you to the presence of iron. However, it has not done so enough to allow you to install any CBMs.",
"mixed_effect": true,
"valid": false,
"starting_trait": false,
"purifiable": false,
"profession": true,
"points": 0,
"allowed_category": [ "FAIR_FOLK_NOBLE" ],
"types": [ "HERITAGE" ],
"no_cbm_on_bp": [ "torso", "head", "eyes", "mouth", "arm_l", "arm_r", "hand_l", "hand_r", "leg_l", "leg_r", "foot_l", "foot_r" ]
},
{
Expand Down
27 changes: 27 additions & 0 deletions data/mods/Xedra_Evolved/snippets/playable_changeling_dreams.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"type": "snippet",
"category": "XE_CHANGELING_NOBLE",
"text": [ "You have bad dreams." ]
},
{
"type": "snippet",
"category": "XE_CHANGELING_COMMONER_BROWNIE",
"text": [ "You have bad dreams." ]
},
{
"type": "snippet",
"category": "XE_CHANGELING_COMMONER_POOKA",
"text": [ "You have bad dreams." ]
},
{
"type": "snippet",
"category": "XE_CHANGELING_COMMONER_SELKIE",
"text": [ "You have bad dreams." ]
},
{
"type": "snippet",
"category": "XE_CHANGELING_COMMONER_TROW",
"text": [ "You have bad dreams." ]
}
]
9 changes: 9 additions & 0 deletions data/mods/Xedra_Evolved/vitamin.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,14 @@
"max": 2500,
"rate": "1 h",
"disease_excess": [ [ 100, 500 ], [ 501, 2199 ], [ 2200, 2500 ] ]
},
{
"id": "changeling_dreams",
"type": "vitamin",
"vit_type": "counter",
"name": { "str": "Changeling Heritage" },
"min": 0,
"max": 1,
"rate": "0 m"
}
]

0 comments on commit d5c4811

Please sign in to comment.