Skip to content

Commit

Permalink
minor balance updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NightLightLumie committed Jun 8, 2024
1 parent 1478751 commit ec5bdb5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/components/Boss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ export class Boss extends Enemy {
{key: "wait", value: [300], args: [], conditions: []},
{key: "supersoccer", value: [], args: [], conditions: []},
{key: "sound", value: [0.65], args: ["slap"], conditions: []},
{key: "wait", value: [500], args: [], conditions: []},
{key: "wait", value: [250], args: [], conditions: []},
{key: "sound", value: [0.25], args: ["lifeup"], conditions: []},
{key: "lives", value: [], args: [], conditions: []},
{key: "flash", value: [2500], args: [], conditions: []},
{key: "danmakuMode", value: [], args: [], conditions: []},
{key: "forceMove", value: [600], args: [], conditions: []},
{key: "wait", value: [2000], args: [], conditions: []},
{key: "wait", value: [2250], args: [], conditions: []},
{key: "freeMove", value: [], args: [], conditions: []},
{key: "swapMusic", value: [0], args: [], conditions: []},
{key: "nohit", value: [], args: [], conditions: [false]},
Expand Down Expand Up @@ -521,7 +521,7 @@ export class Boss extends Enemy {
{key: "changeSprite", value: [1,1], args: ["eiffel"], conditions: []},
{key: "flashTitle", value: [], args: [], conditions: []},
{key: "setPosition", value: [1500,540], args: [], conditions: []},
{key: "wait", value: [3750], args: [], conditions: []},
{key: "wait", value: [2350], args: [], conditions: []},
{key: "mandala", value: [2, 180, 1000, 0.75], args: ["mandala_french","charge_big"], conditions: [true]},
//{key: "flash", value: [4000], args: [], conditions: []},
{key: "nohit", value: [], args: [], conditions: [false]},
Expand Down Expand Up @@ -770,7 +770,7 @@ export class Boss extends Enemy {
{key: "wait", value: [8000], args: [], conditions: []},
{key: "wait", value: [250], args: [], conditions: []},
{key: "trojan", value: [], args: [], conditions: []},
{key: "wait", value: [7500], args: [], conditions: []},
{key: "wait", value: [6500], args: [], conditions: []},
{key: "loop", value: [1], args: [], conditions: []},
]),
new BossCommand(this, [
Expand All @@ -781,7 +781,7 @@ export class Boss extends Enemy {
{key: "wait", value: [200], args: [], conditions: []},
{key: "dice", value: [1], args: [], conditions: []},
{key: "wait", value: [200], args: [], conditions: []},
{key: "wait", value: [600], args: [], conditions: []},
{key: "wait", value: [300], args: [], conditions: []},
{key: "loop", value: [1], args: [], conditions: []},
]),
new BossCommand(this, [
Expand Down Expand Up @@ -869,6 +869,7 @@ export class Boss extends Enemy {
]),
new BossCommand(this, [
{key: "HPThreshold", value: [0.35], args: [], conditions: []},
{key: "resist", value: [0.65], args: [], conditions: []},
{key: "circleSpam", value: [500,240,19,24], args: ["sd"], conditions: []},
{key: "wait", value: [100], args: [], conditions: []},
{key: "circleSpam", value: [500,240,22,36], args: ["sn"], conditions: []},
Expand All @@ -881,7 +882,7 @@ export class Boss extends Enemy {
{key: "wait", value: [100], args: [], conditions: []},
{key: "circleSpam", value: [700,340,23,36], args: ["sd"], conditions: []},
{key: "wait", value: [100], args: [], conditions: []},
{key: "loop", value: [1], args: [], conditions: []},
{key: "loop", value: [2], args: [], conditions: []},
]),

new BossCommand(this, [
Expand Down
7 changes: 7 additions & 0 deletions src/components/BossCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,13 @@ export class BossCommand
this.owner.scene.gameData.lives = 99;
this.advance();
break;
} case "resist": {
if(this.pend) {
break;
}
this.owner.flatRes = this.cmd[this.step].value[0];
this.advance();
break;
} case "shatter": {
if(this.pend) {
break;
Expand Down
1 change: 1 addition & 0 deletions src/components/Enemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class Enemy extends Phaser.GameObjects.Container {
private static HITBOX: number = 1;
private static HITCIRCLE: number = 0;
public dmgRes: number = 1;
public flatRes: number = 1;

public boxHeight: number = 0;
public boxWidth: number = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExpandingProjectile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GameScene } from "@/scenes/GameScene";
import { EnemyBulletParam } from "./EnemyProjectile";

export class ExpandingProjectile extends EnemyProjectile{
private txTimer: number[] = [500,500];
private txTimer: number[] = [750,750];
public bxType: number = 0;
private i2: EnemyBulletParam;
constructor(scene: GameScene, x: number, y: number, angle: number, info: EnemyBulletParam, shouldPierce: boolean = false, collider = false, info2: EnemyBulletParam) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Projectile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export class Projectile extends Phaser.GameObjects.Container {
}
if(target.dmgRes != 0) {
r *= target.dmgRes;
r *= target.flatRes;
if(r < 1) {
if(Math.random() < r) {
r = 1;
Expand Down

0 comments on commit ec5bdb5

Please sign in to comment.