Zum Hauptinhalt springen
Alle Fähigkeiten

R1CrabBoss ChitinousExoskeleton — Passive

Passiv

Rohdaten

type
Passive
nature
Passive
id
R1CrabBoss_ChitinousExoskeleton
raw data
{
  "id": "R1CrabBoss_ChitinousExoskeleton",
  "anim": {},
  "type": 14,
  "vars": {
    "var1": 0.17
  },
  "flags": 0,
  "props": {},
  "steps": [],
  "texts": {},
  "nature": 5,
  "script": "var lastDropId = 0;\nfunction onReceiveDamage(dmg) {\n    if(!isServer)\n        return;\n    if(owner.isDead())\n        return;\n    var healthRatio = owner.healthRatio;\n    var newId = floor((1-healthRatio) / vars.var1);\n    if(newId + 1 < lastDropId) { // +1 Allows regenerating without possibility for loop in id change\n        lastDropId = newId +1;\n        return;\n    }\n    if(newId > lastDropId) {\n        for(i in lastDropId...newId){\n            startSkill(Skill.R1CrabBoss_ChitinousExoskeleton_Spike);\n        }\n        lastDropId = newId;\n    }\n}",
  "status": 2,
  "mastery": []
}