战力:修复战力
This commit is contained in:
@@ -23,7 +23,6 @@ export class CalCe {
|
|||||||
public setRoleCe(roleCe: RoleCeType) {
|
public setRoleCe(roleCe: RoleCeType) {
|
||||||
this.data = new CalCeData(roleCe)
|
this.data = new CalCeData(roleCe)
|
||||||
this.originCes = this.calHeroCe();
|
this.originCes = this.calHeroCe();
|
||||||
this.setRoleLv(roleCe.roleLv);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getRoleCeTable() {
|
public getRoleCeTable() {
|
||||||
@@ -514,6 +513,7 @@ class CalCeData {
|
|||||||
|
|
||||||
constructor(roleCe: RoleCeType) {
|
constructor(roleCe: RoleCeType) {
|
||||||
if(roleCe) {
|
if(roleCe) {
|
||||||
|
this.roleLv = roleCe.roleLv;
|
||||||
for(let globalAttr of roleCe.globalAttrs) {
|
for(let globalAttr of roleCe.globalAttrs) {
|
||||||
let obj = this.getGlobalAttrById(globalAttr.attrId);
|
let obj = this.getGlobalAttrById(globalAttr.attrId);
|
||||||
obj.setByRoleCe(globalAttr);
|
obj.setByRoleCe(globalAttr);
|
||||||
|
|||||||
Reference in New Issue
Block a user