Reduced liquid transport explosiveness to mostly pre-capacity-increase levels
This commit is contained in:
@@ -2155,6 +2155,7 @@ public class Blocks{
|
|||||||
requirements(Category.liquid, with(Items.metaglass, 1));
|
requirements(Category.liquid, with(Items.metaglass, 1));
|
||||||
liquidCapacity = 20f;
|
liquidCapacity = 20f;
|
||||||
health = 45;
|
health = 45;
|
||||||
|
explosivenessScale = flammabilityScale = 10f/20f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
pulseConduit = new Conduit("pulse-conduit"){{
|
pulseConduit = new Conduit("pulse-conduit"){{
|
||||||
@@ -2162,6 +2163,7 @@ public class Blocks{
|
|||||||
liquidCapacity = 40f;
|
liquidCapacity = 40f;
|
||||||
liquidPressure = 1.025f;
|
liquidPressure = 1.025f;
|
||||||
health = 90;
|
health = 90;
|
||||||
|
explosivenessScale = flammabilityScale = 16f/40f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
platedConduit = new ArmoredConduit("plated-conduit"){{
|
platedConduit = new ArmoredConduit("plated-conduit"){{
|
||||||
@@ -2169,6 +2171,7 @@ public class Blocks{
|
|||||||
liquidCapacity = 50f;
|
liquidCapacity = 50f;
|
||||||
liquidPressure = 1.025f;
|
liquidPressure = 1.025f;
|
||||||
health = 220;
|
health = 220;
|
||||||
|
explosivenessScale = flammabilityScale = 16f/50f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
liquidRouter = new LiquidRouter("liquid-router"){{
|
liquidRouter = new LiquidRouter("liquid-router"){{
|
||||||
@@ -2176,6 +2179,8 @@ public class Blocks{
|
|||||||
liquidCapacity = 120f;
|
liquidCapacity = 120f;
|
||||||
underBullets = true;
|
underBullets = true;
|
||||||
solid = false;
|
solid = false;
|
||||||
|
|
||||||
|
explosivenessScale = flammabilityScale = 20f/120f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
liquidContainer = new LiquidRouter("liquid-container"){{
|
liquidContainer = new LiquidRouter("liquid-container"){{
|
||||||
@@ -2205,6 +2210,7 @@ public class Blocks{
|
|||||||
range = 4;
|
range = 4;
|
||||||
hasPower = false;
|
hasPower = false;
|
||||||
liquidCapacity = 100f;
|
liquidCapacity = 100f;
|
||||||
|
explosivenessScale = flammabilityScale = 20f/100f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
phaseConduit = new LiquidBridge("phase-conduit"){{
|
phaseConduit = new LiquidBridge("phase-conduit"){{
|
||||||
@@ -2215,6 +2221,7 @@ public class Blocks{
|
|||||||
hasPower = true;
|
hasPower = true;
|
||||||
canOverdrive = false;
|
canOverdrive = false;
|
||||||
pulse = true;
|
pulse = true;
|
||||||
|
explosivenessScale = flammabilityScale = 20f/100f;
|
||||||
liquidCapacity = 100f;
|
liquidCapacity = 100f;
|
||||||
consumePower(0.30f);
|
consumePower(0.30f);
|
||||||
}};
|
}};
|
||||||
@@ -2239,6 +2246,7 @@ public class Blocks{
|
|||||||
health = 250;
|
health = 250;
|
||||||
researchCostMultiplier = 3;
|
researchCostMultiplier = 3;
|
||||||
underBullets = true;
|
underBullets = true;
|
||||||
|
explosivenessScale = flammabilityScale = 20f/50f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
reinforcedLiquidJunction = new LiquidJunction("reinforced-liquid-junction"){{
|
reinforcedLiquidJunction = new LiquidJunction("reinforced-liquid-junction"){{
|
||||||
@@ -2259,6 +2267,7 @@ public class Blocks{
|
|||||||
researchCostMultiplier = 1;
|
researchCostMultiplier = 1;
|
||||||
underBullets = true;
|
underBullets = true;
|
||||||
health = 250;
|
health = 250;
|
||||||
|
explosivenessScale = flammabilityScale = 20f/120f;
|
||||||
|
|
||||||
((Conduit)reinforcedConduit).rotBridgeReplacement = this;
|
((Conduit)reinforcedConduit).rotBridgeReplacement = this;
|
||||||
}};
|
}};
|
||||||
@@ -2271,6 +2280,8 @@ public class Blocks{
|
|||||||
underBullets = true;
|
underBullets = true;
|
||||||
solid = false;
|
solid = false;
|
||||||
health = 250;
|
health = 250;
|
||||||
|
|
||||||
|
explosivenessScale = flammabilityScale = 40f/150f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
reinforcedLiquidContainer = new LiquidRouter("reinforced-liquid-container"){{
|
reinforcedLiquidContainer = new LiquidRouter("reinforced-liquid-container"){{
|
||||||
|
|||||||
@@ -1439,7 +1439,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//cap explosiveness so fluid tanks/vaults don't instakill units
|
//cap explosiveness so fluid tanks/vaults don't instakill units
|
||||||
Damage.dynamicExplosion(x, y, flammability, explosiveness * 3.5f, power, tilesize * block.size / 2f, state.rules.damageExplosions, block.destroyEffect, block.baseShake);
|
Damage.dynamicExplosion(x, y, flammability * block.flammabilityScale, explosiveness * 3.5f * block.explosivenessScale, power, tilesize * block.size / 2f, state.rules.damageExplosions, block.destroyEffect, block.baseShake);
|
||||||
|
|
||||||
if(block.createRubble && !floor().solid && !floor().isLiquid){
|
if(block.createRubble && !floor().solid && !floor().isLiquid){
|
||||||
Effect.rubble(x, y, block.size);
|
Effect.rubble(x, y, block.size);
|
||||||
|
|||||||
@@ -664,6 +664,8 @@ public class ContentParser{
|
|||||||
Planet parent = locate(ContentType.planet, value.getString("parent", ""));
|
Planet parent = locate(ContentType.planet, value.getString("parent", ""));
|
||||||
Planet planet = new Planet(mod + "-" + name, parent, value.getFloat("radius", 1f), value.getInt("sectorSize", 0));
|
Planet planet = new Planet(mod + "-" + name, parent, value.getFloat("radius", 1f), value.getInt("sectorSize", 0));
|
||||||
|
|
||||||
|
value.remove("sectorSize");
|
||||||
|
|
||||||
if(value.has("mesh")){
|
if(value.has("mesh")){
|
||||||
var mesh = value.get("mesh");
|
var mesh = value.get("mesh");
|
||||||
if(!mesh.isObject() && !mesh.isArray()) throw new RuntimeException("Meshes must be objects.");
|
if(!mesh.isObject() && !mesh.isArray()) throw new RuntimeException("Meshes must be objects.");
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ public class Administration{
|
|||||||
public ObjectSet<String> dosBlacklist = new ObjectSet<>();
|
public ObjectSet<String> dosBlacklist = new ObjectSet<>();
|
||||||
public ObjectMap<String, Long> kickedIPs = new ObjectMap<>();
|
public ObjectMap<String, Long> kickedIPs = new ObjectMap<>();
|
||||||
|
|
||||||
|
|
||||||
private boolean modified, loaded;
|
private boolean modified, loaded;
|
||||||
/** All player info. Maps UUIDs to info. This persists throughout restarts. Do not modify directly. */
|
/** All player info. Maps UUIDs to info. This persists throughout restarts. Do not modify directly. */
|
||||||
public ObjectMap<String, PlayerInfo> playerInfo = new ObjectMap<>();
|
public ObjectMap<String, PlayerInfo> playerInfo = new ObjectMap<>();
|
||||||
|
|||||||
@@ -686,7 +686,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
//this is a crude heuristic for class mods; only required for direct github import
|
//this is a crude heuristic for class mods; only required for direct github import
|
||||||
//TODO make a more reliable way to distinguish java mod repos
|
//TODO make a more reliable way to distinguish java mod repos
|
||||||
if(language.equals("Java") || language.equals("Kotlin")){
|
if(language.equals("Java") || language.equals("Kotlin") || language.equals("Groovy") || language.equals("Scala")){
|
||||||
githubImportJavaMod(repo, release);
|
githubImportJavaMod(repo, release);
|
||||||
}else{
|
}else{
|
||||||
githubImportBranch(mainBranch, repo, release);
|
githubImportBranch(mainBranch, repo, release);
|
||||||
|
|||||||
@@ -176,6 +176,10 @@ public class Block extends UnlockableContent implements Senseable{
|
|||||||
public float armor = 0f;
|
public float armor = 0f;
|
||||||
/** base block explosiveness */
|
/** base block explosiveness */
|
||||||
public float baseExplosiveness = 0f;
|
public float baseExplosiveness = 0f;
|
||||||
|
/** scaling of explosiveness based on items/liquids */
|
||||||
|
public float explosivenessScale = 1f;
|
||||||
|
/** scaling of explosion flammability based on items/liquids */
|
||||||
|
public float flammabilityScale = 1f;
|
||||||
/** base value for screen shake upon destruction */
|
/** base value for screen shake upon destruction */
|
||||||
public float baseShake = 3f;
|
public float baseShake = 3f;
|
||||||
/** bullet that this block spawns when destroyed */
|
/** bullet that this block spawns when destroyed */
|
||||||
|
|||||||
Reference in New Issue
Block a user