Skip to content

Rampant Arsenal blocks Warp Ammo Damage upgrades #21

@Calvinxc1

Description

@Calvinxc1

Title kind of self-explanatory. Running Warptorio2 1.3.10 and Rampant Arsenal 1.1.6

Digging through the Warptorio2 code I think a fix can be applied to the data_warptorio.lua file at line 361, replacing that section with this:

local t={type="technology",upgrade=true,icon_size=128,icons={ {icon="__base__/graphics/technology/physical-projectile-damage-1.png",tint={r=0.3,g=0.3,b=1,a=1},icon_mipmaps=4,icon_size=256,} },
	effects={ {type="turret-attack",modifier=0.15,turret_id="gun-turret"},{ammo_category="bullet",modifier=0.15,type="ammo-damage"},{ammo_category="shotgun-shell",modifier=0.2,type="ammo-damage"} } }
if mods["RampantArsenal"] and settings.startup["rampant-arsenal-hideVanillaDamageTechnologies"].value then
	ExtendTech(t,{name="warptorio-physdmg-1",unit={count=250,time=30},prerequisites={"warptorio-reactor-1","rampant-arsenal-technology-bullet-damage-1"}}, {red=1})
	ExtendTech(t,{name="warptorio-physdmg-2",unit={count=250,time=30},prerequisites={"warptorio-reactor-2","warptorio-physdmg-1","rampant-arsenal-technology-bullet-damage-2"}}, {red=2,green=1} )
	ExtendTech(t,{name="warptorio-physdmg-3",unit={count=350,time=30},prerequisites={"warptorio-reactor-3","warptorio-physdmg-2","rampant-arsenal-technology-bullet-damage-3"}}, {red=3,green=2,black=1} )
else
	ExtendTech(t,{name="warptorio-physdmg-1",unit={count=250,time=30},prerequisites={"warptorio-reactor-1","physical-projectile-damage-1"}}, {red=1})
	ExtendTech(t,{name="warptorio-physdmg-2",unit={count=250,time=30},prerequisites={"warptorio-reactor-2","warptorio-physdmg-1","physical-projectile-damage-2"}}, {red=2,green=1} )
	ExtendTech(t,{name="warptorio-physdmg-3",unit={count=350,time=30},prerequisites={"warptorio-reactor-3","warptorio-physdmg-2","physical-projectile-damage-3"}}, {red=3,green=2,black=1} )
end

It's a bit inelegant, but would at least make the warp damage tech accessible with Rampant Arsenal installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions