@quenty/rogue-humanoid 3.31.0 → 3.31.1-canary.405.6fa018e.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,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
+ ## [3.31.1-canary.405.6fa018e.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.31.0...@quenty/rogue-humanoid@3.31.1-canary.405.6fa018e.0) (2023-08-14)
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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.31.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-humanoid@3.30.0...@quenty/rogue-humanoid@3.31.0) (2023-08-01)
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.31.0",
3
+ "version": "3.31.1-canary.405.6fa018e.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.0",
29
- "@quenty/baseobject": "^6.2.1",
30
- "@quenty/binder": "^8.24.0",
31
- "@quenty/brio": "^8.16.0",
32
- "@quenty/loader": "^6.2.1",
33
- "@quenty/maid": "^2.5.0",
34
- "@quenty/playerhumanoidbinder": "^8.24.0",
35
- "@quenty/rogue-properties": "^4.28.0",
36
- "@quenty/rx": "^7.14.0",
37
- "@quenty/servicebag": "^6.8.0",
38
- "@quenty/table": "^3.2.0",
39
- "@quenty/valueobject": "^7.21.0"
28
+ "@quenty/attributeutils": "8.19.1-canary.405.6fa018e.0",
29
+ "@quenty/baseobject": "6.2.1",
30
+ "@quenty/binder": "8.24.1-canary.405.6fa018e.0",
31
+ "@quenty/brio": "8.16.1-canary.405.6fa018e.0",
32
+ "@quenty/loader": "6.2.1",
33
+ "@quenty/maid": "2.5.0",
34
+ "@quenty/playerhumanoidbinder": "8.24.1-canary.405.6fa018e.0",
35
+ "@quenty/rogue-properties": "4.28.1-canary.405.6fa018e.0",
36
+ "@quenty/rx": "7.14.1-canary.405.6fa018e.0",
37
+ "@quenty/servicebag": "6.8.0",
38
+ "@quenty/table": "3.2.0",
39
+ "@quenty/valueobject": "7.21.1-canary.405.6fa018e.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "839b4d929e4d6154aadf719f1ecfb9add4c8b247"
44
+ "gitHead": "6fa018eb1f165230fe1eb0417d8d6951010e4971"
45
45
  }
@@ -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("RogueHumanoidBindersClient"))
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("RogueHumanoidBindersServer"))
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,18 +31,20 @@ function RogueHumanoidBase.new(humanoid, serviceBag)
28
31
 
29
32
  self._properties = RogueHumanoidProperties:GetPropertyTable(self._serviceBag, self._obj)
30
33
 
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))
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
43
48
 
44
49
  self._scaleState = ValueObject.fromObservable(Rx.combineLatest({
45
50
  scale = self._properties.Scale:Observe();
@@ -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)