@quenty/rogue-humanoid 3.31.1-canary.402.40f9a1f.0 → 3.31.1-canary.402.5852ffd.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,12 +3,9 @@
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
- ## [3.31.1-canary.402.40f9a1f.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.31.0...@quenty/rogue-humanoid@3.31.1-canary.402.40f9a1f.0) (2023-08-16)
6
+ ## [3.31.1-canary.402.5852ffd.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.31.0...@quenty/rogue-humanoid@3.31.1-canary.402.5852ffd.0) (2023-08-16)
7
7
 
8
-
9
- ### Features
10
-
11
- * Only set properties on the network owner to prevent ping-back ([2d061f9](https://github.com/Quenty/NevermoreEngine/commit/2d061f980064a4ea9ef6224f589a3ed8f43fabc4))
8
+ **Note:** Version bump only for package @quenty/rogue-humanoid
12
9
 
13
10
 
14
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/rogue-humanoid",
3
- "version": "3.31.1-canary.402.40f9a1f.0",
3
+ "version": "3.31.1-canary.402.5852ffd.0",
4
4
  "description": "Roguelike humanoid properties which can be modified",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,21 +25,21 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/attributeutils": "8.19.1-canary.402.40f9a1f.0",
29
- "@quenty/baseobject": "6.2.2-canary.402.40f9a1f.0",
30
- "@quenty/binder": "8.24.1-canary.402.40f9a1f.0",
31
- "@quenty/brio": "8.16.1-canary.402.40f9a1f.0",
32
- "@quenty/loader": "6.2.2-canary.402.40f9a1f.0",
28
+ "@quenty/attributeutils": "8.19.1-canary.402.5852ffd.0",
29
+ "@quenty/baseobject": "6.2.2-canary.402.5852ffd.0",
30
+ "@quenty/binder": "8.24.1-canary.402.5852ffd.0",
31
+ "@quenty/brio": "8.16.1-canary.402.5852ffd.0",
32
+ "@quenty/loader": "6.2.2-canary.402.5852ffd.0",
33
33
  "@quenty/maid": "2.5.0",
34
- "@quenty/playerhumanoidbinder": "8.24.1-canary.402.40f9a1f.0",
35
- "@quenty/rogue-properties": "4.28.1-canary.402.40f9a1f.0",
36
- "@quenty/rx": "7.14.1-canary.402.40f9a1f.0",
37
- "@quenty/servicebag": "6.8.1-canary.402.40f9a1f.0",
38
- "@quenty/table": "3.2.1-canary.402.40f9a1f.0",
39
- "@quenty/valueobject": "7.21.1-canary.402.40f9a1f.0"
34
+ "@quenty/playerhumanoidbinder": "8.24.1-canary.402.5852ffd.0",
35
+ "@quenty/rogue-properties": "4.28.1-canary.402.5852ffd.0",
36
+ "@quenty/rx": "7.14.1-canary.402.5852ffd.0",
37
+ "@quenty/servicebag": "6.8.1-canary.402.5852ffd.0",
38
+ "@quenty/table": "3.2.1-canary.402.5852ffd.0",
39
+ "@quenty/valueobject": "7.21.1-canary.402.5852ffd.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "40f9a1fad543e137f1e639cafc45a98cb439b0b6"
44
+ "gitHead": "5852ffdd4ee4f857a5b7086330d59d852de49b86"
45
45
  }
@@ -0,0 +1,12 @@
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)
@@ -5,7 +5,6 @@
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
7
7
  local RogueHumanoidBase = require("RogueHumanoidBase")
8
- local Binder = require("Binder")
9
8
 
10
9
  local RogueHumanoidClient = setmetatable({}, RogueHumanoidBase)
11
10
  RogueHumanoidClient.ClassName = "RogueHumanoidClient"
@@ -17,4 +16,4 @@ function RogueHumanoidClient.new(humanoid, serviceBag)
17
16
  return self
18
17
  end
19
18
 
20
- return Binder.new("RogueHumanoid", RogueHumanoidClient)
19
+ return 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("RogueHumanoidClient"))
18
+ self._serviceBag:GetService(require("RogueHumanoidBindersClient"))
19
19
  end
20
20
 
21
21
  return RogueHumanoidServiceClient
@@ -5,7 +5,6 @@
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
7
7
  local RogueHumanoidBase = require("RogueHumanoidBase")
8
- local PlayerHumanoidBinder = require("PlayerHumanoidBinder")
9
8
 
10
9
  local RogueHumanoid = setmetatable({}, RogueHumanoidBase)
11
10
  RogueHumanoid.ClassName = "RogueHumanoid"
@@ -17,4 +16,5 @@ function RogueHumanoid.new(humanoid, serviceBag)
17
16
  return self
18
17
  end
19
18
 
20
- return PlayerHumanoidBinder.new("RogueHumanoid", RogueHumanoid)
19
+
20
+ return RogueHumanoid
@@ -0,0 +1,12 @@
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)
@@ -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("RogueHumanoid"))
18
+ self._serviceBag:GetService(require("RogueHumanoidBindersServer"))
19
19
  end
20
20
 
21
21
  return RogueHumanoidService
@@ -4,14 +4,11 @@
4
4
 
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
7
- local Players = game:GetService("Players")
8
-
9
7
  local BaseObject = require("BaseObject")
10
8
  local AttributeUtils = require("AttributeUtils")
11
9
  local Rx = require("Rx")
12
10
  local ValueObject = require("ValueObject")
13
11
  local RogueHumanoidProperties = require("RogueHumanoidProperties")
14
- local CharacterUtils = require("CharacterUtils")
15
12
 
16
13
  local GROWTH_VALUE_NAMES = {
17
14
  "HeadScale";
@@ -31,20 +28,18 @@ function RogueHumanoidBase.new(humanoid, serviceBag)
31
28
 
32
29
  self._properties = RogueHumanoidProperties:GetPropertyTable(self._serviceBag, self._obj)
33
30
 
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
31
+ self._maid:GiveTask(self._properties.WalkSpeed:Observe():Subscribe(function(walkSpeed)
32
+ self._obj.WalkSpeed = walkSpeed
33
+ end))
34
+ self._maid:GiveTask(self._properties.CharacterUseJumpPower:Observe():Subscribe(function(useJumpPower)
35
+ self._obj.UseJumpPower = useJumpPower
36
+ end))
37
+ self._maid:GiveTask(self._properties.JumpPower:Observe():Subscribe(function(jumpPower)
38
+ self._obj.JumpPower = jumpPower
39
+ end))
40
+ self._maid:GiveTask(self._properties.JumpHeight:Observe():Subscribe(function(jumpHeight)
41
+ self._obj.JumpHeight = jumpHeight
42
+ end))
48
43
 
49
44
  self._scaleState = ValueObject.fromObservable(Rx.combineLatest({
50
45
  scale = self._properties.Scale:Observe();