Skip to content

Commit

Permalink
Aftershock: Direct Fusion Gun (#74803)
Browse files Browse the repository at this point in the history
* Aftershock: Direct Fusion Gun

* Update data/mods/Aftershock/items/gun/plasma.json

Co-authored-by: TheShadowFerret <[email protected]>

---------

Co-authored-by: TheShadowFerret <[email protected]>
  • Loading branch information
John-Candlebury and TheShadowFerret authored Jun 28, 2024
1 parent 713750a commit c73be94
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/mods/Aftershock/ammo_effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"type": "ammo_effect",
"spell_data": { "id": "spell_electric_chain" }
},
{
"id": "FUSION_FAN",
"type": "ammo_effect",
"spell_data": { "id": "spell_fusion_fan" }
},
{
"id": "MULTI_EFFECTS",
"type": "ammo_effect",
Expand Down
42 changes: 41 additions & 1 deletion data/mods/Aftershock/items/gun/plasma.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"loudness": 5,
"reload": 2200,
"delete": { "ammo_effects": [ "FLAME", "EXPLOSIVE_SMALL" ] },
"extend": { "ammo_effects": [ "DAZZLE_BEAM" ] },
"extend": { "ammo_effects": [ "DAZZLE_BEAM", "OVERHEATS" ] },
"range": 3,
"overheat_threshold": 100,
"cooling_value": 3,
Expand All @@ -141,5 +141,45 @@
}
],
"faults": [ "fault_overheat_melting" ]
},
{
"id": "afs_makeshift_fusion_gun",
"type": "GUN",
"name": { "str_sp": "direct fusion gun" },
"copy-from": "afs_plasma_base",
"looks_like": "plasma_gun",
"description": "Exhaust from a salvaged starship engine is channeled through a series of magnetic coils and focused into a searing fan of plasma, creating a crude but effective short range weapon that can easily melt through most forms of armor. Its makeshift nature and lack of proper cooling systems make it prone to overheating and catastrophic failure.",
"weight": "8500 g",
"volume": "6 L",
"longest_side": "45 cm",
"price": "2 kUSD",
"price_postapoc": "2 kUSD",
"range": 10,
"ranged_damage": [ { "damage_type": "afs_plasma", "amount": 10 } ],
"modes": [ [ "DEFAULT", "standard", 3 ], [ "AUTO", "unsafe", 5 ] ],
"delete": { "ammo_effects": [ "PLASMA", "FLAME", "EMP", "EXPLOSIVE_SMALL" ] },
"extend": { "ammo_effects": [ "OVERHEATS", "FUSION_FAN" ] },
"ammo": [ "afs_shydrogen" ],
"dispersion": 200,
"ammo_to_fire": 1,
"overheat_threshold": 30,
"cooling_value": 5,
"heat_per_shot": 9,
"recoil": 30,
"handling": 20,
"durability": 4,
"loudness": 0,
"reload": 1800,
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"magazine_well": "120 ml",
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "afs_40g_plasma_civ" ]
}
],
"faults": [ "fault_overheat_explosion", "fault_overheat_venting" ]
}
]
24 changes: 24 additions & 0 deletions data/mods/Aftershock/recipes/gun_recipes.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,29 @@
"qualities": [ { "id": "SCREW_FINE", "level": 1 } ],
"using": [ [ "soldering_standard", 10 ], [ "electric_probing", 1 ] ],
"components": [ [ [ "afs_plasma_torch", 1 ] ], [ [ "cable", 20 ] ], [ [ "afs_energy_storage_3", 1 ] ], [ [ "afs_material_1", 2 ] ] ]
},
{
"result": "afs_makeshift_fusion_gun",
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_RANGED",
"skill_used": "electronics",
"difficulty": 7,
"time": "50 m",
"autolearn": [ [ "electronics", 6 ] ],
"qualities": [ { "id": "SCREW_FINE", "level": 1 } ],
"using": [ [ "soldering_standard", 10 ], [ "electric_probing", 1 ] ],
"components": [
[ [ "afs_plasma_torch", 1 ] ],
[ [ "afs_fusion_engine_core", 1 ] ],
[ [ "cable", 20 ] ],
[ [ "afs_material_1", 5 ] ],
[ [ "afs_heat_1", 1 ] ],
[ [ "afs_energy_storage_3", 1 ] ],
[ [ "afs_magnet_4", 1 ] ],
[ [ "afs_heat_2", 2 ] ],
[ [ "afs_heat_3", 1 ] ]
]
}
]
42 changes: 42 additions & 0 deletions data/mods/Aftershock/spells.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,48 @@
"effect": "effect_on_condition",
"effect_str": "afs_motion_sensor_eoc"
},
{
"id": "spell_fusion_fan",
"type": "SPELL",
"name": "Plasma fan",
"description": "Your weapon releases a searing fan of plasma.",
"effect": "attack",
"shape": "cone",
"extra_effects": [ { "id": "spell_fusion_fan_bash" } ],
"field_id": "fd_rad_glimmer",
"min_field_intensity": 3,
"max_field_intensity": 9,
"valid_targets": [ "hostile", "ally", "ground" ],
"flags": [ "LOUD", "NO_EXPLOSION_SFX" ],
"min_damage": 15,
"max_damage": 15,
"min_aoe": 15,
"max_aoe": 15,
"min_range": 10,
"max_range": 10,
"difficulty": 1,
"sound_description": "fzzzt",
"damage_type": "afs_plasma"
},
{
"id": "spell_fusion_fan_bash",
"type": "SPELL",
"name": "Plasma fan",
"description": "Damages terrain within the plasma fan.",
"effect": "bash",
"shape": "cone",
"valid_targets": [ "ground" ],
"flags": [ "SILENT", "NO_EXPLOSION_SFX", "IGNORE_WALLS", "RANDOM_DAMAGE" ],
"min_damage": 15,
"max_damage": 60,
"min_aoe": 15,
"max_aoe": 15,
"min_range": 10,
"max_range": 10,
"difficulty": 1,
"sound_description": "fzzzt",
"damage_type": "afs_plasma"
},
{
"id": "spell_electric_chain",
"type": "SPELL",
Expand Down

0 comments on commit c73be94

Please sign in to comment.