WIKI冒险团明确声明不支持涉及代练和账号买卖的现金交易活动。
参与者应自行承担对应后果。

全站通知:

Widget:Wiki测试服-状态

来自地下城堡2WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<script>

class 状态类 {
    constructor (p, creator) {
        this.创造者 = creator;
        this.上级 = p;
        this.名称 = p.状态名称;
        this.类型 = p.状态类型;
        this.剩余时间 = p.状态持续时间;
        this.最大层数 = p.状态最大层数;
        this.当前层数 = 1;
        this.每层数值 = 0;
        if (this.上级 instanceof 技能类) { this.每层数值 = 数值计算(p.状态系数, creator, null, this.上级); }
        if (this.上级 instanceof 装备特效类) { this.每层数值 = 数值计算(p.系数, creator, null, this.上级); }
        if (this.上级 instanceof 域之环类) { this.每层数值 = Int(this.创造者.属性("体质") * 0.75); }
    }
    数值 () {
        var 允许状态效果 = (this.上级 instanceof 域之环类) ? 0 : (this.创造者.允许遗迹==true) ? 1 : 0;
        var ret = this.每层数值 * this.当前层数 * (1.0 + 允许状态效果 * 遗迹.启用 * 遗迹.状态效果);
        if (this.类型 == "hot")ret *= this.创造者.属性("回复效果");
        if (this.类型 == "dot" && !(this.上级 instanceof 域之环类))ret *= this.创造者.属性("持伤");
        if (this.类型 != "反击buff" && this.类型 != "物理易伤buff" && this.类型 != "魔法易伤buff") return Int(ret);
        return ret;
    }
}

</script>