Specific resistance for energy shields
Posted: Sun Jun 24, 2018 1:47 pm
Hi! Is it possible to make specific resistances for energy shields like it specified by armor?
Power armor (part):
Energy shield:
Suggested prototype (parts):
So you can stack specific resistances together for specific situations. Now we have only max_shield_value = 150, but it doesn't defined the type of damage resistance.
Power armor (part):
Code: Select all
data.raw.armor["power-armor-mk2"].resistances[1].type = "physical"
data.raw.armor["power-armor-mk2"].resistances[1].decrease = 10
data.raw.armor["power-armor-mk2"].resistances[1].percent = 40
data.raw.armor["power-armor-mk2"].resistances[2].type = "acid"
data.raw.armor["power-armor-mk2"].resistances[2].decrease = 10
data.raw.armor["power-armor-mk2"].resistances[2].percent = 40
data.raw.armor["power-armor-mk2"].resistances[3].type = "explosion"
data.raw.armor["power-armor-mk2"].resistances[3].decrease = 60
data.raw.armor["power-armor-mk2"].resistances[3].percent = 50
data.raw.armor["power-armor-mk2"].resistances[4].type = "fire"
data.raw.armor["power-armor-mk2"].resistances[4].decrease = 0
data.raw.armor["power-armor-mk2"].resistances[4].percent = 70
Code: Select all
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].type = "energy-shield-equipment"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].name = "energy-shield-mk2-equipment"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].sprite.filename = "__base__/graphics/equipment/energy-shield-mk2-equipment.png"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].sprite.width = 64
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].sprite.height = 64
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].sprite.priority = "medium"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].shape.width = 2
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].shape.height = 2
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].shape.type = "full"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].max_shield_value = 150
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].energy_source.type = "electric"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].energy_source.buffer_capacity = "180kJ"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].energy_source.input_flow_limit = "360kW"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].energy_source.usage_priority = "primary-input"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].energy_per_shield = "30kJ"
data.raw["energy-shield-equipment"]["energy-shield-mk2-equipment"].categories[1] = "armor"
Code: Select all
data.raw["energy-shield-equipment"]["physical-energy-shield-mk2-equipment"].resistances[1].type = "physical"
data.raw["energy-shield-equipment"]["physical-energy-shield-mk2-equipment"].resistances[1].decrease = 10
data.raw["energy-shield-equipment"]["physical-energy-shield-mk2-equipment"].resistances[1].percent = 40
Code: Select all
data.raw["energy-shield-equipment"]["acid-energy-shield-mk2-equipment"].resistances[1].type = "acid"
data.raw["energy-shield-equipment"]["acid-energy-shield-mk2-equipment"].resistances[1].decrease = 10
data.raw["energy-shield-equipment"]["acid-energy-shield-mk2-equipment"].resistances[1].percent = 40
Code: Select all
data.raw["energy-shield-equipment"]["explosion-energy-shield-mk2-equipment"].resistances[1].type = "explosion"
data.raw["energy-shield-equipment"]["explosion-energy-shield-mk2-equipment"].resistances[1].decrease = 60
data.raw["energy-shield-equipment"]["explosion-energy-shield-mk2-equipment"].resistances[1].percent = 50
Code: Select all
data.raw["energy-shield-equipment"]["fire-energy-shield-mk2-equipment"].resistances[1].type = "fire"
data.raw["energy-shield-equipment"]["fire-energy-shield-mk2-equipment"].resistances[1].decrease = 0
data.raw["energy-shield-equipment"]["fire-energy-shield-mk2-equipment"].resistances[1].percent = 70