This commit is contained in:
aozhiwei 2024-07-19 19:25:23 +08:00
parent 701de97ef4
commit 2f392f315c

View File

@ -7,23 +7,23 @@ const factory = require('./factory');
class FounderTag extends basewrap.BaseWrap { class FounderTag extends basewrap.BaseWrap {
#quality = 1 quality = 1;
_init0 () { _init0 () {
switch (this.rarity) { switch (this.rarity) {
case 'Common': case 'Common':
{ {
this.#quality = 1; this.quality = 1;
} }
break; break;
case 'Rare': case 'Rare':
{ {
this.#quality = 2; this.quality = 2;
} }
break; break;
case 'Legendary': case 'Legendary':
{ {
this.#quality = 3; this.quality = 3;
} }
break; break;
default: default:
@ -32,10 +32,11 @@ class FounderTag extends basewrap.BaseWrap {
} }
break; break;
} }
console.log(this);
} }
getQuality() { getQuality() {
return this.#quality; return this.quality;
} }
} }