Skip to content

Commit

Permalink
Update for 2.14.0-beta.dev.20241202.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacetech committed Dec 2, 2024
1 parent b3cffde commit d47ac13
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 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
Expand Up @@ -10,7 +10,7 @@
"watch": "npx tsc --build --watch --pretty --preserveWatchOutput"
},
"devDependencies": {
"@wayward/types": "^2.14.0-beta.dev.20241130.1",
"@wayward/types": "^2.14.0-beta.dev.20241201.1",
"rimraf": "3.0.2",
"typescript": "^5.7.2"
}
Expand Down
21 changes: 11 additions & 10 deletions src/StarterQuest.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { EventBus } from "@wayward/game/event/EventBuses";
import { EventHandler } from "@wayward/game/event/EventManager";
import { Game } from "@wayward/game/game/Game";
import type { Game } from "@wayward/game/game/Game";
import { BiomeType } from "@wayward/game/game/biome/IBiome";
import { DoodadType, DoodadTypeGroup } from "@wayward/game/game/doodad/IDoodad";
import { EquipType } from "@wayward/game/game/entity/IHuman";
import { ActionArgumentsOf, ActionType } from "@wayward/game/game/entity/action/IAction";
import GatherLiquid from "@wayward/game/game/entity/action/actions/GatherLiquid";
import StokeFire from "@wayward/game/game/entity/action/actions/StokeFire";
import Player from "@wayward/game/game/entity/player/Player";
import PlayerManager from "@wayward/game/game/entity/player/PlayerManager";
import { QuestType } from "@wayward/game/game/entity/player/quest/quest/IQuest";
import type { ActionArgumentsOf } from "@wayward/game/game/entity/action/IAction";
import { ActionType } from "@wayward/game/game/entity/action/IAction";
import type GatherLiquid from "@wayward/game/game/entity/action/actions/GatherLiquid";
import type StokeFire from "@wayward/game/game/entity/action/actions/StokeFire";
import type Player from "@wayward/game/game/entity/player/Player";
import type PlayerManager from "@wayward/game/game/entity/player/PlayerManager";
import type { QuestType } from "@wayward/game/game/entity/player/quest/quest/IQuest";
import { Quest as QuestBase } from "@wayward/game/game/entity/player/quest/quest/Quest";
import { QuestRequirementType } from "@wayward/game/game/entity/player/quest/requirement/IRequirement";
import { QuestRequirement } from "@wayward/game/game/entity/player/quest/requirement/Requirement";
Expand All @@ -24,7 +25,7 @@ import Mod from "@wayward/game/mod/Mod";
import Register, { Registry } from "@wayward/game/mod/ModRegistry";
import { RenderSource } from "@wayward/game/renderer/IRenderer";
import { ActionSlot } from "@wayward/game/ui/screen/screens/game/static/actions/ActionSlot";
import { IActionBarSlotData } from "@wayward/game/ui/screen/screens/game/static/actions/IActionBar";
import type { IActionBarSlotData } from "@wayward/game/ui/screen/screens/game/static/actions/IActionBar";
import { HighlightType } from "@wayward/game/ui/util/IHighlight";
import Enums from "@wayward/game/utilities/enum/Enums";
import { Tuple } from "@wayward/utilities/collection/Tuple";
Expand Down Expand Up @@ -155,7 +156,7 @@ export default class StarterQuest extends Mod {
})
.setRelations([
...Enums.values(ItemType)
.filter(type => (itemDescriptions[type] && itemDescriptions[type].use || []).includes(ActionType.StokeFire))
.filter(type => (itemDescriptions[type]?.use || []).includes(ActionType.StokeFire))
.map(type => Tuple(HighlightType.Selector, `#inventory [data-item-type="${type}"]`)),
]))
public requirementStokeCampfire: QuestRequirementType;
Expand All @@ -168,7 +169,7 @@ export default class StarterQuest extends Mod {

const tile = handlerApi.executor.asEntityMovable?.facingTile;
const doodad = tile?.doodad;
if (!doodad || !doodad.isInGroup(DoodadTypeGroup.Dripstone)) {
if (!doodad?.isInGroup(DoodadTypeGroup.Dripstone)) {
return false;
}

Expand Down

0 comments on commit d47ac13

Please sign in to comment.