@wayward/types 2.14.0-beta.dev.20241017.2 → 2.14.0

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.
@@ -0,0 +1,70 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+ - master
6
+ - development
7
+
8
+ env:
9
+ REPO_NAME: ${{ github.event.repository.name }}
10
+ EXTRA_RELEASE_ARGS: ${{ github.ref == 'refs/heads/development' && '--prerelease' || '' }}
11
+ EXTRA_NPM_ARGS: ${{ github.ref == 'refs/heads/development' && '--tag dev' || '' }}
12
+
13
+ jobs:
14
+ release:
15
+ name: Release
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ contents: write
19
+ id-token: write
20
+ packages: write
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+
24
+ - uses: actions/setup-node@v4
25
+ with:
26
+ node-version: "20.x"
27
+ registry-url: "https://registry.npmjs.org"
28
+
29
+ - name: Parse package.json
30
+ id: set_var
31
+ run: |
32
+ content=`cat ./package.json`
33
+ content="${content//'%'/'%25'}"
34
+ content="${content//$'\n'/'%0A'}"
35
+ content="${content//$'\r'/'%0D'}"
36
+ echo "::set-output name=packageJson::$content"
37
+ - run: |
38
+ echo "${{fromJson(steps.set_var.outputs.packageJson).version}}"
39
+ typesversion=${{fromJson(steps.set_var.outputs.packageJson).version}}
40
+ echo "$typesversion"
41
+ echo "TYPES_VERSION=$typesversion" >> $GITHUB_ENV
42
+
43
+ - name: zip
44
+ run: |
45
+ cd ../
46
+ zip -r $REPO_NAME.zip $REPO_NAME -x "$REPO_NAME/.git/*" "$REPO_NAME/.github/*" "$REPO_NAME/node_modules/*"
47
+
48
+ - name: Delete release
49
+ env:
50
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51
+ continue-on-error: true
52
+ run: |
53
+ gh release delete "v$TYPES_VERSION" --cleanup-tag --yes
54
+
55
+ - name: Create release
56
+ env:
57
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
+ tag: ${{ github.ref_name }}
59
+ run: |
60
+ gh release create "v$TYPES_VERSION" \
61
+ --repo="$GITHUB_REPOSITORY" \
62
+ --target="${{ github.sha }}" \
63
+ --title="v$TYPES_VERSION" \
64
+ --generate-notes \
65
+ $EXTRA_RELEASE_ARGS \
66
+ "../$REPO_NAME.zip#$REPO_NAME.zip"
67
+
68
+ - run: npm publish --provenance --access public $EXTRA_NPM_ARGS
69
+ env:
70
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -224,7 +224,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
224
224
  getDamageModifier(): number;
225
225
  calculateDamageAmount(attackType: AttackType, weapon?: Item, ammoItem?: Item): number;
226
226
  isDualWielding(): boolean;
227
- getAttack(attack?: AttackType, weapon?: Item): IAttack;
227
+ getAttack(attack?: AttackType, weapon?: Item, offHandWeapon?: Item): IAttack;
228
228
  getSimplifiedCumulativeAttack(): number;
229
229
  getSimplifiedCumulativeDefense(): number;
230
230
  getCombatStrength(): number;
@@ -20,8 +20,8 @@ declare const _default: UseInfo<{
20
20
  equip: import("@wayward/game/game/entity/IHuman").EquipType;
21
21
  entityType: import("../../../../entity/IEntity").EntityType.Item;
22
22
  value?: Item | undefined;
23
- type: import("../../../../item/IItem").ItemType;
24
- description: Readonly<import("../../../../item/IItem").IItemDescription>;
23
+ type: import("@wayward/game/game/item/IItem").ItemType;
24
+ description: Readonly<import("@wayward/game/game/item/IItem").IItemDescription>;
25
25
  quality: import("../../../../IObject").Quality;
26
26
  action: ActionType.Equip;
27
27
  union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.Equip>;