Skip to content

Commit

Permalink
fix: Balancing ships
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Aug 19, 2024
1 parent eb397dd commit c8f1bab
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 84 deletions.
47 changes: 19 additions & 28 deletions src/game-logic/ships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const SHIP_TYPES = {
speed: 15, // ship_speed tech tree
attack: {},
defense: {
default: 10,
default: 50,
},
cost: { // cheap_ships tech tree
alloys: 75,
Expand All @@ -33,7 +33,7 @@ export const SHIP_TYPES = {
speed: 15, // ship_speed tech tree
attack: {},
defense: {
default: 10,
default: 50,
},
cost: { // cheap_ships tech tree
alloys: 100,
Expand All @@ -57,14 +57,11 @@ export const SHIP_TYPES = {
health: 100, // armor_plating tech tree
speed: 14, // ship_speed tech tree
attack: { // small_fighters tech tree
default: 10,
fighter: 30,
corvette: 30,
default: 20,
bomber: 30,
frigate: 30,
},
defense: { // small_ship_defense tech tree
default: 10,
default: 20,
},
cost: { // cheap_ships tech tree
alloys: 75,
Expand All @@ -83,14 +80,10 @@ export const SHIP_TYPES = {
health: 100, // armor_plating tech tree
speed: 12, // ship_speed tech tree
attack: { // small_fighters tech tree
default: 10,
interceptor: 30,
corvette: 50,
bomber: 50,
frigate: 50,
default: 20,
},
defense: { // small_ship_defense tech tree
default: 10,
default: 20,
},
cost: { // cheap_ships tech tree
alloys: 75,
Expand Down Expand Up @@ -133,9 +126,7 @@ export const SHIP_TYPES = {
health: 150, // armor_plating tech tree
speed: 10, // ship_speed tech tree
attack: { // small_fighters tech tree
default: 30,
corvette: 50,
frigate: 50,
default: 25,
system: 50,
},
defense: { // small_ship_defense tech tree
Expand All @@ -158,10 +149,10 @@ export const SHIP_TYPES = {
health: 150, // armor_plating tech tree
speed: 8, // ship_speed tech tree
attack: { // small_fighters tech tree
default: 50,
default: 40,
},
defense: { // small_ship_defense tech tree
default: 50,
default: 40,
},
cost: { // cheap_ships tech tree
alloys: 125,
Expand Down Expand Up @@ -207,10 +198,10 @@ export const SHIP_TYPES = {
health: 300, // armor_plating tech tree
speed: 6, // ship_speed tech tree
attack: { // medium_fighters tech tree
default: 100,
default: 80,
},
defense: { // medium_ship_defense tech tree
default: 100,
default: 80,
},
cost: { // cheap_ships tech tree
alloys: 250,
Expand All @@ -230,10 +221,10 @@ export const SHIP_TYPES = {
health: 300, // armor_plating tech tree
speed: 6, // ship_speed tech tree
attack: { // medium_fighters tech tree
default: 150,
default: 100,
},
defense: { // medium_ship_defense tech tree
default: 150,
default: 100,
},
cost: { // cheap_ships tech tree
alloys: 300,
Expand All @@ -253,10 +244,10 @@ export const SHIP_TYPES = {
health: 300, // armor_plating tech tree
speed: 6, // ship_speed tech tree
attack: { // medium_fighters tech tree
default: 200,
default: 120,
},
defense: { // medium_ship_defense tech tree
default: 200,
default: 120,
},
cost: { // cheap_ships tech tree
alloys: 350,
Expand All @@ -280,10 +271,10 @@ export const SHIP_TYPES = {
health: 600, // armor_plating tech tree
speed: 5, // ship_speed tech tree
attack: { // large_fighters tech tree
default: 250,
default: 200,
},
defense: { // large_ship_defense tech tree
default: 250,
default: 200,
},
cost: { // cheap_ships tech tree
alloys: 750,
Expand All @@ -302,10 +293,10 @@ export const SHIP_TYPES = {
health: 800, // armor_plating tech tree
speed: 4, // ship_speed tech tree
attack: { // large_fighters tech tree
default: 300,
default: 250,
},
defense: { // large_ship_defense tech tree
default: 300,
default: 250,
},
cost: { // cheap_ships tech tree
alloys: 800,
Expand Down
56 changes: 0 additions & 56 deletions src/game-logic/technologies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1598,42 +1598,14 @@ export const TECHNOLOGIES: Record<string, Technology> = {
variable: 'ships.interceptor.attack.default',
multiplier: 1.1,
},
{
variable: 'ships.interceptor.attack.fighter',
multiplier: 1.1,
},
{
variable: 'ships.interceptor.attack.corvette',
multiplier: 1.1,
},
{
variable: 'ships.interceptor.attack.bomber',
multiplier: 1.1,
},
{
variable: 'ships.interceptor.attack.frigate',
multiplier: 1.1,
},
{
variable: 'ships.fighter.attack.default',
multiplier: 1.1,
},
{
variable: 'ships.fighter.attack.interceptor',
multiplier: 1.1,
},
{
variable: 'ships.fighter.attack.corvette',
multiplier: 1.1,
},
{
variable: 'ships.fighter.attack.bomber',
multiplier: 1.1,
},
{
variable: 'ships.fighter.attack.frigate',
multiplier: 1.1,
},
{
variable: 'ships.corvette.attack.default',
multiplier: 1.1,
Expand All @@ -1658,42 +1630,14 @@ export const TECHNOLOGIES: Record<string, Technology> = {
variable: 'ships.interceptor.attack.default',
multiplier: 1.2,
},
{
variable: 'ships.interceptor.attack.fighter',
multiplier: 1.2,
},
{
variable: 'ships.interceptor.attack.corvette',
multiplier: 1.2,
},
{
variable: 'ships.interceptor.attack.bomber',
multiplier: 1.2,
},
{
variable: 'ships.interceptor.attack.frigate',
multiplier: 1.2,
},
{
variable: 'ships.fighter.attack.default',
multiplier: 1.2,
},
{
variable: 'ships.fighter.attack.interceptor',
multiplier: 1.2,
},
{
variable: 'ships.fighter.attack.corvette',
multiplier: 1.2,
},
{
variable: 'ships.fighter.attack.bomber',
multiplier: 1.2,
},
{
variable: 'ships.fighter.attack.frigate',
multiplier: 1.2,
},
{
variable: 'ships.corvette.attack.default',
multiplier: 1.2,
Expand Down

0 comments on commit c8f1bab

Please sign in to comment.