@quenty/scoredactionservice 9.25.0 → 9.26.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [9.26.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/scoredactionservice@9.25.0...@quenty/scoredactionservice@9.26.0) (2023-05-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * ScoredActionService works in Hoarcekat stories ([f721c04](https://github.com/Quenty/NevermoreEngine/commit/f721c04b40c6822a3d9ab0adc913c7429d5e6c78))
12
+ * ScoredActionService would error when getting above warn size ([f4e84f2](https://github.com/Quenty/NevermoreEngine/commit/f4e84f26980c999318c18542018983385c85a2a9))
13
+
14
+
15
+
16
+
17
+
6
18
  # [9.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/scoredactionservice@9.24.0...@quenty/scoredactionservice@9.25.0) (2023-04-24)
7
19
 
8
20
  **Note:** Version bump only for package @quenty/scoredactionservice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/scoredactionservice",
3
- "version": "9.25.0",
3
+ "version": "9.26.0",
4
4
  "description": "Scores actions and picks the highest rated one every frame",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,19 +27,19 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@quenty/baseobject": "^6.2.1",
30
- "@quenty/brio": "^8.11.0",
31
- "@quenty/inputkeymaputils": "^7.25.0",
32
- "@quenty/inputmode": "^7.17.0",
30
+ "@quenty/brio": "^8.12.0",
31
+ "@quenty/inputkeymaputils": "^7.26.0",
32
+ "@quenty/inputmode": "^7.18.0",
33
33
  "@quenty/loader": "^6.2.1",
34
34
  "@quenty/maid": "^2.5.0",
35
35
  "@quenty/rx": "^7.10.0",
36
36
  "@quenty/signal": "^2.3.0",
37
- "@quenty/statestack": "^8.12.0",
37
+ "@quenty/statestack": "^8.13.0",
38
38
  "@quenty/table": "^3.2.0",
39
- "@quenty/valueobject": "^7.12.0"
39
+ "@quenty/valueobject": "^7.13.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "a8a760988c8fd88c2581c5c496a8bad845de104c"
44
+ "gitHead": "2ad8cea7dd3ad79a39afd7d7b785b489b90553fd"
45
45
  }
@@ -78,6 +78,10 @@ function InputListScoreHelper:_updateInputTypeSet(inputTypeList)
78
78
  end
79
79
 
80
80
  function InputListScoreHelper:_unregisterAction(inputType)
81
+ if not self.Destroy then
82
+ return
83
+ end
84
+
81
85
  if not self._currentTypes[inputType] then
82
86
  warn("[InputListScoreHelper] - Already unregistered")
83
87
  end
@@ -51,7 +51,7 @@ function ScoredActionPickerProvider:GetOrCreatePicker(inputType)
51
51
  local amount = Table.count(self._scoredActionPickers)
52
52
  if amount > MAX_ACTION_LIST_SIZE_BEFORE_WARN then
53
53
  warn(("[ScoredActionPickerProvider.GetPicker] - Pickers has size of %d/%d")
54
- :format(#amount, MAX_ACTION_LIST_SIZE_BEFORE_WARN))
54
+ :format(amount, MAX_ACTION_LIST_SIZE_BEFORE_WARN))
55
55
  end
56
56
 
57
57
  return picker
@@ -55,6 +55,22 @@ end
55
55
  ]=]
56
56
  function ScoredActionServiceClient:GetScoredAction(inputKeyMapList)
57
57
  assert(InputKeyMapList.isInputKeyMapList(inputKeyMapList), "Bad inputKeyMapList")
58
+
59
+ -- Mock for not running mode
60
+ if not RunService:IsRunning() then
61
+ local scoredAction = ScoredAction.new()
62
+
63
+ local maid = Maid.new()
64
+ maid:GiveTask(scoredAction:PushPreferred())
65
+
66
+ -- Couple cleanup to the scored action
67
+ maid:GiveTask(scoredAction.Removing:Connect(function()
68
+ maid:DoCleaning()
69
+ end))
70
+
71
+ return scoredAction
72
+ end
73
+
58
74
  assert(self._provider, "Not initialized")
59
75
 
60
76
  local scoredAction = ScoredAction.new()