@quenty/rogue-humanoid 4.0.0-canary.367.e9fdcbc.0 → 4.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 +140 -1
- package/package.json +15 -14
- package/src/Client/RogueHumanoidClient.lua +2 -1
- 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 +17 -7
- package/src/Shared/RogueHumanoidProperties.lua +2 -0
- package/src/Client/RogueHumanoidBindersClient.lua +0 -12
- package/src/Server/RogueHumanoidBindersServer.lua +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,146 @@
|
|
|
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
|
-
# [4.0.0
|
|
6
|
+
# [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.34.0...@quenty/rogue-humanoid@4.0.0) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.34.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.33.0...@quenty/rogue-humanoid@3.34.0) (2023-09-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.33.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.32.0...@quenty/rogue-humanoid@3.33.0) (2023-09-04)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.32.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.31.0...@quenty/rogue-humanoid@3.32.0) (2023-08-23)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* Add missing dependencies ([324e3db](https://github.com/Quenty/NevermoreEngine/commit/324e3dbcd7ed260542eebe24889cbc6cd968d380))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* Only set properties on the network owner to prevent ping-back ([2d061f9](https://github.com/Quenty/NevermoreEngine/commit/2d061f980064a4ea9ef6224f589a3ed8f43fabc4))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [3.31.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.30.0...@quenty/rogue-humanoid@3.31.0) (2023-08-01)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [3.30.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.29.0...@quenty/rogue-humanoid@3.30.0) (2023-07-28)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# [3.29.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.28.0...@quenty/rogue-humanoid@3.29.0) (2023-07-23)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# [3.28.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.27.0...@quenty/rogue-humanoid@3.28.0) (2023-07-17)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# [3.27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.26.0...@quenty/rogue-humanoid@3.27.0) (2023-07-15)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# [3.26.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.25.0...@quenty/rogue-humanoid@3.26.0) (2023-07-12)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Features
|
|
90
|
+
|
|
91
|
+
* Add UseJumpPower and JumpPower properties ([a23e46b](https://github.com/Quenty/NevermoreEngine/commit/a23e46b4406db47bc2240827b85ea093bebaec21))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# [3.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.24.2...@quenty/rogue-humanoid@3.25.0) (2023-07-10)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## [3.24.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.24.1...@quenty/rogue-humanoid@3.24.2) (2023-07-03)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## [3.24.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.24.0...@quenty/rogue-humanoid@3.24.1) (2023-06-24)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# [3.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.23.1...@quenty/rogue-humanoid@3.24.0) (2023-06-24)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## [3.23.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.23.0...@quenty/rogue-humanoid@3.23.1) (2023-06-23)
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
# [3.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.22.0...@quenty/rogue-humanoid@3.23.0) (2023-06-17)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
# [3.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.21.0...@quenty/rogue-humanoid@3.22.0) (2023-06-05)
|
|
7
146
|
|
|
8
147
|
**Note:** Version bump only for package @quenty/rogue-humanoid
|
|
9
148
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rogue-humanoid",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Roguelike humanoid properties which can be modified",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,21 +25,22 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/attributeutils": "
|
|
29
|
-
"@quenty/baseobject": "
|
|
30
|
-
"@quenty/binder": "9.0.0
|
|
31
|
-
"@quenty/brio": "
|
|
32
|
-
"@quenty/
|
|
33
|
-
"@quenty/
|
|
34
|
-
"@quenty/
|
|
35
|
-
"@quenty/
|
|
36
|
-
"@quenty/
|
|
37
|
-
"@quenty/
|
|
38
|
-
"@quenty/
|
|
39
|
-
"@quenty/
|
|
28
|
+
"@quenty/attributeutils": "^9.0.0",
|
|
29
|
+
"@quenty/baseobject": "^7.0.0",
|
|
30
|
+
"@quenty/binder": "^9.0.0",
|
|
31
|
+
"@quenty/brio": "^9.0.0",
|
|
32
|
+
"@quenty/characterutils": "^7.0.0",
|
|
33
|
+
"@quenty/loader": "^7.0.0",
|
|
34
|
+
"@quenty/maid": "^2.6.0",
|
|
35
|
+
"@quenty/playerhumanoidbinder": "^9.0.0",
|
|
36
|
+
"@quenty/rogue-properties": "^5.0.0",
|
|
37
|
+
"@quenty/rx": "^8.0.0",
|
|
38
|
+
"@quenty/servicebag": "^7.0.0",
|
|
39
|
+
"@quenty/table": "^3.3.0",
|
|
40
|
+
"@quenty/valueobject": "^8.0.0"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
|
|
45
46
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
7
|
local RogueHumanoidBase = require("RogueHumanoidBase")
|
|
8
|
+
local Binder = require("Binder")
|
|
8
9
|
|
|
9
10
|
local RogueHumanoidClient = setmetatable({}, RogueHumanoidBase)
|
|
10
11
|
RogueHumanoidClient.ClassName = "RogueHumanoidClient"
|
|
@@ -16,4 +17,4 @@ function RogueHumanoidClient.new(humanoid, serviceBag)
|
|
|
16
17
|
return self
|
|
17
18
|
end
|
|
18
19
|
|
|
19
|
-
return RogueHumanoidClient
|
|
20
|
+
return Binder.new("RogueHumanoid", RogueHumanoidClient)
|
|
@@ -15,7 +15,7 @@ function RogueHumanoidServiceClient:Init(serviceBag)
|
|
|
15
15
|
self._serviceBag:GetService(require("RoguePropertyService"))
|
|
16
16
|
|
|
17
17
|
-- Internal
|
|
18
|
-
self._serviceBag:GetService(require("
|
|
18
|
+
self._serviceBag:GetService(require("RogueHumanoidClient"))
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
return RogueHumanoidServiceClient
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
7
|
local RogueHumanoidBase = require("RogueHumanoidBase")
|
|
8
|
+
local PlayerHumanoidBinder = require("PlayerHumanoidBinder")
|
|
8
9
|
|
|
9
10
|
local RogueHumanoid = setmetatable({}, RogueHumanoidBase)
|
|
10
11
|
RogueHumanoid.ClassName = "RogueHumanoid"
|
|
@@ -16,5 +17,4 @@ function RogueHumanoid.new(humanoid, serviceBag)
|
|
|
16
17
|
return self
|
|
17
18
|
end
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
return RogueHumanoid
|
|
20
|
+
return PlayerHumanoidBinder.new("RogueHumanoid", RogueHumanoid)
|
|
@@ -15,7 +15,7 @@ function RogueHumanoidService:Init(serviceBag)
|
|
|
15
15
|
self._serviceBag:GetService(require("RoguePropertyService"))
|
|
16
16
|
|
|
17
17
|
-- Internal
|
|
18
|
-
self._serviceBag:GetService(require("
|
|
18
|
+
self._serviceBag:GetService(require("RogueHumanoid"))
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
return RogueHumanoidService
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
|
+
local Players = game:GetService("Players")
|
|
8
|
+
|
|
7
9
|
local BaseObject = require("BaseObject")
|
|
8
10
|
local AttributeUtils = require("AttributeUtils")
|
|
9
11
|
local Rx = require("Rx")
|
|
10
12
|
local ValueObject = require("ValueObject")
|
|
11
13
|
local RogueHumanoidProperties = require("RogueHumanoidProperties")
|
|
14
|
+
local CharacterUtils = require("CharacterUtils")
|
|
12
15
|
|
|
13
16
|
local GROWTH_VALUE_NAMES = {
|
|
14
17
|
"HeadScale";
|
|
@@ -28,13 +31,20 @@ function RogueHumanoidBase.new(humanoid, serviceBag)
|
|
|
28
31
|
|
|
29
32
|
self._properties = RogueHumanoidProperties:GetPropertyTable(self._serviceBag, self._obj)
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
self.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
self.
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
if CharacterUtils.getPlayerFromCharacter(self._obj) == Players.LocalPlayer then
|
|
35
|
+
self._maid:GiveTask(self._properties.WalkSpeed:Observe():Subscribe(function(walkSpeed)
|
|
36
|
+
self._obj.WalkSpeed = walkSpeed
|
|
37
|
+
end))
|
|
38
|
+
self._maid:GiveTask(self._properties.CharacterUseJumpPower:Observe():Subscribe(function(useJumpPower)
|
|
39
|
+
self._obj.UseJumpPower = useJumpPower
|
|
40
|
+
end))
|
|
41
|
+
self._maid:GiveTask(self._properties.JumpPower:Observe():Subscribe(function(jumpPower)
|
|
42
|
+
self._obj.JumpPower = jumpPower
|
|
43
|
+
end))
|
|
44
|
+
self._maid:GiveTask(self._properties.JumpHeight:Observe():Subscribe(function(jumpHeight)
|
|
45
|
+
self._obj.JumpHeight = jumpHeight
|
|
46
|
+
end))
|
|
47
|
+
end
|
|
38
48
|
|
|
39
49
|
self._scaleState = ValueObject.fromObservable(Rx.combineLatest({
|
|
40
50
|
scale = self._properties.Scale:Observe();
|
|
@@ -11,6 +11,8 @@ local RoguePropertyTableDefinition = require("RoguePropertyTableDefinition")
|
|
|
11
11
|
return RoguePropertyTableDefinition.new("RogueHumanoidProperties", {
|
|
12
12
|
WalkSpeed = StarterPlayer.CharacterWalkSpeed;
|
|
13
13
|
JumpHeight = StarterPlayer.CharacterJumpHeight;
|
|
14
|
+
JumpPower = StarterPlayer.CharacterJumpPower;
|
|
15
|
+
CharacterUseJumpPower = StarterPlayer.CharacterUseJumpPower;
|
|
14
16
|
|
|
15
17
|
Scale = 1;
|
|
16
18
|
ScaleMax = 20;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
--[=[
|
|
2
|
-
@class RogueHumanoidBindersClient
|
|
3
|
-
]=]
|
|
4
|
-
|
|
5
|
-
local require = require(script.Parent.loader).load(script)
|
|
6
|
-
|
|
7
|
-
local BinderProvider = require("BinderProvider")
|
|
8
|
-
local Binder = require("Binder")
|
|
9
|
-
|
|
10
|
-
return BinderProvider.new(script.Name, function(self, serviceBag)
|
|
11
|
-
self:Add(Binder.new("RogueHumanoid", require("RogueHumanoidClient"), serviceBag))
|
|
12
|
-
end)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
--[=[
|
|
2
|
-
@class RogueHumanoidBindersServer
|
|
3
|
-
]=]
|
|
4
|
-
|
|
5
|
-
local require = require(script.Parent.loader).load(script)
|
|
6
|
-
|
|
7
|
-
local BinderProvider = require("BinderProvider")
|
|
8
|
-
local PlayerHumanoidBinder = require("PlayerHumanoidBinder")
|
|
9
|
-
|
|
10
|
-
return BinderProvider.new(script.Name, function(self, serviceBag)
|
|
11
|
-
self:Add(PlayerHumanoidBinder.new("RogueHumanoid", require("RogueHumanoid"), serviceBag))
|
|
12
|
-
end)
|