Mindustry/core/src/mindustry/content/Liquids.java

42 lines
1.2 KiB
Java
Raw Normal View History

2019-12-25 13:39:38 +07:00
package mindustry.content;
2019-12-25 13:39:38 +07:00
import arc.graphics.Color;
import mindustry.ctype.ContentList;
import mindustry.type.Liquid;
2018-07-13 07:37:14 +07:00
public class Liquids implements ContentList{
public static Liquid water, slag, oil, cryofluid;
@Override
2018-07-13 07:37:14 +07:00
public void load(){
2019-01-30 10:26:02 +07:00
water = new Liquid("water", Color.valueOf("596ab8")){{
2019-01-08 21:56:42 +07:00
heatCapacity = 0.4f;
effect = StatusEffects.wet;
}};
slag = new Liquid("slag", Color.valueOf("ffa166")){{
2019-01-03 06:49:04 +07:00
temperature = 1f;
viscosity = 0.8f;
effect = StatusEffects.melting;
lightColor = Color.valueOf("f0511d").a(0.4f);
2019-01-03 06:49:04 +07:00
}};
oil = new Liquid("oil", Color.valueOf("313131")){{
viscosity = 0.7f;
flammability = 1.2f;
explosiveness = 1.2f;
2019-01-03 06:49:04 +07:00
heatCapacity = 0.7f;
2019-11-06 05:58:30 +07:00
barColor = Color.valueOf("6b675f");
2019-01-03 06:49:04 +07:00
effect = StatusEffects.tarred;
}};
2019-01-09 08:32:22 +07:00
cryofluid = new Liquid("cryofluid", Color.valueOf("6ecdec")){{
2019-01-03 06:49:04 +07:00
heatCapacity = 0.9f;
temperature = 0.25f;
effect = StatusEffects.freezing;
lightColor = Color.valueOf("0097f5").a(0.2f);
2019-01-03 06:49:04 +07:00
}};
}
}