aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/cosmetic.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-17 18:05:02 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-17 18:05:02 +0800
commit5df6618fd38eee6b1bb9d16c2cc21eec6e7ad459 (patch)
tree84e8a2787fe88a9ae971c7b0bdb7f6e79d321283 /features/cosmetics/cosmetic.js
parent5e68ecb56a9ec04c55809c1471bd836b99a062ef (diff)
downloadSoopyV2-5df6618fd38eee6b1bb9d16c2cc21eec6e7ad459.tar.gz
SoopyV2-5df6618fd38eee6b1bb9d16c2cc21eec6e7ad459.tar.bz2
SoopyV2-5df6618fd38eee6b1bb9d16c2cc21eec6e7ad459.zip
Refactoring
Diffstat (limited to 'features/cosmetics/cosmetic.js')
-rw-r--r--features/cosmetics/cosmetic.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/features/cosmetics/cosmetic.js b/features/cosmetics/cosmetic.js
index 4b52fa8..1627f2f 100644
--- a/features/cosmetics/cosmetic.js
+++ b/features/cosmetics/cosmetic.js
@@ -1,11 +1,15 @@
class Cosmetic{
- constructor(player, parent){
+ constructor(player, parent, id){
/**
* @type {PlayerMP | Player}
*/
this.player = player
this.parent = parent
+
+ this.id = id
+
+ this.settings = this.parent.getPlayerCosmeticSettings(this.player, id)
}
onRender(){