Skip to content

Commit

Permalink
centurion rework
Browse files Browse the repository at this point in the history
  • Loading branch information
stabu-dev committed Feb 17, 2025
1 parent a736826 commit 84100bb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 29 deletions.
Binary file modified assets/sprites/units/centurion-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/units/centurion-cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/units/centurion-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/units/centurion-outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/units/centurion-weapon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/units/centurion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions revisions/MechChainedUnit/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{fields:[{name:abilities,type:"mindustry.entities.abilities.Ability[]"},{name:ammo,type:float},{name:baseRotation,type:float},{name:childID,type:int},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:grown,type:boolean},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:parentID,type:int},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
45 changes: 16 additions & 29 deletions src/omaloon/content/OlUnitTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -464,55 +464,42 @@ public static void load(){
health = 250;
range = 100;

outlineRegion = atlas.find("omaloon-centurion-outline");
alwaysCreateOutline = true;

weapons.add(new Weapon("omaloon-centurion-weapon"){{
shootSound = OlSounds.theShoot;
mirror = true;
top = false;

x = 5.5f;
y = 0.7f;
layerOffset = -0.001f;
reload = 35f;
x = 5.75f;
y = 0.27f;
shootX = -0.5f;
shootY = 5.5f;
reload = 35f;
recoil = 0.6f;
recoil = 1.6f;
inaccuracy = 25;

shoot.shots = 2;
shoot.shotDelay = 4f;
shoot.shots = 4;
shoot.shotDelay = 1f;

shootCone = 45f;

ejectEffect = Fx.casing1;
bullet = new BasicBulletType(2.5f, 5){{
width = 7f;
height = 7f;
lifetime = 35f;
bullet = new BasicBulletType(5.5f, 5){{
width = 4f;
height = 4f;
lifetime = 12f;

maxRange = 100;

despawnEffect = Fx.hitBulletSmall;
hitEffect = Fx.none;
hitColor = backColor = trailColor = Color.valueOf("feb380");

trailWidth = 1.3f;
trailWidth = 0.8f;
trailLength = 10;

fragBullet = new BasicBulletType(2.5f, 1.5f){{
width = 4f;
height = 4f;
lifetime = 15f;

despawnEffect = Fx.none;
hitEffect = Fx.none;
hitColor = backColor = trailColor = Color.valueOf("feb380");

trailWidth = 0.8f;
trailLength = 10;
}};

fragOnHit = true;
fragBullets = 4;
fragRandomSpread = 45f;
fragVelocityMin = 0.7f;
}};
}});
}};
Expand Down

0 comments on commit 84100bb

Please sign in to comment.