Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iRuxu committed Jul 3, 2021
1 parent bbffeb6 commit d79fdde
Show file tree
Hide file tree
Showing 11 changed files with 512 additions and 405 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jx3box-player",
"version": "0.0.1",
"version": "0.1.0",
"description": "玩家角色信息",
"main": "index.js",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## 装分计算
```装备分数 = 品质 * 品质系数 * 部位系数```
藏剑:(轻剑+重剑)/2

### 品质系数

Expand Down
22 changes: 16 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,35 @@ export default {
return {
role : "浮烟@长安城",
// 输出
// playerId: '31864485', //筱儿
// playerId: "26522940", //浮烟七秀
// playerId: "10105521", //浮烟长歌
// playerId: "33065480", //和尚
// playerId: "33065534", //霸刀
// playerId: "33146204", //藏剑
playerId: "33154610", //醉栩蓬莱
// playerId: "33154610", //醉栩蓬莱
// playerId: "17217706", //醉栩凌雪
// playerId: "2382163", //yyz
playerId: "10105523", //浮烟藏剑
// 坦克
// playerId: "17806618", //醉栩天策
// playerId: "32287076", //牧空和尚
// playerId: "10537412", //醉栩苍云
// playerId: "5291324", //醉栩明教 闪躲还有一点问题
// playerId: "17217706", //醉栩凌雪
// playerId: "2382163", //yyz
// playerId: "31346115", //凉子奶毒
// playerId: "13525363", // 凉子七秀
// server: '斗转星移',
// 奶妈
// playerId: "31864485", // 子璇七秀
// playerId: "13525363", // 凉子七秀
// playerId: "31346115", //凉子奶毒
// playerId: "26522945", //浮烟奶花
// playerId: "10105521", //浮烟奶歌
server: '蝶恋花',
// server: '唯我独尊',
// server: '斗转星移',
// playerId: "21041450",
// server: "唯我独尊",
Expand Down
19 changes: 14 additions & 5 deletions src/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
:data="equip_data"
:showEquipName="showEquipName"
:showPosition="showPosition"
:mount="mount_id"
:mount="mount_pinyin"
:body="body_id"
/>

</div>

<!-- 其它信息 -->
Expand All @@ -37,7 +36,14 @@ import rolename from "@/assets/data/role.json";
import { getGS } from "@/service/gs.js";
export default {
name: "Player",
props: ["playerId", "server", "role",'darkMode',"showPosition","showEquipName"],
props: [
"playerId",
"server",
"role",
"darkMode",
"showPosition",
"showEquipName",
],
data: function () {
return {
data: "",
Expand All @@ -62,9 +68,12 @@ export default {
return this.data && this.data;
},
gs: function () {
return getGS(this.equip_data);
return getGS(this.equip_data, this.mount_id);
},
mount_id : function (){
return ~~this.data?.Kungfu?.KungfuID
},
mount_id: function () {
mount_pinyin: function () {
const name = this.roleName(this.roleName(this.data.Kungfu.Name));
return this.data && this.data.Kungfu && name;
},
Expand Down
11 changes: 11 additions & 0 deletions src/assets/css/attrs.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@
.bold;
.fz(20px);
}
.u-extra{
.fz(12px);
color:#888;
&::before{
content:"("
}
&::after{
content:")"
}
.ml(3px);
}
}

.darkMode{
Expand Down
110 changes: 53 additions & 57 deletions src/assets/data/mount_attrs.js
Original file line number Diff line number Diff line change
@@ -1,60 +1,56 @@

const xfAttr = {
"10028": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "surplus", "health", "toughness", "huajing"], // 离经
"10080": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "surplus", "health", "toughness", "huajing"], // 云裳
"10176": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "surplus", "health", "toughness", "huajing"], // 补天
"10448": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "surplus", "health", "toughness", "huajing"], // 相知
"10002": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 洗髓
"10062": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 铁牢
"10243": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 明尊
"10389": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 铁骨
"10003": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 易筋经
"10014": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 紫霞功
"10015": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 太虚剑意
"10021": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 花间游
"10026": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 傲血战意
"10533": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 凌海诀
"10144": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 冰心诀
"10145": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 问水诀
"10175": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 山居剑意
"10003": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 毒经
"10224": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 惊羽诀
"10225": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 田螺诡道
"10242": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 焚影圣诀
"10268": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 笑尘诀
"10390": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 分山劲
"10447": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 莫问
"10464": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 北傲诀
"10585": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 隐龙诀
"10615": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 太玄经
}
"10028": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "health", "toughness", "huajing"], // 离经
"10080": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "health", "toughness", "huajing"], // 云裳
"10176": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "health", "toughness", "huajing"], // 补天
"10448": ["heal", "atSpiritBase", "crit", "critEffect", "haste", "health", "toughness", "huajing"], // 相知
"10002": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 洗髓
"10062": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 铁牢
"10243": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 明尊
"10389": ["atVitalityBase", "haste", "surplus", "physicsShield", "magicShield", "health", "dodge", "toughness", "parryBase", "parryValue"], // 铁骨
"10003": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 易筋经
"10014": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 紫霞功
"10015": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 太虚剑意
"10021": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 花间游
"10026": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 傲血战意
"10533": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 凌海诀
"10144": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 冰心诀
"10145": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 问水诀
"10175": ["baseAttack", "attack", "weaponDamage", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 山居剑意
"10003": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 毒经
"10224": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 惊羽诀
"10225": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 田螺诡道
"10242": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 焚影圣诀
"10268": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 笑尘诀
"10390": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 分山劲
"10447": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 莫问
"10464": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 北傲诀
"10585": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 隐龙诀
"10615": ["baseAttack", "attack", "surplus", "haste", "crit", "critEffect", "overcome", "strain", "health"], // 太玄经
};
const attrMaps = {
"baseAttack": "基础攻击",
"attack": "面板攻击",
"heal": "面板治疗量",
"weaponDamage": "武器伤害",
"surplus": "破招",
"haste": "加速",
"crit": "会心",
"critEffect": "会效",
"overcome": "破防",
"strain": "无双",
"health": "气血",
"physicsShield": "外防",
"magicShield": "内防",
"dodge": "闪避",
"toughness": "御劲",
"huajing": "化劲",
"parryBase": "招架",
"parryValue": "拆招",
"atVitalityBase": "体质",
"atSpunkBase": "元气",
"atSpiritBase": "根骨",
"atStrengthBase": "力道",
"atAgilityBase": "身法"
}
baseAttack: "基础攻击",
attack: "面板攻击",
heal: "面板治疗量",
weaponDamage: "武器伤害",
surplus: "破招",
haste: "加速",
crit: "会心",
critEffect: "会效",
overcome: "破防",
strain: "无双",
health: "气血",
physicsShield: "外防",
magicShield: "内防",
dodge: "闪避",
toughness: "御劲",
huajing: "化劲",
parryBase: "招架",
parryValue: "拆招",
atVitalityBase: "体质",
atSpunkBase: "元气",
atSpiritBase: "根骨",
atStrengthBase: "力道",
atAgilityBase: "身法",
};

export {
xfAttr,
attrMaps
}
export { xfAttr, attrMaps };
4 changes: 2 additions & 2 deletions src/assets/data/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
"10464": "北傲诀",
"10533": "凌海诀",
"10615": "太玄经",
"0": "通用",
"10585": "隐龙诀"
"10585": "隐龙诀",
"0": "通用"
}
Loading

0 comments on commit d79fdde

Please sign in to comment.