@quenty/rogue-humanoid 10.24.0-canary.ae8d76d.0 → 10.24.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 +1 -1
- package/package.json +16 -16
- package/src/Client/RogueHumanoidClient.lua +2 -2
- package/src/Client/RogueHumanoidServiceClient.lua +1 -1
- package/src/Server/RogueHumanoid.lua +2 -2
- package/src/Server/RogueHumanoidService.lua +1 -1
- package/src/Shared/RogueHumanoidBase.lua +7 -9
- package/src/Shared/RogueHumanoidProperties.lua +9 -9
- package/test/scripts/Server/ServerMain.server.lua +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
6
|
+
# [10.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@10.23.3...@quenty/rogue-humanoid@10.24.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rogue-humanoid",
|
|
3
|
-
"version": "10.24.0
|
|
3
|
+
"version": "10.24.0",
|
|
4
4
|
"description": "Roguelike humanoid properties which can be modified",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/adorneedata": "7.19.0
|
|
29
|
-
"@quenty/attributeutils": "14.18.0
|
|
30
|
-
"@quenty/baseobject": "10.
|
|
31
|
-
"@quenty/binder": "14.20.0
|
|
32
|
-
"@quenty/brio": "14.18.0
|
|
33
|
-
"@quenty/characterutils": "12.19.0
|
|
34
|
-
"@quenty/loader": "10.
|
|
35
|
-
"@quenty/maid": "3.
|
|
36
|
-
"@quenty/playerhumanoidbinder": "14.20.0
|
|
37
|
-
"@quenty/rogue-properties": "11.23.0
|
|
38
|
-
"@quenty/rx": "13.18.0
|
|
39
|
-
"@quenty/servicebag": "11.12.0
|
|
40
|
-
"@quenty/table": "3.
|
|
41
|
-
"@quenty/valueobject": "13.18.0
|
|
28
|
+
"@quenty/adorneedata": "^7.19.0",
|
|
29
|
+
"@quenty/attributeutils": "^14.18.0",
|
|
30
|
+
"@quenty/baseobject": "^10.9.0",
|
|
31
|
+
"@quenty/binder": "^14.20.0",
|
|
32
|
+
"@quenty/brio": "^14.18.0",
|
|
33
|
+
"@quenty/characterutils": "^12.19.0",
|
|
34
|
+
"@quenty/loader": "^10.9.0",
|
|
35
|
+
"@quenty/maid": "^3.5.0",
|
|
36
|
+
"@quenty/playerhumanoidbinder": "^14.20.0",
|
|
37
|
+
"@quenty/rogue-properties": "^11.23.0",
|
|
38
|
+
"@quenty/rx": "^13.18.0",
|
|
39
|
+
"@quenty/servicebag": "^11.12.0",
|
|
40
|
+
"@quenty/table": "^3.8.0",
|
|
41
|
+
"@quenty/valueobject": "^13.18.0"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
|
|
47
47
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
|
-
local RogueHumanoidBase = require("RogueHumanoidBase")
|
|
8
7
|
local Binder = require("Binder")
|
|
8
|
+
local RogueHumanoidBase = require("RogueHumanoidBase")
|
|
9
9
|
|
|
10
10
|
local RogueHumanoidClient = setmetatable({}, RogueHumanoidBase)
|
|
11
11
|
RogueHumanoidClient.ClassName = "RogueHumanoidClient"
|
|
@@ -17,4 +17,4 @@ function RogueHumanoidClient.new(humanoid, serviceBag)
|
|
|
17
17
|
return self
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
return Binder.new("RogueHumanoid", RogueHumanoidClient)
|
|
20
|
+
return Binder.new("RogueHumanoid", RogueHumanoidClient)
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
|
-
local RogueHumanoidBase = require("RogueHumanoidBase")
|
|
8
7
|
local PlayerHumanoidBinder = require("PlayerHumanoidBinder")
|
|
8
|
+
local RogueHumanoidBase = require("RogueHumanoidBase")
|
|
9
9
|
|
|
10
10
|
local RogueHumanoid = setmetatable({}, RogueHumanoidBase)
|
|
11
11
|
RogueHumanoid.ClassName = "RogueHumanoid"
|
|
@@ -17,4 +17,4 @@ function RogueHumanoid.new(humanoid, serviceBag)
|
|
|
17
17
|
return self
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
return PlayerHumanoidBinder.new("RogueHumanoid", RogueHumanoid)
|
|
20
|
+
return PlayerHumanoidBinder.new("RogueHumanoid", RogueHumanoid)
|
|
@@ -16,10 +16,10 @@ local RxRootPartUtils = require("RxRootPartUtils")
|
|
|
16
16
|
local ValueObject = require("ValueObject")
|
|
17
17
|
|
|
18
18
|
local GROWTH_VALUE_NAMES = {
|
|
19
|
-
"HeadScale"
|
|
20
|
-
"BodyDepthScale"
|
|
21
|
-
"BodyHeightScale"
|
|
22
|
-
"BodyWidthScale"
|
|
19
|
+
"HeadScale",
|
|
20
|
+
"BodyDepthScale",
|
|
21
|
+
"BodyHeightScale",
|
|
22
|
+
"BodyWidthScale",
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
type ScaleState = {
|
|
@@ -162,11 +162,9 @@ function RogueHumanoidBase:_updateScaleValue(numberValue: NumberValue, state: Sc
|
|
|
162
162
|
local max = state.maxSize
|
|
163
163
|
local min = state.minSize
|
|
164
164
|
|
|
165
|
-
local multiplier = min
|
|
166
|
-
+ (math.exp(r*t)*(-min + max))/(math.exp(r*t)
|
|
167
|
-
+ (-i + max)/(i - min))
|
|
165
|
+
local multiplier = min + (math.exp(r * t) * (-min + max)) / (math.exp(r * t) + (-i + max) / (i - min))
|
|
168
166
|
|
|
169
|
-
numberValue.Value = initialValue*multiplier
|
|
167
|
+
numberValue.Value = initialValue * multiplier
|
|
170
168
|
end
|
|
171
169
|
|
|
172
|
-
return RogueHumanoidBase
|
|
170
|
+
return RogueHumanoidBase
|
|
@@ -9,14 +9,14 @@ local StarterPlayer = game:GetService("StarterPlayer")
|
|
|
9
9
|
local RoguePropertyTableDefinition = require("RoguePropertyTableDefinition")
|
|
10
10
|
|
|
11
11
|
return RoguePropertyTableDefinition.new("RogueHumanoidProperties", {
|
|
12
|
-
WalkSpeed = StarterPlayer.CharacterWalkSpeed
|
|
13
|
-
JumpHeight = StarterPlayer.CharacterJumpHeight
|
|
14
|
-
JumpPower = StarterPlayer.CharacterJumpPower
|
|
15
|
-
CharacterUseJumpPower = StarterPlayer.CharacterUseJumpPower
|
|
12
|
+
WalkSpeed = StarterPlayer.CharacterWalkSpeed,
|
|
13
|
+
JumpHeight = StarterPlayer.CharacterJumpHeight,
|
|
14
|
+
JumpPower = StarterPlayer.CharacterJumpPower,
|
|
15
|
+
CharacterUseJumpPower = StarterPlayer.CharacterUseJumpPower,
|
|
16
16
|
|
|
17
|
-
Scale = 1
|
|
18
|
-
ScaleMax = 20
|
|
19
|
-
ScaleMin = 0.2
|
|
17
|
+
Scale = 1,
|
|
18
|
+
ScaleMax = 20,
|
|
19
|
+
ScaleMin = 0.2,
|
|
20
20
|
|
|
21
|
-
MaxHealth = 100
|
|
22
|
-
})
|
|
21
|
+
MaxHealth = 100,
|
|
22
|
+
})
|