Skip to content

Commit

Permalink
[Magiclysm] Add a couple more CBMs (CleverRaven#78951)
Browse files Browse the repository at this point in the history
* Initial commit

* Remove conflict from Levinbolt Projector

* Remove redundant EoC

* Fix spell activation formatting
  • Loading branch information
Standing-Storm authored Jan 5, 2025
1 parent c45d985 commit 500df91
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 1 deletion.
26 changes: 26 additions & 0 deletions data/mods/Magiclysm/Spells/bionic_spells.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"id": "bio_ley_energy_blaster_spell",
"type": "SPELL",
"name": { "str": "Levinbolt Projector Targeting", "//~": "NO_I18N" },
"description": { "str": "Blast someone with magical energy just like in anime.", "//~": "NO_I18N" },
"message": "You unleash a levinbolt.",
"valid_targets": [ "ally", "hostile", "ground" ],
"flags": [ "SILENT", "RANDOM_DAMAGE", "NO_FAIL" ],
"spell_class": "NONE",
"effect": "attack",
"shape": "line",
"damage_type": "nether",
"min_damage": 25,
"max_damage": 60,
"min_range": 8,
"max_range": 8,
"field_id": "fd_laser",
"energy_source": "MANA",
"base_casting_time": 25,
"base_energy_cost": 75,
"min_field_intensity": 2,
"max_field_intensity": 2,
"field_chance": 1
}
]
9 changes: 9 additions & 0 deletions data/mods/Magiclysm/effects/effect_bionics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"id": "effect_bio_mana_to_bionic_power",
"type": "effect_type",
"//": "Empty effect, used as a tracker",
"name": [ "" ],
"desc": [ "" ]
}
]
16 changes: 15 additions & 1 deletion data/mods/Magiclysm/itemgroups/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
{ "item": "bio_ethanol", "prob": 50 },
{ "item": "bio_fuel_cell_gasoline", "prob": 50 },
{ "item": "bio_torsionratchet", "prob": 200 },
{ "item": "bio_mana_to_bionic_power", "prob": 25 },
{ "item": "bio_fuel_cell_blood", "prob": 5 }
],
"prob": 50
Expand Down Expand Up @@ -79,10 +80,23 @@
}
]
},
{
"id": "Zomborg_CBM_harvest_ranged_weapons",
"copy-from": "Zomborg_CBM_harvest_ranged_weapons",
"type": "item_group",
"subtype": "distribution",
"extend": { "items": [ { "item": "bio_ley_energy_blaster", "prob": 5 } ] }
},
{
"type": "item_group",
"id": "EXODII_CBM_Store_Tier2",
"copy-from": "EXODII_CBM_Store_Tier2",
"extend": { "items": [ { "item": "bio_mana_to_bionic_power", "prob": 10 } ] }
},
{
"type": "item_group",
"id": "EXODII_CBM_Store_Tier3",
"copy-from": "EXODII_CBM_Store_Tier3",
"extend": { "items": [ { "item": "bio_see_wizards_eyes", "prob": 10 } ] }
"extend": { "items": [ { "item": "bio_see_wizards_eyes", "prob": 10 }, { "item": "bio_ley_energy_blaster", "prob": 10 } ] }
}
]
1 change: 1 addition & 0 deletions data/mods/Magiclysm/itemgroups/harvest_cbm.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"entries": [
{ "item": "bio_ethanol", "prob": 50 },
{ "item": "bio_fuel_cell_gasoline", "prob": 50 },
{ "item": "bio_mana_to_bionic_power", "prob": 25 },
{ "item": "bio_fuel_cell_blood", "prob": 5 },
{ "item": "bio_torsionratchet", "prob": 200 }
]
Expand Down
65 changes: 65 additions & 0 deletions data/mods/Magiclysm/items/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,70 @@
"descriptions": [ { "id": "fae_sense", "symbol": "?", "color": "cyan", "text": "You see the ley lines of a wielder of magic." } ]
}
]
},
{
"id": "bio_mana_to_bionic_power",
"copy-from": "bionic_general",
"type": "BIONIC_ITEM",
"name": { "str": "Corporeal Ley Tap CBM" },
"description": "For those who have no use for their mana, this bionic allows the user to convert mana directly into bionic power. Though the conversion rate is inefficient, mana is free.",
"price": "5 kUSD 500 USD",
"weight": "500 g",
"difficulty": 6
},
{
"id": "bio_mana_to_bionic_power",
"type": "bionic",
"name": { "str": "Corporeal Ley Tap" },
"description": "Tiny bits of orichalcum have been implanted at important intersections in your ley lines, allowing you to turn your mana into bionic power. Activate to begin the conversion process.",
"occupied_bodyparts": [ [ "head", 1 ], [ "torso", 1 ], [ "arm_l", 1 ], [ "arm_r", 1 ], [ "leg_l", 1 ], [ "leg_r", 1 ] ],
"mutation_conflicts": [ "EARTHSHAPER" ],
"activated_eocs": [ "EOC_BIO_MANA_TO_BIONIC_POWER_ON" ],
"deactivated_eocs": [ "EOC_BIO_MANA_TO_BIONIC_POWER_OFF" ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_POWER_SOURCE" ]
},
{
"type": "effect_on_condition",
"id": "EOC_BIO_MANA_TO_BIONIC_POWER_ON",
"effect": [
{ "u_add_effect": "effect_bio_mana_to_bionic_power", "duration": "PERMANENT" },
{ "run_eocs": "EOC_BIO_MANA_TO_BIONIC_POWER_PROCESSING", "time_in_future": 10 }
]
},
{
"type": "effect_on_condition",
"id": "EOC_BIO_MANA_TO_BIONIC_POWER_PROCESSING",
"condition": { "u_has_effect": "effect_bio_mana_to_bionic_power" },
"effect": [
{
"if": { "math": [ "u_val('mana')", ">", "0" ] },
"then": [ { "math": [ "u_val('mana')", "--" ] }, { "math": [ "u_val('power')", "+=", "energy('35 J')" ] } ]
},
{ "run_eocs": "EOC_BIO_MANA_TO_BIONIC_POWER_PROCESSING", "time_in_future": 10 }
]
},
{
"type": "effect_on_condition",
"id": "EOC_BIO_MANA_TO_BIONIC_POWER_OFF",
"effect": [ { "u_lose_effect": "effect_bio_mana_to_bionic_power" } ]
},
{
"id": "bio_ley_energy_blaster",
"copy-from": "bionic_general",
"type": "BIONIC_ITEM",
"name": { "str": "Levinbolt Projector CBM" },
"description": "The ultimate in concealable personal defense, thin filaments are implanted along the ley lines in both of your arms leading to embedded mana crystals in your hands, allowing you to launch blasts of pure magical energy at nearby targets. The only disadvantage is that it draws on your own personal mana supply rather than bionic power.",
"price": "3 kUSD",
"weight": "500 g",
"difficulty": 4
},
{
"id": "bio_ley_energy_blaster",
"type": "bionic",
"name": { "str": "Levinbolt Projector" },
"description": "Implants in your arm's ley lines allow you to project bolts of magical energy from your hands. This draws on your personal mana stores, not your bionic power.",
"occupied_bodyparts": [ [ "arm_l", 2 ], [ "arm_r", 2 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"spell_on_activation": { "id": "bio_ley_energy_blaster_spell" },
"activated_close_ui": true
}
]

0 comments on commit 500df91

Please sign in to comment.