init: add workspace files
This commit is contained in:
15
world/extends/item/eq.js
Normal file
15
world/extends/item/eq.js
Normal file
@@ -0,0 +1,15 @@
|
||||
EQUIPMENT.prototype.query_score = function () {
|
||||
if (this.grade) {
|
||||
var sc = this.score;
|
||||
if (!sc) sc = this.grade * 100;
|
||||
sc += this.level * this.grade * 10;
|
||||
if (this.st_prop) {
|
||||
for (var i = 0; i < this.st_prop.length; i++) {
|
||||
sc += this.st_prop[i].grade * 10;
|
||||
}
|
||||
}
|
||||
return sc;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user