FareverDB
?

R1CrabBoss_ChitinousExoskeleton

R1CrabBoss_ChitinousExoskeleton in Skills
id
R1CrabBoss_ChitinousExoskeleton
type
14
flags
0
nature
5
script
var lastDropId = 0; function onReceiveDamage(dmg) { if(!isServer) return; if(owner.isDead()) return; var healthRatio = owner.healthRatio; var newId = floor((1-healthRatio) / vars.var1); if(newId + 1 < lastDropId) { // +1 Allows regenerating without possibility for loop in id change lastDropId = newId +1; return; } if(newId > lastDropId) { for(i in lastDropId...newId){ startSkill(Skill.R1CrabBoss_ChitinousExoskeleton_Spike); } lastDropId = newId; } }
status
2
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": []
}