@wayward/types 2.12.3-beta.dev.20230104.1 → 2.13.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +10 -10
- package/definitions/cplusplus/index.d.ts +5 -9
- package/definitions/game/IGlobal.d.ts +0 -12
- package/definitions/game/Uninit.d.ts +11 -5
- package/definitions/game/audio/Audio.d.ts +22 -12
- package/definitions/game/audio/IAudio.d.ts +32 -46
- package/definitions/game/audio/Music.d.ts +1 -2
- package/definitions/game/audio/SoundEffects.d.ts +1 -1
- package/definitions/game/command/ICommand.d.ts +7 -6
- package/definitions/game/{game/entity/npc/npcs/IMerchant.d.ts → command/commands/Noclip.d.ts} +3 -2
- package/definitions/game/event/EventBuses.d.ts +71 -61
- package/definitions/game/event/EventEmitter.d.ts +24 -16
- package/definitions/game/event/EventManager.d.ts +4 -1
- package/definitions/game/game/Game.d.ts +63 -32
- package/definitions/game/game/IGame.d.ts +40 -41
- package/definitions/game/game/IObject.d.ts +14 -4
- package/definitions/game/game/ObjectManager.d.ts +5 -4
- package/definitions/game/game/VotingManager.d.ts +3 -0
- package/definitions/game/game/biome/IBiome.d.ts +4 -2
- package/definitions/game/{utilities/game/TilePosition.d.ts → game/biome/arid/mapGen/2.13.0.d.ts} +2 -2
- package/definitions/game/{renderer/spriteBatch/SpriteBatch.d.ts → game/biome/coastal/mapGen/2.13.0.d.ts} +2 -3
- package/definitions/game/game/biome/iceCap/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/template/Template.d.ts +29 -0
- package/definitions/game/game/biome/template/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/template/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/volcanic/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/doodad/Doodad.d.ts +99 -53
- package/definitions/game/game/doodad/DoodadInfo.d.ts +5 -5
- package/definitions/game/game/doodad/DoodadManager.d.ts +39 -27
- package/definitions/game/game/doodad/Doodads.d.ts +0 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +67 -6
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +68 -0
- package/definitions/game/game/entity/Entity.d.ts +74 -122
- package/definitions/game/game/entity/EntityManager.d.ts +2 -9
- package/definitions/game/game/entity/EntityMovable.d.ts +121 -0
- package/definitions/game/game/entity/EntityWithStats.d.ts +73 -0
- package/definitions/game/game/entity/Human.d.ts +81 -38
- package/definitions/game/game/entity/IEntity.d.ts +109 -29
- package/definitions/game/game/entity/IHuman.d.ts +38 -23
- package/definitions/game/game/entity/Stats.d.ts +1 -1
- package/definitions/game/game/entity/action/Action.d.ts +9 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +6 -19
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +135 -113
- package/definitions/game/game/entity/action/IAction.d.ts +48 -11
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/AddFuel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Alter.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +7 -6
- package/definitions/game/game/entity/action/actions/Build.d.ts +3 -5
- package/definitions/game/game/entity/action/actions/Butcher.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Cast.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CopyMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CreateControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DamageMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dig.d.ts +5 -6
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DrawMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enchant.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Equip.d.ts +5 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Exude.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Fire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +4 -7
- package/definitions/game/game/entity/action/actions/GrabAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Grasp.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/HealOther.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Idle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Jump.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Learn.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Lockpick.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Move.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveTo.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Noclip.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Offer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Pet.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUp.d.ts +4 -3
- package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Pour.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Preserve.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Read.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ReadMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Refine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Reinforce.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Release.d.ts +4 -1
- package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -2
- package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RestCancel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rub.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubCounterClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +23 -0
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +4 -5
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Shoot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Squeeze.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/StokeFire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Summon.d.ts +24 -0
- package/definitions/game/game/entity/action/actions/Tame.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Teleport.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/TellTime.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/TestDepth.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +5 -2
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +4 -6
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Trade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Unequip.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +3 -2
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateWalkPath.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmGatherHarvest.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmOnFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/Inventories.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +9 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionDrink.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCommands.d.ts +14 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCreatures.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsHidden.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +30 -26
- package/definitions/game/game/entity/action/usable/actions/UsableActionsUseNPC.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/doodad/IUsableActionsDoodad.d.ts +2 -2
- package/definitions/game/game/entity/creature/Creature.d.ts +86 -39
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +22 -23
- package/definitions/game/game/entity/creature/Creatures.d.ts +1 -4
- package/definitions/game/game/entity/creature/ICreature.d.ts +148 -9
- package/definitions/game/game/{inspection/infoProviders/creature/CreatureHealth.d.ts → entity/creature/SpecialAbilities.d.ts} +2 -6
- package/definitions/game/game/entity/creature/TileGroups.d.ts +13 -0
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +33 -26
- package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +6 -6
- package/definitions/game/game/entity/creature/corpse/Corpses.d.ts +0 -1
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +17 -0
- package/definitions/game/game/entity/flowfield/FlowField.d.ts +2 -2
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -2
- package/definitions/game/game/entity/flowfield/IFlowFieldManager.d.ts +4 -1
- package/definitions/game/game/entity/npc/INPC.d.ts +7 -0
- package/definitions/game/game/entity/npc/INPCs.d.ts +2 -1
- package/definitions/game/game/entity/npc/NPC.d.ts +96 -26
- package/definitions/game/game/entity/npc/NPCManager.d.ts +18 -7
- package/definitions/game/game/entity/npc/NPCS.d.ts +2 -2
- package/definitions/game/game/entity/npc/npcs/Controllable.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/DeathKnight.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +29 -30
- package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +66 -0
- package/definitions/game/game/entity/player/Customizations.d.ts +4 -4
- package/definitions/game/game/entity/player/IMessageManager.d.ts +7 -4
- package/definitions/game/game/entity/player/IPlayer.d.ts +8 -29
- package/definitions/game/game/entity/player/MessageManager.d.ts +8 -4
- package/definitions/game/game/entity/player/Player.d.ts +27 -16
- package/definitions/game/game/entity/player/PlayerManager.d.ts +23 -13
- package/definitions/game/game/entity/player/note/Corpse.d.ts +2 -2
- package/definitions/game/game/entity/player/note/NoteManager.d.ts +10 -4
- package/definitions/game/game/entity/player/quest/QuestManager.d.ts +3 -4
- package/definitions/game/game/entity/player/quest/Quests.d.ts +1 -2
- package/definitions/game/game/entity/player/quest/quest/Challenge.d.ts +8 -3
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +5 -5
- package/definitions/game/game/entity/skill/ISkills.d.ts +6 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffect.d.ts +4 -4
- package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
- package/definitions/game/game/inspection/IInfoProvider.d.ts +5 -3
- package/definitions/game/game/inspection/IInspection.d.ts +2 -1
- package/definitions/game/game/inspection/InfoProvider.d.ts +29 -3
- package/definitions/game/game/inspection/InfoProviderContext.d.ts +10 -6
- package/definitions/game/game/inspection/Inspection.d.ts +4 -4
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +4 -25
- package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +5 -8
- package/definitions/game/game/inspection/infoProviders/CivilizationScore.d.ts +30 -0
- package/definitions/game/game/inspection/infoProviders/ContainedItems.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/DoodadSkill.d.ts +29 -0
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +8 -8
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/creature/Aberrant.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +27 -0
- package/definitions/game/game/inspection/infoProviders/creature/{Happiness.d.ts → Difficulty.d.ts} +7 -4
- package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts +9 -3
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/doodad/GrowthStage.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/entity/Health.d.ts +5 -5
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +22 -17
- package/definitions/game/game/inspection/infoProviders/item/MagicalDamageType.d.ts +17 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +9 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +5 -6
- package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDismantleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemOfferInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemRangedInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemSetDownInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemShootInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemStokeInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTelescopyInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTrapDamageInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +3 -3
- package/definitions/game/game/inspection/infoProviders/skill/MagicalItemBonuses.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/DefenseInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CorpsesInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CreatureInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/EquipSlotInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/IslandInspection.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/ItemsInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +3 -1
- package/definitions/game/game/inspection/inspections/NPCInspection.d.ts +5 -2
- package/definitions/game/game/inspection/inspections/PlayerInspection.d.ts +4 -2
- package/definitions/game/game/inspection/inspections/RecipeInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/SelfInspection.d.ts +4 -5
- package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/StatInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/TileEventInspection.d.ts +4 -4
- package/definitions/game/game/inspection/inspections/TileInspection.d.ts +5 -6
- package/definitions/game/game/island/IIsland.d.ts +71 -17
- package/definitions/game/game/island/Island.d.ts +75 -148
- package/definitions/game/game/island/IslandManager.d.ts +11 -2
- package/definitions/game/game/island/Port.d.ts +43 -0
- package/definitions/game/game/island/TransientIsland.d.ts +33 -0
- package/definitions/game/game/item/IItem.d.ts +175 -25
- package/definitions/game/game/item/IItemManager.d.ts +21 -8
- package/definitions/game/game/item/Item.d.ts +95 -44
- package/definitions/game/game/item/ItemDescriptions.d.ts +2 -2
- package/definitions/game/game/item/ItemFinder.d.ts +2 -2
- package/definitions/game/game/item/ItemManager.d.ts +123 -94
- package/definitions/game/game/item/ItemMapManager.d.ts +3 -2
- package/definitions/game/game/item/WorldContainer.d.ts +16 -0
- package/definitions/game/game/item/recipe/Crafter.d.ts +3 -3
- package/definitions/game/game/item/recipe/RecipeRequirement.d.ts +2 -2
- package/definitions/game/game/item/recipe/requirement/FireRequirement.d.ts +2 -2
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -9
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +13 -1
- package/definitions/game/game/mapgen/IMapGen.d.ts +16 -5
- package/definitions/game/game/mapgen/MapGen.d.ts +2 -7
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +4 -5
- package/definitions/game/game/mapgen/version/2.12.0.d.ts +7 -3
- package/definitions/game/game/mapgen/version/2.12.1.d.ts +8 -4
- package/definitions/game/game/mapgen/version/2.13.0.d.ts +20 -0
- package/definitions/game/game/mapping/DrawnMap.d.ts +2 -2
- package/definitions/game/game/mapping/IMapTile.d.ts +2 -1
- package/definitions/game/game/mapping/IRegion.d.ts +22 -0
- package/definitions/game/game/meta/AutoSave.d.ts +12 -5
- package/definitions/game/game/meta/SaveLoad.d.ts +15 -9
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +88 -88
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
- package/definitions/game/game/meta/prompt/Prompts.d.ts +1 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +4 -1
- package/definitions/game/game/milestones/MilestoneManager.d.ts +12 -6
- package/definitions/game/game/options/IGameOptions.d.ts +6 -2
- package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +10 -6
- package/definitions/game/game/options/modifiers/GameplayModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -4
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +16 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +23 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +36 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -2
- package/definitions/game/game/reference/IReferenceManager.d.ts +4 -2
- package/definitions/game/game/reference/ReferenceManager.d.ts +8 -3
- package/definitions/game/game/temperature/TemperatureManager.d.ts +51 -26
- package/definitions/game/game/tile/ITerrain.d.ts +15 -27
- package/definitions/game/game/tile/ITileEvent.d.ts +3 -2
- package/definitions/game/game/tile/TerrainTemplates.d.ts +2 -2
- package/definitions/game/game/tile/Terrains.d.ts +1 -3
- package/definitions/game/game/tile/Tile.d.ts +311 -0
- package/definitions/game/game/tile/TileBits.d.ts +28 -0
- package/definitions/game/game/tile/TileEvent.d.ts +34 -31
- package/definitions/game/game/tile/TileEventManager.d.ts +21 -36
- package/definitions/game/game/tile/TileEvents.d.ts +1 -2
- package/definitions/game/game/tile/events/IFire.d.ts +4 -5
- package/definitions/game/game/tile/events/MeltingTile.d.ts +6 -6
- package/definitions/game/language/Dictionary.d.ts +109 -99
- package/definitions/game/language/DictionaryMap.d.ts +237 -314
- package/definitions/game/language/ITranslation.d.ts +6 -1
- package/definitions/game/language/LanguageManager.d.ts +12 -1
- package/definitions/game/language/Translation.d.ts +35 -8
- package/definitions/game/language/TranslationsProvider.d.ts +1 -1
- package/definitions/game/language/dictionary/Health.d.ts +24 -0
- package/definitions/game/language/dictionary/Message.d.ts +762 -917
- package/definitions/game/language/dictionary/Misc.d.ts +37 -32
- package/definitions/game/language/dictionary/UiTranslation.d.ts +842 -850
- package/definitions/game/language/english/Terrains.d.ts +2 -2
- package/definitions/game/language/english/creature/AiTypes.d.ts +13 -0
- package/definitions/game/language/english/creature/Corpses.d.ts +1 -1
- package/definitions/game/language/english/doodad/DoodadGroups.d.ts +1 -1
- package/definitions/game/language/english/game/Actions.d.ts +2 -2
- package/definitions/game/language/english/game/CombatDangerLevels.d.ts +13 -0
- package/definitions/game/language/english/game/CombatStrengths.d.ts +13 -0
- package/definitions/game/language/english/game/LighthouseName.d.ts +15 -0
- package/definitions/game/language/english/game/Regions.d.ts +13 -0
- package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameOverrunWithCreatureDescriptors.d.ts +1 -1
- package/definitions/game/language/english/item/DoodadsExtra.d.ts +13 -0
- package/definitions/game/language/english/item/ItemGroups.d.ts +2 -2
- package/definitions/game/language/english/item/Items.d.ts +2 -2
- package/definitions/game/language/english/living/HealthAccuracies.d.ts +13 -0
- package/definitions/game/language/english/living/Healths.d.ts +13 -0
- package/definitions/game/language/english/player/Milestones.d.ts +1 -1
- package/definitions/game/language/english/player/Skills.d.ts +2 -2
- package/definitions/game/language/english/ui/ModLoadErrors.d.ts +1 -1
- package/definitions/game/language/english/ui/UsableActionTypes.d.ts +2 -2
- package/definitions/game/language/english/ui/sort/MilestoneSorts.d.ts +13 -0
- package/definitions/game/language/english/ui/sort/SkillSorts.d.ts +13 -0
- package/definitions/game/language/impl/TranslationImpl.d.ts +7 -6
- package/definitions/game/language/segment/FormatListSegment.d.ts +1 -1
- package/definitions/game/language/utility/TranslationSorter.d.ts +3 -3
- package/definitions/game/mod/IMod.d.ts +1 -1
- package/definitions/game/mod/Mod.d.ts +2 -6
- package/definitions/game/mod/ModManager.d.ts +4 -0
- package/definitions/game/mod/ModRegistry.d.ts +96 -91
- package/definitions/game/multiplayer/IMultiplayer.d.ts +14 -1
- package/definitions/game/multiplayer/Multiplayer.d.ts +9 -4
- package/definitions/game/multiplayer/dedicatedServer/ssh/DefaultShell.d.ts +2 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/ISshShell.d.ts +2 -0
- package/definitions/game/multiplayer/dedicatedServer/ssh/Shell.d.ts +3 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/SshServer.d.ts +2 -1
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -0
- package/definitions/game/multiplayer/packets/BasePacket.d.ts +6 -1
- package/definitions/game/multiplayer/packets/IndexedPacket.d.ts +4 -1
- package/definitions/game/multiplayer/packets/Packets.d.ts +1 -1
- package/definitions/game/multiplayer/packets/client/LoadIslandPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/ConnectPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/UpdateActionBarPacket.d.ts +3 -2
- package/definitions/game/renderer/IRenderer.d.ts +81 -61
- package/definitions/game/renderer/Overlays.d.ts +1 -1
- package/definitions/game/renderer/Renderer.d.ts +54 -12
- package/definitions/game/renderer/Renderers.d.ts +20 -10
- package/definitions/game/renderer/WebGlContext.d.ts +2 -2
- package/definitions/game/renderer/context/BaseRendererContext.d.ts +8 -2
- package/definitions/game/renderer/context/RendererContext.d.ts +5 -1
- package/definitions/game/renderer/context/RendererOrigin.d.ts +6 -13
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +7 -6
- package/definitions/game/renderer/fieldOfView/IFieldOfView.d.ts +19 -9
- package/definitions/game/renderer/notifier/INotifier.d.ts +8 -6
- package/definitions/game/renderer/notifier/Notifier.d.ts +9 -8
- package/definitions/game/renderer/overlay/GenericOverlay.d.ts +26 -0
- package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleSystem.d.ts +4 -5
- package/definitions/game/renderer/spriteBatch/ISpriteBatch.d.ts +3 -1
- package/definitions/game/renderer/spriteBatch/PersistantSpriteBatch.d.ts +29 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +3 -26
- package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +5 -30
- package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +54 -0
- package/definitions/game/renderer/tile/TileLayer.d.ts +8 -0
- package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +15 -14
- package/definitions/game/renderer/world/IWorldLayer.d.ts +6 -2
- package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +26 -0
- package/definitions/game/renderer/world/IWorldRenderer.d.ts +8 -0
- package/definitions/game/renderer/world/World.d.ts +5 -5
- package/definitions/game/renderer/world/WorldLayer.d.ts +12 -7
- package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +22 -16
- package/definitions/game/renderer/world/WorldRenderer.d.ts +30 -25
- package/definitions/game/replay/IReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayManager.d.ts +3 -0
- package/definitions/game/resource/IResourcePath.d.ts +1 -1
- package/definitions/game/resource/ResourceLoader.d.ts +2 -1
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/SaveManager.d.ts +4 -2
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -5
- package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/datastorage/FileDataStorage.d.ts +3 -1
- package/definitions/game/save/datastorage/IndexedDbDataStorage.d.ts +2 -1
- package/definitions/game/save/serializer/ISerializer.d.ts +18 -4
- package/definitions/game/save/serializer/Serializer.d.ts +5 -3
- package/definitions/game/save/serializer/StringTokenizer.d.ts +4 -0
- package/definitions/game/save/upgrade/UpgradeGame.d.ts +2 -1
- package/definitions/game/save/upgrade/UpgradePlayer.d.ts +2 -1
- package/definitions/game/steamworks/Steamworks.d.ts +9 -1
- package/definitions/game/ui/IUi.d.ts +2 -1
- package/definitions/game/ui/Ui.d.ts +2 -0
- package/definitions/game/ui/component/ArticleComponent.d.ts +14 -0
- package/definitions/game/ui/component/Component.d.ts +4 -3
- package/definitions/game/ui/component/Dropdown.d.ts +21 -4
- package/definitions/game/ui/component/EnumContextMenu.d.ts +1 -3
- package/definitions/game/ui/component/GroupDropdown.d.ts +1 -1
- package/definitions/game/ui/component/IComponent.d.ts +1 -19
- package/definitions/game/ui/component/SortRow.d.ts +1 -1
- package/definitions/game/ui/component/Text.d.ts +6 -1
- package/definitions/game/ui/component/dropdown/EnumDropdown.d.ts +2 -2
- package/definitions/game/ui/component/dropdown/IslandPortsDropdown.d.ts +21 -0
- package/definitions/game/ui/component/dropdown/ItemDropdown.d.ts +3 -1
- package/definitions/game/ui/input/Bind.d.ts +7 -21
- package/definitions/game/ui/input/Bindable.d.ts +108 -97
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/InputManager.d.ts +1 -0
- package/definitions/game/ui/old/IOldUi.d.ts +5 -4
- package/definitions/game/ui/old/OldUi.d.ts +7 -11
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +56 -20
- package/definitions/game/ui/screen/Screen.d.ts +3 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -3
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +6 -5
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +4 -2
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/IMessages.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/CanvasDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +11 -7
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/CraftingDialog.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/dialog/IMilestonesDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/ISkillsDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/InspectDialog.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +31 -0
- package/definitions/game/ui/screen/screens/game/dialog/IslandsShippingDialog.d.ts +34 -0
- package/definitions/game/ui/screen/screens/game/dialog/MapDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/MessagesEditFiltersDialog.d.ts +7 -0
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/dialog/crafting/RecipeCache.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IIslandsDialog.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IslandsDialog.d.ts +95 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +9 -3
- package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts +1 -2
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +10 -9
- package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +7 -6
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusEffects.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/util/item/ItemStylesheet.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/MovementHandler.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/WalkToTileHandler.d.ts +3 -3
- package/definitions/game/ui/screen/screens/menu/menus/GameEndMenu.d.ts +4 -2
- package/definitions/game/ui/screen/screens/menu/menus/character/Swatch.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModInfoMenu.d.ts +2 -2
- package/definitions/game/ui/tooltip/Tooltip.d.ts +4 -17
- package/definitions/game/utilities/Files.d.ts +0 -1
- package/definitions/game/utilities/Log.d.ts +71 -67
- package/definitions/game/utilities/Version.d.ts +15 -9
- package/definitions/game/utilities/WebWorkerHelpers.d.ts +3 -6
- package/definitions/game/utilities/class/Inject.d.ts +2 -6
- package/definitions/game/utilities/collection/Arrays.d.ts +1 -42
- package/definitions/game/utilities/collection/Tuple.d.ts +53 -0
- package/definitions/game/utilities/collection/map/PriorityMap.d.ts +2 -1
- package/definitions/game/utilities/enum/EnumCursor.d.ts +1 -3
- package/definitions/game/utilities/enum/Enums.d.ts +7 -16
- package/definitions/game/utilities/enum/IEnum.d.ts +2 -1
- package/definitions/game/utilities/generic/GenericManager.d.ts +3 -1
- package/definitions/game/utilities/math/Bound3.d.ts +2 -2
- package/definitions/game/utilities/math/IVector.d.ts +7 -2
- package/definitions/game/utilities/math/Math2.d.ts +66 -0
- package/definitions/game/utilities/math/Range.d.ts +3 -0
- package/definitions/game/utilities/math/Rectangle.d.ts +3 -1
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -0
- package/definitions/game/utilities/object/Objects.d.ts +1 -1
- package/definitions/game/utilities/random/IRandom.d.ts +36 -0
- package/definitions/game/utilities/random/Random.d.ts +20 -54
- package/definitions/game/utilities/random/RandomReference.d.ts +16 -0
- package/definitions/game/utilities/random/RandomUtilities.d.ts +33 -0
- package/definitions/game/utilities/random/RandomValueGenerator.d.ts +3 -3
- package/definitions/game/utilities/random/SeededGenerator.d.ts +37 -0
- package/definitions/game/utilities/random/generators/LegacySeededGenerator.d.ts +21 -0
- package/definitions/game/utilities/random/generators/PCGSeededGenerator.d.ts +34 -0
- package/definitions/game/utilities/random/generators/{RandomItem.d.ts → specific/RandomItem.d.ts} +4 -2
- package/definitions/game/utilities/random/generators/{RandomRange.d.ts → specific/RandomRange.d.ts} +2 -1
- package/definitions/game/utilities/string/Interpolator.d.ts +3 -4
- package/definitions/game/utilities/string/Strings.d.ts +4 -0
- package/definitions/game/utilities/typesglobal/Descriptions.d.ts +1 -3
- package/definitions/game/webWorker/WebWorkerManager.d.ts +4 -3
- package/definitions/hosts/electron/main/interfaces.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/os/os.d.ts +5 -2
- package/definitions/hosts/electron/main/launchOptions.d.ts +3 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
- package/definitions/hosts/shared/ipc/handlers/os/os.d.ts +1 -0
- package/definitions/hosts/shared/ipc/os.d.ts +1 -0
- package/definitions/language-sync/index.d.ts +11 -0
- package/definitions/launcher/App.d.ts +29 -0
- package/definitions/launcher/Init.d.ts +16 -0
- package/definitions/launcher/Production.d.ts +10 -0
- package/definitions/launcher/ui/Article.d.ts +19 -0
- package/definitions/launcher/ui/Button.d.ts +36 -0
- package/definitions/launcher/ui/Component.d.ts +95 -0
- package/definitions/launcher/ui/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/LauncherUI.d.ts +32 -0
- package/definitions/launcher/ui/Section.d.ts +17 -0
- package/definitions/launcher/ui/component/Article.d.ts +22 -0
- package/definitions/launcher/ui/component/Button.d.ts +36 -0
- package/definitions/launcher/ui/component/Component.d.ts +95 -0
- package/definitions/launcher/ui/component/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/component/Section.d.ts +17 -0
- package/definitions/launcher/ui/launcher/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/launcher/FolderSelector.d.ts +63 -0
- package/definitions/launcher/ui/launcher/Mods.d.ts +16 -0
- package/definitions/launcher/ui/launcher/Resources.d.ts +18 -0
- package/definitions/launcher/ui/main/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/main/FolderSelector.d.ts +48 -0
- package/definitions/launcher/ui/main/Mods.d.ts +20 -0
- package/definitions/launcher/ui/main/Resources.d.ts +23 -0
- package/definitions/launcher/utilities/EventManager.d.ts +49 -0
- package/definitions/launcher/utilities/prototype/Apply.d.ts +11 -0
- package/definitions/test/core/application.d.ts +17 -15
- package/definitions/test/core/applicationDom.d.ts +8 -5
- package/definitions/test/core/applicationInteractions.d.ts +16 -13
- package/definitions/test/core/applicationLogger.d.ts +1 -1
- package/definitions/test/core/applicationManager.d.ts +12 -15
- package/definitions/test/core/chromeDriver.d.ts +2 -2
- package/definitions/test/index.d.ts +2 -3
- package/definitions/test/interfaces.d.ts +2 -6
- package/definitions/test/suite/functionalTests/multiplayer/Multiplayer.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/SaveImport.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/Singleplayer.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Actions.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Island.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/KdTree.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/MagicalPropertyManager.spec.d.ts +3 -3
- package/definitions/test/testRunner.d.ts +224 -0
- package/definitions/test/util/helpers.d.ts +12 -0
- package/definitions/test/util/ports.d.ts +11 -0
- package/definitions/test/util/random.d.ts +3 -2
- package/package.json +24 -24
- package/tsconfig.json +7 -7
- package/tsconfig.mod.base.json +44 -44
- package/definitions/game/game/entity/creature/Pathing.d.ts +0 -30
- package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +0 -65
- package/definitions/game/utilities/game/TileHelpers.d.ts +0 -123
- package/definitions/test/util/mochaNUnitReporter.d.ts +0 -38
|
@@ -12,25 +12,27 @@ import type { IEventEmitter } from "event/EventEmitter";
|
|
|
12
12
|
import Doodad from "game/doodad/Doodad";
|
|
13
13
|
import type Creature from "game/entity/creature/Creature";
|
|
14
14
|
import type { IDamageInfo } from "game/entity/creature/ICreature";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
15
|
+
import { CreatureType } from "game/entity/creature/ICreature";
|
|
16
|
+
import EntityWithStats from "game/entity/EntityWithStats";
|
|
17
|
+
import type { IAttack, ICausesDamage, IEntityConstructorOptions } from "game/entity/IEntity";
|
|
18
|
+
import { AttackType, DamageType, IStatChangeInfo, StatusEffectChangeReason, StatusType } from "game/entity/IEntity";
|
|
19
|
+
import type { ICheckUnderOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo } from "game/entity/IHuman";
|
|
19
20
|
import { EquipType, RestCancelReason, SkillType } from "game/entity/IHuman";
|
|
20
21
|
import type { IStat } from "game/entity/IStats";
|
|
21
22
|
import { Stat } from "game/entity/IStats";
|
|
22
23
|
import type { IMessageManager } from "game/entity/player/IMessageManager";
|
|
23
|
-
import type {
|
|
24
|
+
import type { IMovementIntent, IWalkPath } from "game/entity/player/IPlayer";
|
|
24
25
|
import { PlayerState, TurnTypeFlag, WeightStatus } from "game/entity/player/IPlayer";
|
|
25
26
|
import type { INoteManager } from "game/entity/player/note/NoteManager";
|
|
26
27
|
import PlayerDefense from "game/entity/player/PlayerDefense";
|
|
27
28
|
import type { IQuestManager } from "game/entity/player/quest/QuestManager";
|
|
29
|
+
import type { ISkillAttribute } from "game/entity/skill/ISkills";
|
|
28
30
|
import SkillManager from "game/entity/skill/SkillManager";
|
|
29
31
|
import type { StatChangeTimerFactory } from "game/entity/StatFactory";
|
|
30
32
|
import { StatChangeCurrentTimerStrategy } from "game/entity/StatFactory";
|
|
31
33
|
import { FireType } from "game/IGame";
|
|
32
34
|
import type { Quality } from "game/IObject";
|
|
33
|
-
import type { IMoveToIslandOptions, IslandId } from "game/island/IIsland";
|
|
35
|
+
import type { IMobCheck, IMoveToIslandOptions, IslandId } from "game/island/IIsland";
|
|
34
36
|
import type Island from "game/island/Island";
|
|
35
37
|
import type { EquipEffectByType, EquipEffects, IContainer, IRanged, RecipeLevel } from "game/item/IItem";
|
|
36
38
|
import { EquipEffect, ItemType, ItemTypeGroup } from "game/item/IItem";
|
|
@@ -39,73 +41,92 @@ import ItemReference from "game/item/ItemReference";
|
|
|
39
41
|
import { MagicalPropertyType } from "game/magic/MagicalPropertyType";
|
|
40
42
|
import { Milestone } from "game/milestones/IMilestone";
|
|
41
43
|
import type { IGameOptionsPlayer } from "game/options/IGameOptions";
|
|
44
|
+
import type { Reference } from "game/reference/IReferenceManager";
|
|
42
45
|
import type { IHasInsulation } from "game/temperature/ITemperature";
|
|
43
46
|
import { TempType } from "game/temperature/ITemperature";
|
|
47
|
+
import type Tile from "game/tile/Tile";
|
|
48
|
+
import type { ICanSailAwayResult } from "game/tile/Tile";
|
|
44
49
|
import type TileEvent from "game/tile/TileEvent";
|
|
45
50
|
import Message from "language/dictionary/Message";
|
|
51
|
+
import type { ISerializedTranslation } from "language/ITranslation";
|
|
46
52
|
import Translation from "language/Translation";
|
|
47
53
|
import type FieldOfView from "renderer/fieldOfView/FieldOfView";
|
|
48
54
|
import { CanASeeBType } from "renderer/fieldOfView/IFieldOfView";
|
|
49
55
|
import type { IOptions } from "save/data/ISaveDataGlobal";
|
|
50
|
-
import type { IContainerSortInfo, IDialogInfo } from "ui/old/IOldUi";
|
|
51
56
|
import { Direction } from "utilities/math/Direction";
|
|
52
57
|
import type { IVector2, IVector3 } from "utilities/math/IVector";
|
|
58
|
+
import Vector2 from "utilities/math/Vector2";
|
|
53
59
|
import type { IVector4 } from "utilities/math/Vector4";
|
|
54
60
|
export declare const REPUTATION_MAX = 64000;
|
|
55
|
-
export default abstract class Human extends
|
|
61
|
+
export default abstract class Human<TypeType extends number = number> extends EntityWithStats<unknown, TypeType> implements IHasInsulation {
|
|
56
62
|
static getNameTranslation(): import("../../language/impl/TranslationImpl").default;
|
|
57
63
|
event: IEventEmitter<this, IHumanEvents>;
|
|
64
|
+
anim: number;
|
|
65
|
+
direction: Vector2;
|
|
66
|
+
facingDirection: Direction.Cardinal;
|
|
67
|
+
/**
|
|
68
|
+
* Not guaranteed to be synced between the server and client for Human entities
|
|
69
|
+
*/
|
|
70
|
+
fromX: number;
|
|
71
|
+
/**
|
|
72
|
+
* Not guaranteed to be synced between the server and client for Human entities
|
|
73
|
+
*/
|
|
74
|
+
fromY: number;
|
|
58
75
|
crafted: Record<number, ICrafted>;
|
|
59
76
|
customization: ICustomizations;
|
|
60
|
-
deathBy:
|
|
77
|
+
deathBy: ISerializedTranslation;
|
|
61
78
|
defense: PlayerDefense;
|
|
62
79
|
defenses: number[];
|
|
63
|
-
equippedReferences: Map<EquipType, ItemReference>;
|
|
64
80
|
equippedOffHandDisabled?: ItemReference;
|
|
81
|
+
equippedReferences: Map<EquipType, ItemReference>;
|
|
82
|
+
flyingDelay?: number;
|
|
65
83
|
handEquippedToLast: EquipType.OffHand | EquipType.MainHand;
|
|
66
84
|
inventory: IContainer;
|
|
67
85
|
isConnecting: boolean;
|
|
86
|
+
lastAttackedByReference?: Reference;
|
|
87
|
+
manualTickActionDelay?: number;
|
|
68
88
|
options: Readonly<IOptions>;
|
|
69
89
|
islandId: IslandId;
|
|
70
90
|
readonly equipEffects: Map<EquipEffect, EquipEffects>;
|
|
71
|
-
manualTickActionDelay: number | undefined;
|
|
72
91
|
realTimeTickActionDelay: number;
|
|
73
92
|
respawnPoint: IVector4 | undefined;
|
|
74
93
|
restData: IRestData | undefined;
|
|
75
94
|
score: number;
|
|
76
95
|
state: PlayerState;
|
|
77
96
|
swimming: boolean;
|
|
78
|
-
tamedCreatures: Map<`${number},${number}`, number
|
|
97
|
+
tamedCreatures: Map<`${number},${number}`, Set<number>>;
|
|
79
98
|
ticksSpent: Map<`${number},${number}`, number>;
|
|
80
99
|
turns: number;
|
|
81
100
|
vehicleItemReference: ItemReference | undefined;
|
|
82
101
|
walkSoundCounter: number;
|
|
83
|
-
containerSortInfo: Record<string, IContainerSortInfo | undefined>;
|
|
84
|
-
dialogContainerInfo: Record<number, IDialogInfo | undefined>;
|
|
85
102
|
readonly movementIntent: IMovementIntent;
|
|
86
|
-
walkPath
|
|
103
|
+
walkPath?: IWalkPath;
|
|
87
104
|
identifier: string;
|
|
88
|
-
lastAttackedBy: Human | Creature | undefined;
|
|
89
105
|
skill: SkillManager;
|
|
90
106
|
quests: IQuestManager;
|
|
91
107
|
messages: IMessageManager;
|
|
92
108
|
notes: INoteManager;
|
|
93
109
|
private readonly privateStore;
|
|
94
110
|
nextMoveTime: number;
|
|
95
|
-
nextMoveDirection
|
|
96
|
-
private lastVehicleMoveDirection
|
|
111
|
+
nextMoveDirection?: Direction.Cardinal | Direction.None;
|
|
112
|
+
private lastVehicleMoveDirection?;
|
|
113
|
+
/**
|
|
114
|
+
* Only tracked serverside for dangerous bouncing
|
|
115
|
+
*/
|
|
116
|
+
private preventedBadMovement?;
|
|
97
117
|
/**
|
|
98
118
|
* Flag that will prevent a humans vehicle from showing up until the movement finishews
|
|
99
119
|
*/
|
|
100
120
|
isMovingSuppressVehicleClientside: boolean;
|
|
101
|
-
protected readonly milestonesCollection: import("../options/modifiers/GameplayModifiersManager").GameplayModifiersCollection<import("../options/modifiers/milestone/MilestoneModifier").default, Milestone, import("../options/modifiers/milestone/MilestoneModifier").MilestoneModifierInstance
|
|
121
|
+
protected readonly milestonesCollection: import("../options/modifiers/GameplayModifiersManager").GameplayModifiersCollection<import("../options/modifiers/milestone/MilestoneModifier").default, Milestone, import("../options/modifiers/milestone/MilestoneModifier").MilestoneModifierInstance<any>, [(Human<number> | undefined)?]>;
|
|
102
122
|
protected gameOptionsCached?: IGameOptionsPlayer;
|
|
103
123
|
protected cachedMovementPenalty?: number;
|
|
104
|
-
constructor();
|
|
124
|
+
constructor(entityOptions?: IEntityConstructorOptions<TypeType>);
|
|
125
|
+
protected getDescription(): void;
|
|
105
126
|
abstract createNoteManager(): INoteManager;
|
|
106
127
|
abstract createMessageManager(): IMessageManager;
|
|
107
128
|
abstract createQuestManager(): IQuestManager;
|
|
108
|
-
abstract addMilestone(milestone: Milestone, data?: number, update?: boolean): void;
|
|
129
|
+
abstract addMilestone(milestone: Milestone, data?: number | string, update?: boolean): void;
|
|
109
130
|
createSkillManager(): SkillManager;
|
|
110
131
|
isLocalPlayer(): boolean;
|
|
111
132
|
getGameOptionsBeforeModifiers(): IGameOptionsPlayer;
|
|
@@ -128,6 +149,7 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
128
149
|
*/
|
|
129
150
|
isServer(): boolean;
|
|
130
151
|
isHost(): boolean;
|
|
152
|
+
updateDirection(tile: Tile, updateVehicleDirection?: boolean): void;
|
|
131
153
|
protected onMovementCompleted(): void;
|
|
132
154
|
moveTowardsIsland(direction: Direction.Cardinal | Direction.None, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
133
155
|
moveToIslandPosition(position: IVector2, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
@@ -135,25 +157,39 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
135
157
|
* Moves this player to another island
|
|
136
158
|
*/
|
|
137
159
|
moveToIslandId(islandId: IslandId, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Starts the travel animation for the player
|
|
162
|
+
* @param direction Direction they are traveling
|
|
163
|
+
* @returns A method that you should invoke to end the animation
|
|
164
|
+
*/
|
|
165
|
+
private startTravelAnimation;
|
|
138
166
|
/**
|
|
139
167
|
* Loads the player onto an island
|
|
140
168
|
* Called when the game is initially loading and moving a player to another island
|
|
141
169
|
*/
|
|
142
|
-
loadOnIsland(island: Island, options?: Partial<ILoadOnIslandOptions
|
|
143
|
-
protected abstract moveToIsland(
|
|
170
|
+
loadOnIsland(island: Island, options?: Partial<ILoadOnIslandOptions>, voyageInfo?: IVoyageInfo): void;
|
|
171
|
+
protected abstract moveToIsland(targetTile: Tile): void;
|
|
144
172
|
/**
|
|
145
173
|
* Loads ui. Should only be called if this player is local
|
|
146
174
|
*/
|
|
147
175
|
loadUi(): void;
|
|
148
176
|
startResting(restData: IRestData): void;
|
|
149
177
|
cancelResting(reason: RestCancelReason): boolean;
|
|
178
|
+
findPathToPort(portId: number, options?: Partial<{
|
|
179
|
+
startReversed: boolean;
|
|
180
|
+
requireBoat: boolean;
|
|
181
|
+
}>): Tile[] | undefined;
|
|
182
|
+
addTamedCreature(creature: Creature): void;
|
|
183
|
+
removeTamedCreature(creature: Creature): boolean;
|
|
150
184
|
resetMovementIntent(): void;
|
|
151
|
-
createItemInInventory(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, updateTables?: boolean
|
|
185
|
+
createItemInInventory(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, updateTables?: boolean): Item;
|
|
152
186
|
damageRandomEquipment(): void;
|
|
153
187
|
getDamageModifier(): number;
|
|
154
188
|
calculateDamageAmount(attackType: AttackType, weapon?: Item, ammoItem?: Item): number;
|
|
155
189
|
isDualWielding(): boolean;
|
|
156
190
|
getAttack(attack?: AttackType, weapon?: Item): IAttack;
|
|
191
|
+
getSimplifiedCumulativeAttack(): number;
|
|
192
|
+
getCombatStrength(): number;
|
|
157
193
|
private getAttackType;
|
|
158
194
|
private getAttackSkillBonus;
|
|
159
195
|
private getAttackSkill;
|
|
@@ -172,7 +208,6 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
172
208
|
*/
|
|
173
209
|
getMaxHealth(withBonus?: boolean): number;
|
|
174
210
|
getCraftingDifficulty(level: RecipeLevel): number;
|
|
175
|
-
update(): void;
|
|
176
211
|
updateStatsAndAttributes(): void;
|
|
177
212
|
getMovementDelay(): number;
|
|
178
213
|
/**
|
|
@@ -187,7 +222,7 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
187
222
|
processInput(timeStamp: number): IMovementIntent | undefined;
|
|
188
223
|
staminaReduction(skill?: SkillType, level?: number): void;
|
|
189
224
|
updateReputation(reputation: number): void;
|
|
190
|
-
protected
|
|
225
|
+
protected checkOnLoadMilestones(): void;
|
|
191
226
|
capReputation(): void;
|
|
192
227
|
setVehicle(item: Item | undefined, extinguishTorches?: boolean): boolean;
|
|
193
228
|
getWeightStatus(): WeightStatus;
|
|
@@ -206,7 +241,7 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
206
241
|
* Burn the player
|
|
207
242
|
*/
|
|
208
243
|
burn(fireType: FireType, skipMessage?: boolean, skipParry?: boolean, equipType?: EquipType, fromCombat?: boolean, level?: number): number | undefined;
|
|
209
|
-
setPosition(
|
|
244
|
+
setPosition(tile: Tile): void;
|
|
210
245
|
/**
|
|
211
246
|
* @param effects If true, adds a delay to the player, clears any particles, and updates the view. (Default: true)
|
|
212
247
|
*/
|
|
@@ -218,10 +253,14 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
218
253
|
checkUnder(inFacingDirection?: boolean, options?: ICheckUnderOptions): ICheckUnderOptions;
|
|
219
254
|
damageByInteractingWith(thing: Doodad | TileEvent, options: ICheckUnderOptions | undefined, damageLocation: EquipType): ICheckUnderOptions;
|
|
220
255
|
equip(item: Item, slot: EquipType, internal?: boolean): boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Unequips an item.
|
|
258
|
+
* Note: This is safe to call even if the item isn't equipped. it'll do nothing in that case.
|
|
259
|
+
*/
|
|
221
260
|
unequip(item: Item, internal?: boolean, skipMessage?: boolean, skipRevertItem?: boolean): void;
|
|
222
261
|
private updateOffHandState;
|
|
223
262
|
unequipAll(): void;
|
|
224
|
-
|
|
263
|
+
getJumpTile(): Tile | undefined;
|
|
225
264
|
hasDelay(): boolean;
|
|
226
265
|
addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean): void;
|
|
227
266
|
/**
|
|
@@ -232,7 +271,6 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
232
271
|
getConsumeBonus(item: Item | undefined, skillUse?: SkillType): number;
|
|
233
272
|
getSkillBonus(skillUse?: SkillType): number;
|
|
234
273
|
getQualityBonus(item: Item | undefined): number;
|
|
235
|
-
hasTamedCreature(creature: Creature): boolean;
|
|
236
274
|
setTamedCreatureEnemy(enemy: Human | Creature): void;
|
|
237
275
|
checkForGatherFire(): Translation | undefined;
|
|
238
276
|
/**
|
|
@@ -279,9 +317,8 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
279
317
|
updateVehicle(): void;
|
|
280
318
|
getWeightOrStaminaMovementPenalty(): number;
|
|
281
319
|
canSailAway(): ICanSailAwayResult;
|
|
282
|
-
canSailAwayFromPosition(island: Island, position?: IVector3): ICanSailAwayResult;
|
|
283
320
|
canSailTo(x: number, y: number): boolean;
|
|
284
|
-
canCombatTides(): true |
|
|
321
|
+
canCombatTides(): true | Message.ActionSailToIslandCannotUseNotEnoughSwimmingSkill | Message.ActionSailToIslandCannotUseNotEnoughStamina;
|
|
285
322
|
protected calculateVoyageInfo(destination?: Island, distanceFromEdge?: number): IVoyageInfo;
|
|
286
323
|
/**
|
|
287
324
|
* Applies traveling effects to the player
|
|
@@ -306,15 +343,15 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
306
343
|
getInsulation(type: TempType): number;
|
|
307
344
|
resetStatTimers(type?: StatChangeCurrentTimerStrategy): void;
|
|
308
345
|
private getBaseStatBonuses;
|
|
309
|
-
protected getApplicableStatusEffects(): Set<StatusType
|
|
346
|
+
protected getApplicableStatusEffects(): Set<StatusType> | undefined;
|
|
310
347
|
private getSkillGainMultiplier;
|
|
311
348
|
private canSkillGain;
|
|
312
|
-
protected onSkillGain(skill: SkillType, mod: number): void;
|
|
349
|
+
protected onSkillGain(skill: SkillType, fromValue: number, toValue: number, mod: number): void;
|
|
313
350
|
setStatChangeTimerIgnoreDifficultyOptions(stat: Stat | IStat, timer: number, amt?: number): void;
|
|
314
351
|
/**
|
|
315
352
|
* Improve one of the core player stats
|
|
316
353
|
*/
|
|
317
|
-
protected statGain(stat: Stat, bypass: boolean): void;
|
|
354
|
+
protected statGain(stat: Stat | ISkillAttribute, bypass: boolean): void;
|
|
318
355
|
protected calculateStats(): void;
|
|
319
356
|
kill(): void;
|
|
320
357
|
protected resetDefense(skipStatChangedEvent?: boolean): void;
|
|
@@ -354,16 +391,22 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
354
391
|
* Used internally for `Stat.Weight.max`
|
|
355
392
|
*/
|
|
356
393
|
getMaxWeight(): number;
|
|
357
|
-
/**
|
|
358
|
-
* Get the strength of the player without any bonuses applied (ie custom game mode or debug tools).
|
|
359
|
-
*/
|
|
360
|
-
getOriginalMaxWeight(): number;
|
|
361
394
|
/**
|
|
362
395
|
* Gets this human's current carried weight, scaled down to what it would be without any weight bonuses applied
|
|
363
396
|
*/
|
|
364
397
|
getScaledWeight(): number;
|
|
398
|
+
hasDiscoveredVulnOrResist(creatureType: CreatureType, damageType: DamageType): boolean;
|
|
399
|
+
discoverVulnOrResist(creatureType: CreatureType, damageType: DamageType): void;
|
|
400
|
+
getDiscoveredVulnsAndResists(): Map<CreatureType, Set<DamageType>>;
|
|
401
|
+
getDiscoveredVulnsAndResists(creatureType: CreatureType): Set<DamageType>;
|
|
402
|
+
get asCorpse(): undefined;
|
|
365
403
|
get asCreature(): undefined;
|
|
404
|
+
get asDoodad(): undefined;
|
|
366
405
|
get asHuman(): Human;
|
|
406
|
+
get asTileEvent(): undefined;
|
|
407
|
+
get asItem(): undefined;
|
|
408
|
+
get point(): IVector3;
|
|
409
|
+
get tile(): Tile;
|
|
367
410
|
/**
|
|
368
411
|
* Moves inventory items to the target island
|
|
369
412
|
* This should be called before switching islands
|
|
@@ -10,23 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Doodad from "game/doodad/Doodad";
|
|
12
12
|
import type Entity from "game/entity/Entity";
|
|
13
|
-
import type { SkillType } from "game/entity/IHuman";
|
|
14
|
-
import type { IStatEvents } from "game/entity/IStats";
|
|
13
|
+
import type { Delay, SkillType } from "game/entity/IHuman";
|
|
15
14
|
import type Item from "game/item/Item";
|
|
16
|
-
import type
|
|
17
|
-
|
|
15
|
+
import type Tile from "game/tile/Tile";
|
|
16
|
+
import type { IRGB } from "utilities/Color";
|
|
17
|
+
export interface IEntityEvents {
|
|
18
18
|
/**
|
|
19
19
|
* Called when an entity is killed by another entity.
|
|
20
20
|
*/
|
|
21
21
|
kill?(attacker: Entity | Doodad): void;
|
|
22
|
-
/**
|
|
23
|
-
* Called when this entity gets or loses a status effect
|
|
24
|
-
* @param entity The object this event is emitted from
|
|
25
|
-
* @param status The type of status effect that was gained or lost
|
|
26
|
-
* @param level Whether the entity now has the status effect
|
|
27
|
-
* @param reason The reason for the change
|
|
28
|
-
*/
|
|
29
|
-
statusChange(status: StatusType, level: number, reason: StatusEffectChangeReason): void;
|
|
30
22
|
/**
|
|
31
23
|
* Called when the entity is created in the game
|
|
32
24
|
* Also called for players that "rejoin" the game
|
|
@@ -40,13 +32,11 @@ export interface IEntityEvents extends IStatEvents {
|
|
|
40
32
|
* Called when the entity is removed from the game
|
|
41
33
|
*/
|
|
42
34
|
removed(): void;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
preMove(fromX: number, fromY: number, fromZ: number, fromTile: ITile, toX: number, toY: number, toZ: number, toTile: ITile, isMoving: boolean): boolean | undefined | void;
|
|
49
|
-
postMove(fromX: number, fromY: number, fromZ: number, fromTile: ITile, toX: number, toY: number, toZ: number, toTile: ITile): void;
|
|
35
|
+
}
|
|
36
|
+
export interface IEntityConstructorOptions<TypeType extends number> {
|
|
37
|
+
id: number;
|
|
38
|
+
type: TypeType;
|
|
39
|
+
tile: Tile;
|
|
50
40
|
}
|
|
51
41
|
export declare enum StatusEffectChangeReason {
|
|
52
42
|
Gained = 0,
|
|
@@ -103,28 +93,87 @@ export interface ICausesDamage {
|
|
|
103
93
|
damage?: number;
|
|
104
94
|
}
|
|
105
95
|
export declare enum Property {
|
|
106
|
-
Credit = 0,
|
|
107
|
-
Talked = 1
|
|
108
96
|
}
|
|
109
97
|
export type IProperties = Map<Property, any>;
|
|
110
98
|
export declare enum EntityType {
|
|
111
99
|
Player = 0,
|
|
112
100
|
Creature = 1,
|
|
113
101
|
NPC = 2,
|
|
114
|
-
Human = 3
|
|
102
|
+
Human = 3,
|
|
103
|
+
Doodad = 4,
|
|
104
|
+
TileEvent = 5,
|
|
105
|
+
Corpse = 6,
|
|
106
|
+
Item = 7
|
|
115
107
|
}
|
|
116
108
|
export declare enum AiType {
|
|
109
|
+
/**
|
|
110
|
+
* Doesn't attack
|
|
111
|
+
*/
|
|
117
112
|
Neutral = 0,
|
|
113
|
+
/**
|
|
114
|
+
* Attacks player
|
|
115
|
+
*/
|
|
118
116
|
Hostile = 1,
|
|
117
|
+
/**
|
|
118
|
+
* Move like neutral - become fleeing within 10 tiles of a player
|
|
119
|
+
*/
|
|
119
120
|
Scared = 2,
|
|
121
|
+
/**
|
|
122
|
+
* Moves in random direction
|
|
123
|
+
*/
|
|
120
124
|
Random = 4,
|
|
125
|
+
/**
|
|
126
|
+
* Doesn't move, can't be seen
|
|
127
|
+
*/
|
|
121
128
|
Hidden = 8,
|
|
129
|
+
/**
|
|
130
|
+
* Never scared
|
|
131
|
+
*/
|
|
122
132
|
Fearless = 16,
|
|
133
|
+
/**
|
|
134
|
+
* Monster is tamed
|
|
135
|
+
*/
|
|
123
136
|
Tamed = 32,
|
|
124
|
-
|
|
125
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Follows the player at a close distance
|
|
139
|
+
*/
|
|
140
|
+
FollowClose = 64,
|
|
141
|
+
/**
|
|
142
|
+
* Retaliates the player when attacked
|
|
143
|
+
*/
|
|
144
|
+
Retaliate = 128,
|
|
145
|
+
/**
|
|
146
|
+
* Run away from the player
|
|
147
|
+
*/
|
|
126
148
|
Fleeing = 256,
|
|
127
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Do nothing until there are no players next to the entity
|
|
151
|
+
*/
|
|
152
|
+
Waiting = 512,
|
|
153
|
+
/**
|
|
154
|
+
* Follows the player at a far distance
|
|
155
|
+
*/
|
|
156
|
+
FollowFar = 1024,
|
|
157
|
+
/**
|
|
158
|
+
* Never move
|
|
159
|
+
*/
|
|
160
|
+
Stay = 2048,
|
|
161
|
+
/**
|
|
162
|
+
* Attacks adjacent enemies (creatures when tamed)
|
|
163
|
+
*/
|
|
164
|
+
AttackAdjacent = 4096,
|
|
165
|
+
/**
|
|
166
|
+
* Attacks enemies in sight(creatures when tamed)
|
|
167
|
+
*/
|
|
168
|
+
AttackInSight = 8192,
|
|
169
|
+
/**
|
|
170
|
+
* Stays in place and attacks things that pass by it
|
|
171
|
+
*/
|
|
172
|
+
Defend = 6144,
|
|
173
|
+
/**
|
|
174
|
+
* Follows the owner and attacks enemies it sees
|
|
175
|
+
*/
|
|
176
|
+
Attack = 8256
|
|
128
177
|
}
|
|
129
178
|
export declare enum MoveType {
|
|
130
179
|
None = 0,
|
|
@@ -135,9 +184,10 @@ export declare enum MoveType {
|
|
|
135
184
|
Mountain = 16,
|
|
136
185
|
Fire = 32,
|
|
137
186
|
BreakDoodads = 64,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
187
|
+
BreakItems = 128,
|
|
188
|
+
WetLand = 256,
|
|
189
|
+
Void = 512,
|
|
190
|
+
LandBlind = 1024,
|
|
141
191
|
Flying = 15
|
|
142
192
|
}
|
|
143
193
|
export declare enum AttackType {
|
|
@@ -170,12 +220,16 @@ export declare enum DamageType {
|
|
|
170
220
|
export declare module DamageType {
|
|
171
221
|
function getAll(...damageTypes: DamageType[]): DamageType[];
|
|
172
222
|
}
|
|
223
|
+
export declare const RESIST_IMMUNITY = 99;
|
|
224
|
+
export declare const RESIST_REGEN = 100;
|
|
173
225
|
export declare class Defense {
|
|
174
226
|
base: number;
|
|
175
227
|
resist: Attributes;
|
|
176
228
|
vulnerable: Attributes;
|
|
177
229
|
constructor(base: number);
|
|
178
230
|
setResistance(damageTypes: DamageType, amount: number): this;
|
|
231
|
+
setImmunity(damageTypes: DamageType): this;
|
|
232
|
+
setRegen(damageTypes: DamageType): this;
|
|
179
233
|
setVulnerability(damageTypes: DamageType, amount: number): this;
|
|
180
234
|
copy(): Defense;
|
|
181
235
|
equals(defense: Defense): boolean;
|
|
@@ -189,7 +243,11 @@ declare class AttributesImpl {
|
|
|
189
243
|
reset(amount?: number): void;
|
|
190
244
|
all(): [DamageType, number][];
|
|
191
245
|
types(): DamageType[];
|
|
192
|
-
has(): boolean;
|
|
246
|
+
has(type?: DamageType): boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Returns true if any of the given damage types are exactly the given value.
|
|
249
|
+
*/
|
|
250
|
+
hasTypeAtValue(damage: DamageType, exactly: number): boolean;
|
|
193
251
|
copy(): Attributes;
|
|
194
252
|
equals(attrs: Attributes): boolean;
|
|
195
253
|
}
|
|
@@ -221,4 +279,26 @@ export interface IAttackSkillBonus {
|
|
|
221
279
|
export declare enum EntityTag {
|
|
222
280
|
None = 0
|
|
223
281
|
}
|
|
282
|
+
export interface IMoveToOptions {
|
|
283
|
+
disallowCancelation?: boolean;
|
|
284
|
+
movementDelay?: Delay | number;
|
|
285
|
+
animation?: MoveAnimation;
|
|
286
|
+
onMoveCompletedParticles?: IRGB;
|
|
287
|
+
/**
|
|
288
|
+
* What caused the move?
|
|
289
|
+
*/
|
|
290
|
+
flags?: MoveFlag;
|
|
291
|
+
}
|
|
292
|
+
export declare enum MoveAnimation {
|
|
293
|
+
Normal = 0,
|
|
294
|
+
Jump = 1,
|
|
295
|
+
Teleport = 2
|
|
296
|
+
}
|
|
297
|
+
export declare enum MoveFlag {
|
|
298
|
+
None = 0,
|
|
299
|
+
/**
|
|
300
|
+
* Skips damage due to movement
|
|
301
|
+
*/
|
|
302
|
+
SkipEncumberedChecks = 1
|
|
303
|
+
}
|
|
224
304
|
export {};
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
import type { Events } from "event/EventEmitter";
|
|
12
12
|
import type Doodad from "game/doodad/Doodad";
|
|
13
13
|
import type { ActionType } from "game/entity/action/IAction";
|
|
14
|
-
import type { IDamageInfo } from "game/entity/creature/ICreature";
|
|
15
|
-
import type
|
|
14
|
+
import type { CreatureType, IDamageInfo } from "game/entity/creature/ICreature";
|
|
15
|
+
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
16
16
|
import type Human from "game/entity/Human";
|
|
17
|
-
import type { AttackType } from "game/entity/IEntity";
|
|
18
|
-
import type {
|
|
17
|
+
import type { AttackType, DamageType } from "game/entity/IEntity";
|
|
18
|
+
import type { IMovementIntent, WeightStatus } from "game/entity/player/IPlayer";
|
|
19
19
|
import type { ISkillEvents } from "game/entity/skill/SkillManager";
|
|
20
20
|
import type { IHasImagePath, Quality } from "game/IObject";
|
|
21
21
|
import type { IslandId } from "game/island/IIsland";
|
|
@@ -24,7 +24,7 @@ import type { IContainer } from "game/item/IItem";
|
|
|
24
24
|
import { ItemType, ItemTypeGroup, RecipeLevel } from "game/item/IItem";
|
|
25
25
|
import type Item from "game/item/Item";
|
|
26
26
|
import { TempType } from "game/temperature/ITemperature";
|
|
27
|
-
import type
|
|
27
|
+
import type Tile from "game/tile/Tile";
|
|
28
28
|
import Message from "language/dictionary/Message";
|
|
29
29
|
import type { IModdable } from "mod/ModRegistry";
|
|
30
30
|
import type { IOptions } from "save/data/ISaveDataGlobal";
|
|
@@ -32,7 +32,7 @@ import type { IRGB } from "utilities/Color";
|
|
|
32
32
|
import type { Direction } from "utilities/math/Direction";
|
|
33
33
|
import type { IVector2 } from "utilities/math/IVector";
|
|
34
34
|
import type { IRange } from "utilities/math/Range";
|
|
35
|
-
export interface IHumanEvents extends Events<
|
|
35
|
+
export interface IHumanEvents extends Events<EntityWithStats>, ISkillEvents {
|
|
36
36
|
/**
|
|
37
37
|
* Called when the human is spawned. (At the end of `Player.setup` / `NPC.spawn`)
|
|
38
38
|
*/
|
|
@@ -49,23 +49,23 @@ export interface IHumanEvents extends Events<Entity>, ISkillEvents {
|
|
|
49
49
|
restEnd(restData: IRestData): any;
|
|
50
50
|
/**
|
|
51
51
|
* Called when an item is added to the player's inventory
|
|
52
|
-
* @param item The
|
|
53
|
-
* @param container The container object the
|
|
52
|
+
* @param item The items
|
|
53
|
+
* @param container The container object the items were added to. This container might be inventory or a container within the inventory.
|
|
54
54
|
*/
|
|
55
|
-
inventoryItemAdd(
|
|
55
|
+
inventoryItemAdd(items: Item[], container: IContainer): any;
|
|
56
56
|
/**
|
|
57
57
|
* Called when an item is removed from the players inventory
|
|
58
|
-
* @param item The
|
|
59
|
-
* @param container The container object the
|
|
58
|
+
* @param item The items
|
|
59
|
+
* @param container The container object the items were moved to.
|
|
60
60
|
*/
|
|
61
|
-
inventoryItemRemove(
|
|
61
|
+
inventoryItemRemove(items: Item[], container: IContainer): any;
|
|
62
62
|
/**
|
|
63
63
|
* Called when an item is moved from one container to another, while still in the players inventory.
|
|
64
|
-
* @param
|
|
65
|
-
* @param container The container object the
|
|
66
|
-
* @param previousContainer The container object the
|
|
64
|
+
* @param items The items
|
|
65
|
+
* @param container The container object the items were moved to. This container might be inventory or a container within the inventory.
|
|
66
|
+
* @param previousContainer The container object the items were moved from. This container might be inventory or a container within the inventory.
|
|
67
67
|
*/
|
|
68
|
-
inventoryItemUpdate(
|
|
68
|
+
inventoryItemUpdate(items: Item[], container: IContainer, previousContainer?: IContainer): any;
|
|
69
69
|
/**
|
|
70
70
|
* Called when the human equips an item to a slot
|
|
71
71
|
* @param item The item being equipped
|
|
@@ -104,7 +104,7 @@ export interface IHumanEvents extends Events<Entity>, ISkillEvents {
|
|
|
104
104
|
* @param dropAllQuality If not undefined, all items of this quality will be dropped
|
|
105
105
|
* @returns True if the item can be dropped, false if the item can not be dropped, or undefined to use the default logic
|
|
106
106
|
*/
|
|
107
|
-
canDropItem(item: Item, tile:
|
|
107
|
+
canDropItem(item: Item, tile: Tile, dropAll: boolean, dropAllQuality: Quality | undefined): boolean | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* Called before an npc attacks
|
|
110
110
|
* @param weapon The weapon used to attack
|
|
@@ -184,13 +184,18 @@ export interface IHumanEvents extends Events<Entity>, ISkillEvents {
|
|
|
184
184
|
* @param tile The tile something was built on
|
|
185
185
|
* @param doodad The doodad that was created on the tile
|
|
186
186
|
*/
|
|
187
|
-
build?(item: Item, tile:
|
|
187
|
+
build?(item: Item, tile: Tile, doodad: Doodad): void;
|
|
188
188
|
/**
|
|
189
189
|
* Called when the human is damaged
|
|
190
190
|
* @param damageInfo The damage info object
|
|
191
191
|
* @returns The amount of damage the player should take (the player will take this damage)
|
|
192
192
|
*/
|
|
193
193
|
damage(damageInfo: IDamageInfo): number | void;
|
|
194
|
+
/**
|
|
195
|
+
* Called when an doodad is picked up
|
|
196
|
+
* @param doodad The doodad object
|
|
197
|
+
*/
|
|
198
|
+
pickUpDoodad?(doodad: Doodad): any;
|
|
194
199
|
/**
|
|
195
200
|
* Called when the player tick starts
|
|
196
201
|
*/
|
|
@@ -250,6 +255,14 @@ export interface IHumanEvents extends Events<Entity>, ISkillEvents {
|
|
|
250
255
|
* @return `false` to stop the human from dying
|
|
251
256
|
*/
|
|
252
257
|
shouldDie(): false | void;
|
|
258
|
+
/**
|
|
259
|
+
* Called when the human position is set, from a teleport type of movement
|
|
260
|
+
* @param tile Tile the human is now on
|
|
261
|
+
*/
|
|
262
|
+
setPosition(tile: Tile): void;
|
|
263
|
+
discoverVulnOrResist(creatureType: CreatureType, damageType: DamageType): any;
|
|
264
|
+
hasDiscoveredVulnOrResist(creatureType: CreatureType, damageType: DamageType, defaultState: boolean): boolean | undefined;
|
|
265
|
+
getDiscoveredVulnsAndResists(): Map<CreatureType, Set<DamageType>>;
|
|
253
266
|
}
|
|
254
267
|
export interface IHairstyleDescription extends IModdable, IHasImagePath {
|
|
255
268
|
name: string;
|
|
@@ -274,7 +287,8 @@ export declare enum Delay {
|
|
|
274
287
|
Collision = 40,
|
|
275
288
|
TurnDirection = 2,
|
|
276
289
|
ReallyLongPause = 100,
|
|
277
|
-
AttackAnimation = 30
|
|
290
|
+
AttackAnimation = 30,
|
|
291
|
+
Jump = 18
|
|
278
292
|
}
|
|
279
293
|
export declare enum EquipType {
|
|
280
294
|
None = 0,
|
|
@@ -418,15 +432,16 @@ export interface IHumanOld extends Partial<Human> {
|
|
|
418
432
|
* Defaults to 90% (0.9)
|
|
419
433
|
*/
|
|
420
434
|
export declare const WEIGHT_ENCUMBERED = 0.9;
|
|
421
|
-
export interface
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
435
|
+
export interface ILoadOnIslandOptions {
|
|
436
|
+
spawnPosition: IVector2;
|
|
437
|
+
startingGame: boolean;
|
|
438
|
+
travelType?: "swimming" | "sailing";
|
|
425
439
|
}
|
|
426
440
|
export interface IVoyageInfo {
|
|
427
441
|
time: number;
|
|
428
442
|
boat?: Item;
|
|
429
443
|
destination?: Island;
|
|
444
|
+
direction?: Direction.Cardinal;
|
|
430
445
|
usedItems?: Item[];
|
|
431
446
|
wantedItems?: ItemType[];
|
|
432
447
|
}
|
|
@@ -155,7 +155,7 @@ export default class Stats<T extends IStatHost> {
|
|
|
155
155
|
* @param amt The amount to increase the change timer by. Defaults to the stat's `changeTimerSpeed`.
|
|
156
156
|
*/
|
|
157
157
|
increaseChangeTimer(stat: Stat | IStat, amt?: number): T;
|
|
158
|
-
getTimeUntilChange(stat: Stat | IStat): number
|
|
158
|
+
getTimeUntilChange(stat: Stat | IStat, allowFailure?: boolean): number;
|
|
159
159
|
removeChangeTimer(stat: Stat | IStat): T;
|
|
160
160
|
/**
|
|
161
161
|
* Passes the "turn" for stats, decrements their `changeTimer`s. If a stat's timer reaches `0`,
|