survivors: fixing build

This commit is contained in:
Sheldan
2025-09-10 00:32:23 +02:00
parent ef2ea386c5
commit b3dbc9cc80
3 changed files with 5 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ export class Player implements Drawable, Acting, Healthy {
constructor(position: Vector) {
this._position = position;
this._effectiveStats = new PlayerStats()
}
draw(ctx: CanvasRenderingContext2D) {
@@ -38,6 +39,7 @@ export class Player implements Drawable, Acting, Healthy {
let tempStats = new PlayerStats();
tempStats.resetToBasic()
player._tempStats = tempStats;
player.statsChanged()
player._speed = new Vector(0, 0)
player._status = new PlayerStatus(10, 0, 0);
return player;

View File

@@ -1,8 +1,9 @@
import type {ChanceEntry, Item} from "./interfaces.ts";
import {Player, PlayerStats} from "./Player.ts";
import {Player} from "./Player.ts";
import {randomItem} from "./utils.ts";
import {ChainBall, HomingPistol, Pistol, Spear, SpreadWeapon} from "./weapons.ts";
import type {World} from "./World.ts";
import {PlayerStats} from "./stats.ts";
export enum Rarity {
GARBAGE= 'GARBAGE',

View File

@@ -4,13 +4,13 @@ import {Player} from "./Player.ts";
import {
HomingProjectile,
Projectile,
ProjectileStats,
StraightProjectile,
ChainBallProjectile,
StraightMeleeWeaponProjectile
} from "./projectile.ts";
import {World} from "./World.ts";
import {Vector} from "./base.ts";
import {ProjectileStats} from "./stats.ts";
export abstract class BasicWeapon implements Weapon {
protected offset: Vector;