Added all dummy ammo types, added ItemType class
This commit is contained in:
@@ -5,6 +5,7 @@ import io.anuke.mindustry.content.fx.ShootFx;
|
||||
import io.anuke.mindustry.type.AmmoType;
|
||||
|
||||
public class AmmoTypes {
|
||||
//TODO add definitions for all ammo types
|
||||
public static final AmmoType
|
||||
|
||||
basicIron = new AmmoType(Items.iron, TurretBullets.basicIron, 5){{
|
||||
@@ -12,7 +13,27 @@ public class AmmoTypes {
|
||||
smokeEffect = ShootFx.shootSmallSmoke;
|
||||
}},
|
||||
|
||||
basicSteel = new AmmoType(Items.steel, TurretBullets.basicSteel, 5){{
|
||||
basicLead = new AmmoType(Items.iron, TurretBullets.basicIron, 5){{
|
||||
shootEffect = ShootFx.shootSmall;
|
||||
smokeEffect = ShootFx.shootSmallSmoke;
|
||||
}},
|
||||
|
||||
standardLead = new AmmoType(Items.iron, TurretBullets.basicIron, 5){{
|
||||
shootEffect = ShootFx.shootSmall;
|
||||
smokeEffect = ShootFx.shootSmallSmoke;
|
||||
}},
|
||||
|
||||
standardArmorPiercing = new AmmoType(Items.steel, TurretBullets.basicSteel, 5){{
|
||||
shootEffect = ShootFx.shootBig;
|
||||
smokeEffect = ShootFx.shootBigSmoke;
|
||||
}},
|
||||
|
||||
homing = new AmmoType(Items.steel, TurretBullets.basicSteel, 5){{
|
||||
shootEffect = ShootFx.shootBig;
|
||||
smokeEffect = ShootFx.shootBigSmoke;
|
||||
}},
|
||||
|
||||
tracer = new AmmoType(Items.steel, TurretBullets.basicSteel, 5){{
|
||||
shootEffect = ShootFx.shootBig;
|
||||
smokeEffect = ShootFx.shootBigSmoke;
|
||||
}},
|
||||
@@ -21,7 +42,42 @@ public class AmmoTypes {
|
||||
shootEffect = ShootFx.shootSmallFlame;
|
||||
}},
|
||||
|
||||
basicLeadFrag = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
basicLeadShell = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
explosiveFragShell = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
fragShell = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
standardThoriumShell = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
swarmMissile = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
scytheMissile = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
incendiaryMortar = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
surgeMortar = new AmmoType(Items.lead, TurretBullets.basicLeadFragShell, 1){{
|
||||
shootEffect = ShootFx.shootBig2;
|
||||
smokeEffect = ShootFx.shootBigSmoke2;
|
||||
}},
|
||||
|
||||
@@ -2,73 +2,72 @@ package io.anuke.mindustry.content;
|
||||
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import io.anuke.mindustry.type.Item;
|
||||
import io.anuke.mindustry.type.ItemType;
|
||||
|
||||
public class Items {
|
||||
public static final Item
|
||||
|
||||
stone = new Item("stone", Color.valueOf("777777")) {
|
||||
{
|
||||
material = false;
|
||||
hardness = 3;
|
||||
}
|
||||
},
|
||||
iron = new Item("iron", Color.valueOf("bc8271")){
|
||||
{
|
||||
hardness = 1;
|
||||
}
|
||||
},
|
||||
lead = new Item("lead", Color.valueOf("8e85a2")){
|
||||
{
|
||||
hardness = 1;
|
||||
}
|
||||
},
|
||||
coal = new Item("coal", Color.valueOf("272727")) {
|
||||
{
|
||||
explosiveness = 0.2f;
|
||||
flammability = 0.5f;
|
||||
fluxiness = 0.3f;
|
||||
material = false;
|
||||
hardness = 2;
|
||||
}
|
||||
},
|
||||
steel = new Item("steel", Color.valueOf("e2e2e2")),
|
||||
titanium = new Item("titanium", Color.valueOf("8da1e3")){
|
||||
{
|
||||
hardness = 3;
|
||||
}
|
||||
},
|
||||
thorium = new Item("thorium", Color.valueOf("bb80bd")) {
|
||||
{
|
||||
explosiveness = 0.1f;
|
||||
hardness = 4;
|
||||
}
|
||||
},
|
||||
silicon = new Item("silicon", Color.valueOf("53565c")),
|
||||
plastic = new Item("plastic", Color.valueOf("e9ead3")){
|
||||
{
|
||||
flammability = 0.2f;
|
||||
explosiveness = 0.1f;
|
||||
}
|
||||
},
|
||||
densealloy = new Item("densealloy", Color.valueOf("b4d5c7")),
|
||||
biomatter = new Item("biomatter", Color.valueOf("648b55")) {
|
||||
{
|
||||
material = false;
|
||||
flammability = 0.4f;
|
||||
fluxiness = 0.2f;
|
||||
}
|
||||
},
|
||||
sand = new Item("sand", Color.valueOf("e3d39e")){
|
||||
{
|
||||
material = false;
|
||||
fluxiness = 0.5f;
|
||||
}
|
||||
},
|
||||
rdx = new Item("rdx", Color.valueOf("ff795e")){
|
||||
{
|
||||
material = false;
|
||||
flammability = 0.2f;
|
||||
explosiveness = 0.6f;
|
||||
}
|
||||
};
|
||||
stone = new Item("stone", Color.valueOf("777777")) {{
|
||||
hardness = 3;
|
||||
}},
|
||||
|
||||
iron = new Item("iron", Color.valueOf("bc8271")){{
|
||||
type = ItemType.material;
|
||||
hardness = 1;
|
||||
}},
|
||||
|
||||
lead = new Item("lead", Color.valueOf("8e85a2")){{
|
||||
type = ItemType.material;
|
||||
hardness = 1;
|
||||
}},
|
||||
|
||||
coal = new Item("coal", Color.valueOf("272727")) {{
|
||||
explosiveness = 0.2f;
|
||||
flammability = 0.5f;
|
||||
fluxiness = 0.3f;
|
||||
hardness = 2;
|
||||
}},
|
||||
|
||||
steel = new Item("steel", Color.valueOf("e2e2e2")){{
|
||||
type = ItemType.material;
|
||||
}},
|
||||
|
||||
titanium = new Item("titanium", Color.valueOf("8da1e3")){{
|
||||
hardness = 3;
|
||||
}},
|
||||
|
||||
thorium = new Item("thorium", Color.valueOf("bb80bd")) {{
|
||||
explosiveness = 0.1f;
|
||||
hardness = 4;
|
||||
}},
|
||||
|
||||
silicon = new Item("silicon", Color.valueOf("53565c")){{
|
||||
type = ItemType.material;
|
||||
}},
|
||||
|
||||
plastic = new Item("plastic", Color.valueOf("e9ead3")){{
|
||||
type = ItemType.material;
|
||||
flammability = 0.2f;
|
||||
explosiveness = 0.1f;
|
||||
}},
|
||||
|
||||
densealloy = new Item("densealloy", Color.valueOf("b4d5c7")){{
|
||||
type = ItemType.material;
|
||||
}},
|
||||
|
||||
biomatter = new Item("biomatter", Color.valueOf("648b55")) {{
|
||||
type = ItemType.material;
|
||||
flammability = 0.4f;
|
||||
fluxiness = 0.2f;
|
||||
}},
|
||||
|
||||
sand = new Item("sand", Color.valueOf("e3d39e")){{
|
||||
|
||||
fluxiness = 0.5f;
|
||||
}},
|
||||
|
||||
rdx = new Item("rdx", Color.valueOf("ff795e")){{
|
||||
flammability = 0.2f;
|
||||
explosiveness = 0.6f;
|
||||
}};
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ public class WeaponBlocks{
|
||||
crux = new ItemTurret("crux"){{
|
||||
size = 2;
|
||||
range = 100f;
|
||||
ammoTypes = new AmmoType[]{AmmoTypes.basicLeadFrag};
|
||||
ammoTypes = new AmmoType[]{AmmoTypes.basicLeadShell};
|
||||
reload = 70f;
|
||||
restitution = 0.03f;
|
||||
ammoEjectBack = 3f;
|
||||
|
||||
Reference in New Issue
Block a user