Skip to content

Commit

Permalink
Major re-balancing part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Slotterleet committed May 19, 2024
1 parent e48c330 commit 7548342
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 140 deletions.
3 changes: 2 additions & 1 deletion res/bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ stat.attacksbosses = [accent]may hack guardians[]
stat.lifetime = Lifetime
stat.unitdamageres = Resistance per Unit
stat.hackchancemultiplier = Hack Chance Multiplier
stat.hackhpthreshold = Health Thresholds

unittype = [gray]Type: []
unittype.infantry = [accent]Infantry[]
Expand Down Expand Up @@ -353,7 +354,7 @@ unit.fos-king.description = A controllable battle mech produced by Core: City. S
unit.fos-sergeant.name = Sergeant
unit.fos-sergeant.description = A weak drone capable of turning weak enemies to its team's side. Hacked enemies will die eventually.
unit.fos-lieutenant.name = Lieutenant
unit.fos-lieutenant.description = Shoots lightning arcs to make enemies more vulnerable to hack attacks.
unit.fos-lieutenant.description = Shoots homing ball lightning to make enemies more vulnerable to hack attacks.
unit.fos-captain.name = Captain
unit.fos-captain.description = A missile drone able to turn one or multiple targets to its team's side. Has decent damage.
unit.fos-general.name = General
Expand Down
3 changes: 2 additions & 1 deletion res/bundles/bundle_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ stat.attacksbosses = [accent]может взломать стражей[]
stat.lifetime = Время жизни
stat.unitdamageres = Устойчивость на боевую единицу
stat.hackchancemultiplier = Множитель шанса взлома
stat.hackhpthreshold = Пороги прочности

