Skip to content

Commit

Permalink
[Magiclysm] Potion fruits! (CleverRaven#67840)
Browse files Browse the repository at this point in the history
* Create potion_fruits.json

* Update effects.json

* Update consumables.json

* Update consumables.json

* Update proficiencies.json

* Update potion_fruits.json

* Create potion_fruits.json

* Update potion_fruits.json

* Update item_only.json

* Update item_only.json

* Update effects.json

* Update potion_fruits.json

* Update potion_fruits.json

* Update potion_fruits.json

* Update item_only.json

* Update item_only.json

* Update potion_fruits.json

* Update effects.json

* Update potion_fruits.json

* Update potion_fruits.json

* Update effects.json

* Update potion_fruits.json

* Update potion_fruits.json

* Linting

* Add cranberries

* Update potion_fruits.json

* Update effects.json

* Update effects.json

* Update potion_fruits.json

* Update potion_fruits.json

* Update potion_fruits.json

* Update potion_fruits.json

* Create effect_potion_fruit.json

* Update recipe_books.json

* Update recipe_books.json

* Update recipe_books.json

* Update itemgroups.json

* Update data/mods/Magiclysm/items/potion_fruits.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/mods/Magiclysm/Spells/consumables.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/mods/Magiclysm/items/recipe_books.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Fixes

* Add str_pl

* Fix density?

* Remove unused consumable spells

* add "nutrient override"

* Fix cranberry density

* Remove cranberries from bad density test as requested

* Remove irradiated cranberries as requested

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Standing-Storm and github-actions[bot] authored Aug 26, 2023
1 parent e5e919f commit 0dafa87
Show file tree
Hide file tree
Showing 11 changed files with 791 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/json/items/comestibles/raw_fruit.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"type": "COMESTIBLE",
"id": "cranberries",
"name": { "str": "handful of cranberries", "str_pl": "handfuls of cranberries" },
"weight": "100 g",
"weight": "106 g",
"color": "red",
"spoils_in": 640,
"comestible_type": "FOOD",
Expand All @@ -139,7 +139,7 @@
"price": "17 cent",
"price_postapoc": "33 cent",
"material": [ "fruit" ],
"volume": "83 ml",
"volume": "250 ml",
"fun": -5,
"flags": [ "SMOKABLE", "RAW", "EDIBLE_FROZEN" ],
"smoking_result": "dry_fruit",
Expand Down
12 changes: 12 additions & 0 deletions data/mods/Magiclysm/Spells/consumables.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,17 @@
"shape": "blast",
"min_damage": 20,
"max_damage": 20
},
{
"id": "pfruit_regeneration_spell",
"type": "SPELL",
"name": "Apple Potion Healing Effect",
"description": "Heals the target.",
"valid_targets": [ "self" ],
"min_damage": -1,
"max_damage": -1,
"effect": "attack",
"shape": "blast",
"flags": [ "SILENT" ]
}
]
178 changes: 178 additions & 0 deletions data/mods/Magiclysm/effects/effect_potion_fruit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
[
{
"id": "effect_pfruit_heal",
"type": "effect_type",
"name": [ "Restore Flesh and Bone" ],
"desc": [ "Thanks to that apple, your wounds are slowly healing." ],
"apply_message": "Your flesh and bones start to knit together before your eyes.",
"remove_message": "Your regeneration slows down.",
"rating": "good",
"show_intensity": false,
"enchantments": [
{
"intermittent_activation": { "effects": [ { "frequency": "30 seconds", "spell_effects": [ { "id": "pfruit_regeneration_spell" } ] } ] }
}
]
},
{
"id": "effect_pfruit_cure",
"type": "effect_type",
"name": [ "Ward off Miasma" ],
"desc": [ "No illness is going to get you down now." ],
"apply_message": "You feel revitalized.",
"rating": "good",
"show_intensity": false,
"removes_effects": [ "scurvy", "redcells_anemia", "anemia", "toxin_buildup", "common_cold", "flu" ]
},
{
"id": "effect_pfruit_attack_speed",
"type": "effect_type",
"name": [ "Quick Blows" ],
"desc": [ "Thanks to that pear, you can attack faster." ],
"apply_message": "You arms speed up.",
"remove_message": "Your muscle's twitch as the pear's magic fades.",
"rating": "good",
"show_intensity": false,
"enchantments": [ { "values": [ { "value": "ATTACK_SPEED", "add": -15 } ] } ]
},
{
"id": "effect_pfruit_thorns",
"type": "effect_type",
"name": [ "Blackberry Thorns" ],
"desc": [ "Anyone who attacks you will regret it." ],
"apply_message": "Long thorns grow through your skin, clothes, and armor.",
"remove_message": "The thorns vanish without a trace, leaving your gear unharmed.",
"rating": "good",
"show_intensity": false,
"enchantments": [ "enchant_pfruit_thorns" ]
},
{
"type": "enchantment",
"id": "enchant_pfruit_thorns",
"condition": "ALWAYS",
"has": "HELD",
"hit_me_effect": [ { "id": "pfruit_aura_thorns", "hit_self": false } ]
},
{
"id": "pfruit_aura_thorns",
"type": "SPELL",
"name": "Blackberry fruit aura thorns",
"description": "Stab a monster that attacked you.",
"valid_targets": [ "hostile" ],
"flags": [ "RANDOM_DAMAGE" ],
"shape": "blast",
"effect": "attack",
"damage_type": "stab",
"min_damage": 1,
"max_damage": 4,
"min_range": 1,
"max_range": 1
},
{
"id": "effect_pfruit_keep_warm",
"type": "effect_type",
"name": [ "Summer's Heat" ],
"desc": [ "The magic of those strawberries is keeping you warm." ],
"apply_message": "You feel a pleasant warmth.",
"remove_message": "You shiver as a cool breeze hits your skin.",
"rating": "good",
"show_intensity": false,
"enchantments": [ { "values": [ { "value": "CLIMATE_CONTROL_HEAT", "add": 50 } ] } ]
},
{
"id": "effect_pfruit_purge",
"type": "effect_type",
"name": [ "Ward off Toxins" ],
"desc": [ "Your body will not be corrupted by these vile substances." ],
"apply_message": "You feel cleansed.",
"rating": "good",
"show_intensity": false,
"removes_effects": [
"poison",
"venom_dmg",
"venom_weaken",
"badpoison",
"foodpoison",
"paralyzepoison",
"bloodworms",
"brainworms",
"tapeworm"
]
},
{
"id": "effect_pfruit_dodge",
"type": "effect_type",
"name": [ "Flexible" ],
"desc": [ "Your range of motion is greatly increased." ],
"apply_message": "You arms are as bendy as rubber.",
"remove_message": "Your limbs creak as they lose their flexibility.",
"rating": "good",
"show_intensity": false,
"limb_score_mods": [
{ "limb_score": "reaction", "modifier": 2.0 },
{ "limb_score": "block", "modifier": 1.2 },
{ "limb_score": "crawl", "modifier": 1.5 }
],
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 1 } ] } ],
"flags": [ "DOWNED_RECOVERY", "EFFECT_LIMB_SCORE_MOD" ]
},
{
"type": "effect_type",
"id": "effect_pfruit_nightvision",
"name": [ "Wintergreen Vision" ],
"desc": [ "You can see in the dark." ],
"apply_message": "The night doesn't seem so dark anymore",
"remove_message": "The darkness of the night rushes in again.",
"rating": "good",
"limb_score_mods": [ { "limb_score": "night_vis", "modifier": 6 } ],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
},
{
"id": "effect_pfruit_nobleed",
"type": "effect_type",
"name": [ "Stopped Bleeding" ],
"desc": [ "Your blood is all being held within your body." ],
"apply_message": "Your wounds tingle.",
"remove_message": "You feel a prickle as your wounds ache.",
"rating": "good",
"show_intensity": false,
"removes_effects": [ "bleed" ],
"flags": [ "BLEED_IMMUNE" ]
},
{
"id": "effect_pfruit_vision",
"type": "effect_type",
"name": [ "Good Vision" ],
"desc": [ "The magic of those apricots is helping you see better." ],
"apply_message": "You can pick out even minute details.",
"remove_message": "Distant objects loose their magical clarity.",
"rating": "good",
"show_intensity": false,
"limb_score_mods": [ { "limb_score": "vision", "modifier": 1.25 } ],
"enchantments": [ { "values": [ { "value": "PERCEPTION", "add": 2 } ] } ],
"flags": [ "GLARE_RESIST", "EFFECT_LIMB_SCORE_MOD" ]
},
{
"id": "effect_pfruit_eat_poison",
"type": "effect_type",
"name": [ "Poison-Eater" ],
"desc": [ "You can eat toxic or spoiled food without penalty. You still should not eat zombie meat." ],
"apply_message": "Your sense of taste dulls.",
"remove_message": "Something in your mouth tastes foul.",
"rating": "good",
"show_intensity": false,
"flags": [ "IMMUNE_SPOIL" ],
"vitamins": [ { "vitamin": "mutant_toxin", "rate": [ [ -1, -1 ] ], "absorb_mult": [ 0.5 ], "tick": [ "1 s" ] } ]
},
{
"id": "effect_pfruit_no_drunk",
"type": "effect_type",
"name": [ "Remove intoxicants" ],
"desc": [ "You are being rapidly sobered up." ],
"apply_message": "Your head pounds, but you feel much more alert.",
"remove_message": ".",
"rating": "mixed",
"show_intensity": false,
"removes_effects": [ "drunk", "meth", "high", "weed_high" ]
}
]
2 changes: 1 addition & 1 deletion data/mods/Magiclysm/itemgroups/itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "item_group",
"id": "homebooks",
"copy-from": "homebooks",
"extend": { "items": [ { "group": "spellbook_loot_0", "prob": 4 } ] }
"extend": { "items": [ { "group": "spellbook_loot_0", "prob": 4 }, { "item": "history_botanical_enchantment", "prob": 2 } ] }
},
{
"type": "item_group",
Expand Down
1 change: 1 addition & 0 deletions data/mods/Magiclysm/itemgroups/recipe_books.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[ "techno_basic", 30 ],
[ "enchantment_basic", 30 ],
[ "book_mythological", 10 ],
[ "history_botanical_enchantment", 15 ],
[ "cooking_poison", 15 ],
[ "metal_legends", 5 ]
]
Expand Down
Loading

0 comments on commit 0dafa87

Please sign in to comment.