Skip to content

Commit

Permalink
[MoM] Add Zener cards (#66788)
Browse files Browse the repository at this point in the history
* Add and distribute Zener cards

* item -> group
  • Loading branch information
Standing-Storm authored Jul 10, 2023
1 parent 12e1986 commit aa66f1d
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
81 changes: 81 additions & 0 deletions data/mods/MindOverMatter/effectoncondition/eoc_misc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
[
{
"type": "effect_on_condition",
"id": "EOC_ZENER_DECK",
"condition": { "math": [ "u_val('spell_level', 'school: CLAIRSENTIENT')", ">=", "10" ] },
"effect": [
{
"switch": { "rand": 4 },
"cases": [
{
"case": 0,
"effect": [
{
"u_message": "You draw the hollow circle card, just as you knew you would. You look at it for a moment and put it back in the deck."
}
]
},
{
"case": 1,
"effect": [
{
"u_message": "You draw the three wavy lines card, just as you knew you would. You look at it for a moment and put it back in the deck."
}
]
},
{
"case": 2,
"effect": [
{
"u_message": "You draw the hollow square card, just as you knew you would. You look at it for a moment and put it back in the deck."
}
]
},
{
"case": 3,
"effect": [
{
"u_message": "You draw the five-pointed star card, just as you knew you would. You look at it for a moment and put it back in the deck."
}
]
},
{
"case": 4,
"effect": [
{
"u_message": "You draw the plus symbol card, just as you knew you would. You look at it for a moment and put it back in the deck."
}
]
}
]
}
],
"false_effect": [
{
"switch": { "rand": 4 },
"cases": [
{
"case": 0,
"effect": [ { "u_message": "You draw the hollow circle card, look at it for a moment, and put it back in the deck." } ]
},
{
"case": 1,
"effect": [ { "u_message": "You draw the three wavy lines card, look at it for a moment, and put it back in the deck." } ]
},
{
"case": 2,
"effect": [ { "u_message": "You draw the hollow square card, look at it for a moment, and put it back in the deck." } ]
},
{
"case": 3,
"effect": [ { "u_message": "You draw the five-pointed star card, look at it for a moment, and put it back in the deck." } ]
},
{
"case": 4,
"effect": [ { "u_message": "You draw the plus symbol card, look at it for a moment, and put it back in the deck." } ]
}
]
}
]
}
]
22 changes: 22 additions & 0 deletions data/mods/MindOverMatter/itemgroups/itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
{ "item": "deck_of_cards", "prob": 15 },
{ "item": "magic_8_ball", "prob": 10 },
{ "item": "cards_magic", "prob": 5 },
{ "group": "psi_testing_materials", "prob": 50 },
{ "item": "apron_plastic", "prob": 30 },
{ "item": "apron_cotton", "prob": 10 },
{ "item": "salt_water", "prob": 20, "charges-min": 1 },
Expand All @@ -185,6 +186,7 @@
{ "item": "manual_meditation", "prob": 20 },
{ "item": "manual_meditation_int", "prob": 12 },
{ "item": "manual_psionics_advan", "prob": 4 },
{ "item": "phavian_report_psionic_drain", "prob": 3 },
{ "item": "schematics_matrix_crystal_ground", "prob": 7 },
{ "item": "schematics_reactant_liquid_base", "prob": 7 },
{ "item": "schematics_matrix_channeling", "prob": 4 },
Expand All @@ -202,6 +204,26 @@
"subtype": "distribution",
"items": [ { "item": "lab_postit_portal", "prob": 3 }, { "item": "lab_postit_psi", "prob": 3 } ]
},
{
"id": "psi_testing_materials",
"type": "item_group",
"subtype": "distribution",
"items": [
{ "item": "cards_zener", "prob": 30 },
{ "item": "file", "prob": 50 },
{ "item": "deck_of_cards", "prob": 30 },
{ "item": "pen", "prob": 30 },
{ "item": "blue_pen", "prob": 20 },
{ "item": "green_pen", "prob": 20 },
{ "item": "red_pen", "prob": 30 },
{ "item": "envelope", "prob": 30 },
{ "item": "paper", "prob": 40 },
{ "item": "blindfold", "prob": 20 },
{ "item": "coin_quarter", "prob": 5 },
{ "item": "coin_dime", "prob": 2 },
{ "item": "coin_penny", "prob": 3 }
]
},
{
"type": "item_group",
"subtype": "distribution",
Expand Down
22 changes: 22 additions & 0 deletions data/mods/MindOverMatter/items/misc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"id": "cards_zener",
"type": "GENERIC",
"category": "other",
"name": { "str": "deck of Zener cards", "str_pl": "decks of Zener cards" },
"description": "A deck of Zener cards, used pre-Catalcysm to test for psychic ability.",
"weight": "23 g",
"volume": "29 ml",
"price": 1314,
"price_postapoc": 2,
"material": [ "cardboard" ],
"symbol": ",",
"color": "magenta",
"flags": [ "NO_REPAIR" ],
"use_action": {
"type": "effect_on_conditions",
"description": "Pick a card. Any card.",
"effect_on_conditions": [ "EOC_ZENER_DECK" ]
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@
"palettes": [ "office_phavian_palette" ],
"place_item": [
{ "item": "deck_of_cards", "x": 2, "y": 5, "chance": 60 },
{ "item": "cards_zener", "x": 2, "y": 5, "chance": 80 },
{ "item": "pen", "x": 2, "y": 5, "chance": 60 },
{ "item": "blue_pen", "x": 2, "y": 5, "chance": 60 },
{ "item": "green_pen", "x": 2, "y": 5, "chance": 60 },
Expand Down

0 comments on commit aa66f1d

Please sign in to comment.