unittype = [gray]Тип: []
unittype.infantry = [accent]Пехота[]
Expand Down Expand Up @@ -353,7 +354,7 @@ unit.fos-king.description = Управляемый боевой мех, прои
unit.fos-sergeant.name = Сержант
unit.fos-sergeant.description = Слабый дрон, позволяющий обратить слабых врагов в свою сторону. Взломанные враги рано или поздно будут уничтожены.
unit.fos-lieutenant.name = Лейтенант
unit.fos-lieutenant.description = Стреляет молниями, делая врагов более уязвимыми ко взлому.
unit.fos-lieutenant.description = Стреляет самонаводящимися шаровыми молниями, делая врагов более уязвимыми ко взлому.
unit.fos-captain.name = Капитан
unit.fos-captain.description = Дрон с ракетницами, позволяющие обратить одного или нескольких врагов в свою сторону. Имеет неплохой урон.
unit.fos-general.name = Генерал
Expand Down
50 changes: 25 additions & 25 deletions src/fos/content/FOSBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -404,50 +404,50 @@ public static void load() {
//endregion
//region defense
tinWall = new Wall("tin-wall"){{
scaledHealth = 400;
scaledHealth = 800;
size = 1;
buildCostMultiplier = 3f;
requirements(Category.defense, with(tin, 6));
}};
tinWallLarge = new Wall("tin-wall-large"){{
scaledHealth = 400;
scaledHealth = 800;
size = 2;
buildCostMultiplier = 3f;
requirements(Category.defense, with(tin, 24));
}};
diamondWall = new Wall("diamond-wall"){{
scaledHealth = 625;
scaledHealth = 1250;
size = 1;
buildCostMultiplier = 3f;
requirements(Category.defense, with(diamond, 6));
}};
diamondWallLarge = new Wall("diamond-wall-large"){{
scaledHealth = 625;
scaledHealth = 1250;
size = 2;
buildCostMultiplier = 3f;
requirements(Category.defense, with(diamond, 24));
}};
vanadiumWall = new Wall("vanadium-wall"){{
scaledHealth = 800;
scaledHealth = 1600;
size = 1;
buildCostMultiplier = 3f;
requirements(Category.defense, with(vanadium, 6));
}};
vanadiumWallLarge = new Wall("vanadium-wall-large"){{
scaledHealth = 800;
scaledHealth = 1600;
size = 2;
buildCostMultiplier = 3f;
requirements(Category.defense, with(vanadium, 24));
}};
cuberiumWall = new Wall("cuberium-wall"){{
scaledHealth = 600;
scaledHealth = 1200;
size = 1;
absorbLasers = true;
buildCostMultiplier = 3f;
requirements(Category.defense, with(cuberium, 6));
}};
cuberiumWallLarge = new Wall("cuberium-wall-large"){{
scaledHealth = 600;
scaledHealth = 1200;
size = 2;
absorbLasers = true;
buildCostMultiplier = 3f;
Expand Down Expand Up @@ -481,7 +481,7 @@ public static void load() {
);
}};
ammo(
tin, new BasicBulletType(3f, 10){{
tin, new BasicBulletType(3f, 20){{
width = 3f; height = 6f;
lifetime = 44f;
trailColor = frontColor = FOSPal.tin;
Expand All @@ -491,7 +491,7 @@ tin, new BasicBulletType(3f, 10){{
ammoMultiplier = 2f;
buildingDamageMultiplier = 0.3f;
}},
diamond, new BasicBulletType(3f, 18){{
diamond, new BasicBulletType(3f, 36){{
width = 3f; height = 6f;
lifetime = 44f;
trailColor = frontColor = FOSPal.diamond;
Expand All @@ -503,7 +503,7 @@ diamond, new BasicBulletType(3f, 18){{
pierceCap = 2;
buildingDamageMultiplier = 0.3f;
}},
silicon, new BasicBulletType(3f, 14){{
silicon, new BasicBulletType(3f, 28){{
width = 3f; height = 6f;
lifetime = 44f;
trailColor = frontColor = Pal.unitFront;
Expand All @@ -515,7 +515,7 @@ silicon, new BasicBulletType(3f, 14){{
homingPower = 0.1f;
buildingDamageMultiplier = 0.3f;
}},
vanadium, new BasicBulletType(4f, 20){{
vanadium, new BasicBulletType(4f, 40){{
width = 3f; height = 6f;
lifetime = 44f;
rangeChange = 44f;
Expand All @@ -526,7 +526,7 @@ vanadium, new BasicBulletType(4f, 20){{
ammoMultiplier = 3f;
buildingDamageMultiplier = 0.3f;
}},
nickel, new BasicBulletType(4f, 22){{
nickel, new BasicBulletType(4f, 44){{
width = 4f; height = 8f;
lifetime = 44f;
rangeChange = 44f;
Expand All @@ -541,7 +541,7 @@ nickel, new BasicBulletType(4f, 22){{
luminium, new BasicBulletType(){{
width = 4f; height = 8f;
speed = 4.5f;
damage = 26.25f;
damage = 52.5f;
lifetime = 44f;
rangeChange = 66f;
trailColor = frontColor = FOSPal.luminium1;
Expand Down Expand Up @@ -574,27 +574,27 @@ luminium, new BasicBulletType(){{
squareSprite = false;
consumeLiquid(tokicite, 0.1f);
ammo(
tin, new StickyBulletType(8f, 10, 90){{
tin, new StickyBulletType(8f, 20, 90){{
lifetime = 45f;
width = height = 10f;
trailColor = FOSPal.tinBack;
backColor = FOSPal.tin;
frontColor = FOSPal.tokicite;
ammoMultiplier = 2f;
scaleLife = true;
splashDamage = 40;
splashDamage = 80;
splashDamageRadius = 12f;
buildingDamageMultiplier = 0.3f;
}},
diamond, new StickyBulletType(8f, 30, 90){{
diamond, new StickyBulletType(8f, 60, 90){{
lifetime = 45f;
width = height = 10f;
trailColor = FOSPal.diamondBack;
backColor = FOSPal.diamond;
frontColor = FOSPal.tokicite;
ammoMultiplier = 3f;
scaleLife = true;
splashDamage = 50;
splashDamage = 100;
splashDamageRadius = 16f;
buildingDamageMultiplier = 0.3f;
}}
Expand Down Expand Up @@ -626,7 +626,7 @@ diamond, new StickyBulletType(8f, 30, 90){{
consumePower(2f);
drawer = new DrawTurret("lumoni-");
shootType = new RailBulletType(){{
damage = 4f;
damage = 16f;
length = 225f;
lifetime = 10f;
pierceDamageFactor = 1f;
Expand All @@ -653,7 +653,7 @@ diamond, new StickyBulletType(8f, 30, 90){{
particulator = new ItemTurret("particulator"){{
health = 2400;
size = 3;
range = 120;
range = 240;
targetAir = targetGround = true;
recoil = 2;
reload = 40;
Expand All @@ -662,7 +662,7 @@ diamond, new StickyBulletType(8f, 30, 90){{
shootSound = Sounds.shootBig;
squareSprite = false;
ammo(
silver, new BasicBulletType(2f, 40){{
silver, new BasicBulletType(4f, 80){{
lifetime = 60f;
width = 16f; height = 24f;
backColor = FOSPal.silverBack;
Expand All @@ -678,7 +678,7 @@ silver, new BasicBulletType(2f, 40){{
hitEffect = despawnEffect = Fx.explosion;
buildingDamageMultiplier = 0.3f;
fragBullets = 6;
fragBullet = new BasicBulletType(0.8f, 5){{
fragBullet = new BasicBulletType(0.8f, 10){{
lifetime = 60f * 5; //frags will stay for pretty long
drag = 0.024f;
width = height = 6f;
Expand All @@ -695,8 +695,8 @@ silver, new BasicBulletType(2f, 40){{
buildingDamageMultiplier = 0.3f;
}};
}},
vanadium, new BasicBulletType(2f, 60){{
lifetime = 60f;
vanadium, new BasicBulletType(6f, 120){{
lifetime = 40f;
width = 16f; height = 24f;
backColor = vanadium.color.cpy().mul(0.8f);
frontColor = trailColor = lightColor = vanadium.color;
Expand All @@ -711,7 +711,7 @@ vanadium, new BasicBulletType(2f, 60){{
hitEffect = despawnEffect = Fx.explosion;
buildingDamageMultiplier = 0.3f;
fragBullets = 7;
fragBullet = new BasicBulletType(0.8f, 8){{
fragBullet = new BasicBulletType(0.8f, 16){{
lifetime = 60f * 5; //frags will stay for pretty long
drag = 0.024f;
width = height = 6f;
Expand Down
12 changes: 12 additions & 0 deletions src/fos/content/FOSStatuses.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package fos.content;

import arc.graphics.g2d.*;
import arc.util.Time;
import fos.graphics.FOSPal;
import fos.type.draw.FOSStats;
import fos.type.statuses.HackedEffect;
import mindustry.gen.Unit;
import mindustry.type.StatusEffect;
import mindustry.world.meta.StatUnit;

Expand All @@ -19,6 +22,15 @@ public void setStats() {
super.setStats();
stats.add(FOSStats.hackChanceMultiplier, 125f, StatUnit.percent);
}

@Override
public void draw(Unit unit) {
Draw.color(FOSPal.hacked);
for (int i = 0; i < 360; i += 120) {
Lines.arc(unit.x, unit.y, unit.hitSize * 1.1f, 0.25f, i + Time.time);
}
Draw.reset();
}
};
tokiciteSlowed = new StatusEffect("tokicite-slowed"){{
speedMultiplier = 0.4f;
Expand Down
Loading

0 comments on commit 7548342

Please sign in to comment.