Skip to content

Commit

Permalink
Changed category type in 1.6.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
colecrouter committed Oct 26, 2024
1 parent 1dbad5b commit 95392c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/types/items/1.6.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { HasSprite, Size } from "$types/items/1.5";
import type { Category } from "$types/save/1.5";
import type { TypeEnum } from "$types/save/1.6";

interface Base {
Expand All @@ -16,7 +17,7 @@ interface Base {
export interface Object extends Base {
_type: "Object";
Type: TypeEnum;
Category: number;
Category: Category;
Price: number;
Texture: null;
SpriteIndex: number;
Expand Down Expand Up @@ -86,15 +87,15 @@ export interface BigCraftable extends Base {

export interface Boots extends Base, HasSprite {
_type: "Boots";
Category: -97;
Category: Category.Boots;
Defense: number;
Immunity: number;
ColorIndex: number;
}

export interface Clothing extends Base {
_type: "Pants" | "Shirt";
Category: -100;
Category: Category.Clothing;
Price: number;
Texture: null;
SpriteIndex: number;
Expand Down

0 comments on commit 95392c4

Please sign in to comment.