Skip to content

Commit

Permalink
Merge pull request #104 from neki-dev/develop
Browse files Browse the repository at this point in the history
Update to 1.18.5
  • Loading branch information
neki-dev authored Nov 6, 2023
2 parents 90209da + 1aee8d2 commit 4f0909c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "izowave",
"description": "Isometric game. Build and defense in open world",
"version": "1.18.4",
"version": "1.18.5",
"keywords": [
"game",
"isometric",
Expand Down
2 changes: 1 addition & 1 deletion src/const/world/difficulty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const DIFFICULTY = {
BUILDING_UPGRADE_EXPERIENCE_GROWTH: 0.75, // Experience growth by level (Linear)
BUILDING_UPGRADE_COST_MULTIPLIER: 0.5, // Upgrade cost multiplier
BUILDING_REPAIR_COST_MULTIPLIER: 0.75, // Repair cost multiplier
BUILDING_LIMITED_BOUND: 8, // Max bound for limited buildngs
BUILDING_LIMITED_BOUND: 7, // Max bound for limited buildngs
BUILDING_TILE_COST_MULTIPLIER: 0.0013, // Tile cost multiplier by max health

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export class EnemyAdherent extends Enemy {
...data,
texture: EnemyTexture.ADHERENT,
multipliers: {
health: 0.6,
damage: 0.2,
health: 0.7,
damage: 0.3,
speed: 0.9,
might: 0.5,
},
Expand Down
8 changes: 7 additions & 1 deletion src/lib/__tests__/progression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ describe('lib / progression', () => {
expect(progressionQuadratic({
defaultValue: 90, scale: 0.3, level: 15,
})).toEqual(3543);
expect(progressionQuadratic({
defaultValue: 90, scale: 0.3, level: 14, retardationLevel: 15,
})).toEqual(2725);
expect(progressionQuadratic({
defaultValue: 90, scale: 0.3, level: 15, retardationLevel: 15,
})).toEqual(3543);
expect(progressionQuadratic({
defaultValue: 90, scale: 0.3, level: 16, retardationLevel: 15,
})).toEqual(4605);
expect(progressionQuadratic({
defaultValue: 90, scale: 0.3, level: 20,
})).toEqual(13157);
expect(progressionQuadratic({
defaultValue: 90, scale: 0.3, level: 20, retardationLevel: 15,
})).toEqual(6200);
})).toEqual(8857);
});

it('should return correct negative value growth', () => {
Expand Down
1 change: 0 additions & 1 deletion src/lib/progression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function progressionQuadratic(params: {

return progressionLinear({
...params,
scale: params.scale / 2,
defaultValue: point,
level: params.level - params.retardationLevel + 1,
});
Expand Down

0 comments on commit 4f0909c

Please sign in to comment.