@quenty/rogue-humanoid 9.0.0 → 10.0.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 +11 -0
- package/package.json +3 -3
- package/src/Shared/RogueHumanoidBase.lua +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [10.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@9.0.0...@quenty/rogue-humanoid@10.0.0) (2024-02-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix rogue property speeds ([0275254](https://github.com/Quenty/NevermoreEngine/commit/027525423896ecc110c2e12e2af5a9b5b6da75ae))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [9.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@8.0.0...@quenty/rogue-humanoid@9.0.0) (2024-02-14)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/rogue-humanoid
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rogue-humanoid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Roguelike humanoid properties which can be modified",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@quenty/loader": "^10.0.0",
|
|
34
34
|
"@quenty/maid": "^3.0.0",
|
|
35
35
|
"@quenty/playerhumanoidbinder": "^14.0.0",
|
|
36
|
-
"@quenty/rogue-properties": "^
|
|
36
|
+
"@quenty/rogue-properties": "^11.0.0",
|
|
37
37
|
"@quenty/rx": "^13.0.0",
|
|
38
38
|
"@quenty/servicebag": "^11.0.0",
|
|
39
39
|
"@quenty/table": "^3.4.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "76dd93ee8ce79e7e156f1c39978bf72224f6dd05"
|
|
46
46
|
}
|
|
@@ -46,13 +46,12 @@ function RogueHumanoidBase.new(humanoid, serviceBag)
|
|
|
46
46
|
end))
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
self._scaleState = ValueObject.fromObservable(Rx.combineLatest({
|
|
49
|
+
self._scaleState = self._maid:Add(ValueObject.fromObservable(Rx.combineLatest({
|
|
50
50
|
scale = self._properties.Scale:Observe();
|
|
51
51
|
maxSize = self._properties.ScaleMax:Observe();
|
|
52
52
|
minSize = self._properties.ScaleMin:Observe();
|
|
53
|
-
}))
|
|
53
|
+
})))
|
|
54
54
|
|
|
55
|
-
self._maid:GiveTask(self._scaleState)
|
|
56
55
|
self._maid:GiveTask(self._scaleState:Observe():Subscribe(function(state)
|
|
57
56
|
if state then
|
|
58
57
|
self:_updateScale(state)
|
|
@@ -90,7 +89,7 @@ function RogueHumanoidBase:_updateScale(state)
|
|
|
90
89
|
for _, name in pairs(GROWTH_VALUE_NAMES) do
|
|
91
90
|
local numberValue = self._obj:FindFirstChild(name)
|
|
92
91
|
if not numberValue then
|
|
93
|
-
|
|
92
|
+
continue
|
|
94
93
|
end
|
|
95
94
|
|
|
96
95
|
self:_updateScaleValue(numberValue, state)
|