Skip to content

Commit

Permalink
fix: house door switching layers and tier_chrys_03 loot table
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Mar 22, 2024
1 parent a328783 commit 42aa861
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/objects/obstacle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class Obstacle extends BaseGameObject {

checkLayer(): void {
// @hack this door shouldn't switch layers
if (this.type === "saloon_door_secret") return;
if (this.type === "saloon_door_secret" || this.type === "house_door_01") return;
let newLayer = this.originalLayer;
const def = MapObjectDefs[this.type] as ObstacleDef;
const coll = collider.createCircle(this.pos, def.door!.interactionRad + 1);
Expand Down
5 changes: 4 additions & 1 deletion shared/defs/maps/baseDefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ export const Main: MapDef = {
],
tier_chrys_02: [{ name: "katana", count: 1, weight: 1 }],
tier_chrys_03: [
{ name: "outfitImperial", count: 1, weight: 1 }
{ name: "2xscope", count: 1, weight: 1 },
{ name: "4xscope", count: 1, weight: 0.3 },
{ name: "8xscope", count: 1, weight: 0.05 },
{ name: "15xscope", count: 1, weight: 0.001 }
],
tier_chrys_chest: [
{ name: "", count: 1, weight: 1 },
Expand Down

0 comments on commit 42aa861

Please sign in to comment.