修复流血机制的BUG;

main
parent 54d0b778d4
commit 57f0937cf6

File diff suppressed because one or more lines are too long

@ -15,7 +15,7 @@ null,
{"id":13,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":458},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":2,"skillId":470}],"battlerHue":29,"battlerName":"蛇","dropItems":[{"kind":1,"dataId":29,"denominator":30},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":8,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":11,"dataId":5,"value":1.1},{"code":11,"dataId":7,"value":0.9},{"code":11,"dataId":4,"value":0.9},{"code":11,"dataId":14,"value":0.95},{"code":11,"dataId":16,"value":1.1},{"code":14,"dataId":76,"value":1}],"gold":6,"name":"海蛇","note":"<Static Level: 5>\n<Positive Level Fluctuation: 1>\n<Passive State: 215>\n<Custom Parameter mdf Formula>\n Math.floor(19 + 1.6 * level)\n</Custom Parameter mdf Formula>","params":[200,0,25,25,20,35,48,30]}, {"id":13,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":458},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":2,"skillId":470}],"battlerHue":29,"battlerName":"蛇","dropItems":[{"kind":1,"dataId":29,"denominator":30},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":8,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":11,"dataId":5,"value":1.1},{"code":11,"dataId":7,"value":0.9},{"code":11,"dataId":4,"value":0.9},{"code":11,"dataId":14,"value":0.95},{"code":11,"dataId":16,"value":1.1},{"code":14,"dataId":76,"value":1}],"gold":6,"name":"海蛇","note":"<Static Level: 5>\n<Positive Level Fluctuation: 1>\n<Passive State: 215>\n<Custom Parameter mdf Formula>\n Math.floor(19 + 1.6 * level)\n</Custom Parameter mdf Formula>","params":[200,0,25,25,20,35,48,30]},
{"id":14,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":4,"skillId":459},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":4,"skillId":418},{"conditionParam1":0.7,"conditionParam2":1,"conditionType":2,"rating":5,"skillId":415},{"conditionParam1":0,"conditionParam2":0.5,"conditionType":2,"rating":4,"skillId":467},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":456},{"conditionParam1":0,"conditionParam2":0.5,"conditionType":2,"rating":4,"skillId":419},{"conditionParam1":0,"conditionParam2":0.6,"conditionType":2,"rating":4,"skillId":417},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":414}],"battlerHue":52,"battlerName":"蝎子","dropItems":[{"kind":0,"dataId":0,"denominator":1},{"kind":0,"dataId":0,"denominator":1},{"kind":0,"dataId":0,"denominator":1}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":32,"dataId":58,"value":0.05},{"code":11,"dataId":16,"value":1.1},{"code":11,"dataId":5,"value":0.95},{"code":11,"dataId":7,"value":1.1},{"code":11,"dataId":4,"value":1.1},{"code":14,"dataId":76,"value":1},{"code":13,"dataId":1,"value":0}],"gold":0,"name":"熔岩巨蝎","note":"<Static Level: 8>\n<Positive Level Fluctuation: 0>\n<Passive State: 215>\n<Custom Parameter maxhp Formula>\n Math.floor(base + 0.125 * level * level * level + 2 * level * level + 65 * level)\n</Custom Parameter maxhp Formula>\n\n<Custom Parameter atk Formula>\n Math.floor(45 + 1.8 * level)\n</Custom Parameter atk Formula>\n\n<Custom Parameter def Formula>\n Math.floor(50 + 8 * level)\n</Custom Parameter def Formula>\n\n<Custom Parameter mat Formula>\n Math.floor(55 + 2.4 * level)\n</Custom Parameter mat Formula>\n\n<Custom Parameter mdf Formula>\n Math.floor(43 + 5 * level)\n</Custom Parameter mdf Formula>","params":[500,600,21,30,25,35,68,30]}, {"id":14,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":4,"skillId":459},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":4,"skillId":418},{"conditionParam1":0.7,"conditionParam2":1,"conditionType":2,"rating":5,"skillId":415},{"conditionParam1":0,"conditionParam2":0.5,"conditionType":2,"rating":4,"skillId":467},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":456},{"conditionParam1":0,"conditionParam2":0.5,"conditionType":2,"rating":4,"skillId":419},{"conditionParam1":0,"conditionParam2":0.6,"conditionType":2,"rating":4,"skillId":417},{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":414}],"battlerHue":52,"battlerName":"蝎子","dropItems":[{"kind":0,"dataId":0,"denominator":1},{"kind":0,"dataId":0,"denominator":1},{"kind":0,"dataId":0,"denominator":1}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":32,"dataId":58,"value":0.05},{"code":11,"dataId":16,"value":1.1},{"code":11,"dataId":5,"value":0.95},{"code":11,"dataId":7,"value":1.1},{"code":11,"dataId":4,"value":1.1},{"code":14,"dataId":76,"value":1},{"code":13,"dataId":1,"value":0}],"gold":0,"name":"熔岩巨蝎","note":"<Static Level: 8>\n<Positive Level Fluctuation: 0>\n<Passive State: 215>\n<Custom Parameter maxhp Formula>\n Math.floor(base + 0.125 * level * level * level + 2 * level * level + 65 * level)\n</Custom Parameter maxhp Formula>\n\n<Custom Parameter atk Formula>\n Math.floor(45 + 1.8 * level)\n</Custom Parameter atk Formula>\n\n<Custom Parameter def Formula>\n Math.floor(50 + 8 * level)\n</Custom Parameter def Formula>\n\n<Custom Parameter mat Formula>\n Math.floor(55 + 2.4 * level)\n</Custom Parameter mat Formula>\n\n<Custom Parameter mdf Formula>\n Math.floor(43 + 5 * level)\n</Custom Parameter mdf Formula>","params":[500,600,21,30,25,35,68,30]},
{"id":15,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":9,"skillId":439}],"battlerHue":0,"battlerName":"脑怪2","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":14,"dataId":76,"value":1}],"gold":0,"name":"被囚禁的脑怪","note":"<Static Level: 30>\n <Level Fluctuation: 0>\n<Passive State: 215>","params":[99999,0,10,150,10,10,10,10]}, {"id":15,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":9,"skillId":439}],"battlerHue":0,"battlerName":"脑怪2","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":14,"dataId":76,"value":1}],"gold":0,"name":"被囚禁的脑怪","note":"<Static Level: 30>\n <Level Fluctuation: 0>\n<Passive State: 215>","params":[99999,0,10,150,10,10,10,10]},
{"id":16,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":499}],"battlerHue":0,"battlerName":"安洁莉娜·莉莉丝·刘","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0}],"gold":0,"name":"测试用的怪物","note":"<Static Level: 1>\n<Level Fluctuation: 0>\n<Passive State: 215>","params":[999999,0,10,10,50,10,40,10]}, {"id":16,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":482}],"battlerHue":0,"battlerName":"安洁莉娜·莉莉丝·刘","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0}],"gold":0,"name":"测试用的怪物","note":"<Static Level: 1>\n<Level Fluctuation: 0>\n<Passive State: 215>","params":[999999,0,10,10,50,10,40,10]},
{"id":17,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":1}],"battlerHue":267,"battlerName":"魔法师女4","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0}],"gold":0,"name":"海妖女王","note":"<Static Level: 25>\n <Level Fluctuation: 0>\n<Passive State: 215>","params":[100,0,10,10,10,10,10,10]}, {"id":17,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":1}],"battlerHue":267,"battlerName":"魔法师女4","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0}],"gold":0,"name":"海妖女王","note":"<Static Level: 25>\n <Level Fluctuation: 0>\n<Passive State: 215>","params":[100,0,10,10,10,10,10,10]},
{"id":18,"actions":[],"battlerHue":0,"battlerName":"伪·五月","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":22,"dataId":1,"value":10},{"code":22,"dataId":4,"value":10}],"gold":0,"name":"被控制的南宫五月","note":"<Passive State: 215>","params":[100,2000,10,10,50,10,50,10]}, {"id":18,"actions":[],"battlerHue":0,"battlerName":"伪·五月","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0},{"code":22,"dataId":1,"value":10},{"code":22,"dataId":4,"value":10}],"gold":0,"name":"被控制的南宫五月","note":"<Passive State: 215>","params":[100,2000,10,10,50,10,50,10]},
{"id":19,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":1}],"battlerHue":0,"battlerName":"猎魔人领队","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0}],"gold":0,"name":"被控制的图坦因","note":"<Passive State: 215>","params":[100,0,10,10,10,10,10,10]}, {"id":19,"actions":[{"conditionParam1":0,"conditionParam2":0,"conditionType":0,"rating":5,"skillId":1}],"battlerHue":0,"battlerName":"猎魔人领队","dropItems":[{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0},{"dataId":1,"denominator":1,"kind":0}],"exp":0,"traits":[{"code":22,"dataId":0,"value":0.95},{"code":22,"dataId":1,"value":0.05},{"code":31,"dataId":1,"value":0}],"gold":0,"name":"被控制的图坦因","note":"<Passive State: 215>","params":[100,0,10,10,10,10,10,10]},

@ -62,7 +62,7 @@ null,
{"id":60,"expanded":true,"name":"皇宫(剧情)","order":59,"parentId":26,"scrollX":1157,"scrollY":1523.5}, {"id":60,"expanded":true,"name":"皇宫(剧情)","order":59,"parentId":26,"scrollX":1157,"scrollY":1523.5},
{"id":61,"expanded":false,"name":"大漩涡","order":60,"parentId":26,"scrollX":1109,"scrollY":1453.5}, {"id":61,"expanded":false,"name":"大漩涡","order":60,"parentId":26,"scrollX":1109,"scrollY":1453.5},
{"id":62,"expanded":false,"name":"伊娃之战","order":7,"parentId":15,"scrollX":819,"scrollY":474.5}, {"id":62,"expanded":false,"name":"伊娃之战","order":7,"parentId":15,"scrollX":819,"scrollY":474.5},
{"id":63,"expanded":true,"name":"大海(过剧情)","order":62,"parentId":23,"scrollX":826.9090909090909,"scrollY":596.7272727272727}, {"id":63,"expanded":true,"name":"大海(过剧情)","order":62,"parentId":23,"scrollX":821.0909090909091,"scrollY":590.9090909090909},
{"id":64,"expanded":true,"name":"塔纳古斯","order":12,"parentId":14,"scrollX":589.8181818181819,"scrollY":647.6363636363636}, {"id":64,"expanded":true,"name":"塔纳古斯","order":12,"parentId":14,"scrollX":589.8181818181819,"scrollY":647.6363636363636},
{"id":65,"expanded":true,"name":"阿拉曼达广场","order":13,"parentId":64,"scrollX":1088,"scrollY":1422}, {"id":65,"expanded":true,"name":"阿拉曼达广场","order":13,"parentId":64,"scrollX":1088,"scrollY":1422},
{"id":66,"expanded":true,"name":"晋升之塔外","order":14,"parentId":65,"scrollX":1040,"scrollY":636}, {"id":66,"expanded":true,"name":"晋升之塔外","order":14,"parentId":65,"scrollX":1040,"scrollY":636},

@ -101,7 +101,7 @@ null,
{"id":99,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":11,"dataId":14,"value":1.09},{"code":22,"dataId":3,"value":-0.1},{"code":22,"dataId":7,"value":-0.03},{"code":11,"dataId":18,"value":1.09}],"iconIndex":355,"maxTurns":5,"message1":"的体表被抓伤了!","message2":"的体表被抓伤了!","message3":"","message4":"","minTurns":5,"motion":0,"name":"抓伤III","note":"<Custom Apply Effect>\n user.removeState(97);\n user.removeState(98);\n user.removeState(255);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":99,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":11,"dataId":14,"value":1.09},{"code":22,"dataId":3,"value":-0.1},{"code":22,"dataId":7,"value":-0.03},{"code":11,"dataId":18,"value":1.09}],"iconIndex":355,"maxTurns":5,"message1":"的体表被抓伤了!","message2":"的体表被抓伤了!","message3":"","message4":"","minTurns":5,"motion":0,"name":"抓伤III","note":"<Custom Apply Effect>\n user.removeState(97);\n user.removeState(98);\n user.removeState(255);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},
{"id":100,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":11,"dataId":14,"value":1.12},{"code":22,"dataId":3,"value":-0.13},{"code":22,"dataId":7,"value":-0.04},{"code":11,"dataId":18,"value":1.12}],"iconIndex":356,"maxTurns":5,"message1":"的体表被抓伤了!","message2":"的体表被抓伤了!","message3":"","message4":"","minTurns":5,"motion":0,"name":"抓伤IV","note":"<Custom Apply Effect>\n user.removeState(97);\n user.removeState(98);\n user.removeState(99);\n user.removeState(255);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":100,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":11,"dataId":14,"value":1.12},{"code":22,"dataId":3,"value":-0.13},{"code":22,"dataId":7,"value":-0.04},{"code":11,"dataId":18,"value":1.12}],"iconIndex":356,"maxTurns":5,"message1":"的体表被抓伤了!","message2":"的体表被抓伤了!","message3":"","message4":"","minTurns":5,"motion":0,"name":"抓伤IV","note":"<Custom Apply Effect>\n user.removeState(97);\n user.removeState(98);\n user.removeState(99);\n user.removeState(255);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},
{"id":101,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":11,"dataId":14,"value":1.15},{"code":22,"dataId":3,"value":-0.15},{"code":22,"dataId":7,"value":-0.05},{"code":11,"dataId":18,"value":1.15}],"iconIndex":357,"maxTurns":5,"message1":"的体表被抓伤了!","message2":"的体表被抓伤了!","message3":"","message4":"","minTurns":5,"motion":0,"name":"抓伤V","note":"<Custom Apply Effect>\n user.removeState(97);\n user.removeState(98);\n user.removeState(99);\n user.removeState(100);\n user.removeState(255);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":101,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":11,"dataId":14,"value":1.15},{"code":22,"dataId":3,"value":-0.15},{"code":22,"dataId":7,"value":-0.05},{"code":11,"dataId":18,"value":1.15}],"iconIndex":357,"maxTurns":5,"message1":"的体表被抓伤了!","message2":"的体表被抓伤了!","message3":"","message4":"","minTurns":5,"motion":0,"name":"抓伤V","note":"<Custom Apply Effect>\n user.removeState(97);\n user.removeState(98);\n user.removeState(99);\n user.removeState(100);\n user.removeState(255);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},
{"id":102,"autoRemovalTiming":0,"chanceByDamage":100,"traits":[{"code":23,"dataId":2,"value":0.85}],"iconIndex":328,"maxTurns":1,"message1":"被叠加了流血!","message2":"","message3":"正在流失血液!","message4":"的流血已被治愈!","minTurns":1,"motion":0,"name":"流血","note":"<Counter Text Color: 18>\n<Counter Alignment: left>\n\n<Custom Apply Effect>\n user._bleed = user._bleed || 0;\n user.setStateCounter(102, user._bleed);\n</Custom Apply Effect>\n\n<Custom Remove Effect>\nuser._bleed = undefined;\n</Custom Remove Effect>\n\n<Custom Turn Start Effect>\nif(user._bleed > 0){\n var autobleed = user.hp/25;\n autobleed = Math.min(target.hp - 1, 4000, autobleed);\n autobleed = Math.floor(autobleed);\n user.gainHp(-autobleed);\n user.startDamagePopup();\n user._bleed -= 1;\n user.setStateCounter(102, user._bleed);\n }\n</Custom Turn Start Effect>\n\n<Custom Respond Effect>\ndebugger;\ntarget._block = target._block || 0;\nif(this.isDamage() && this.isHpEffect() && value > 0 && this.isPhysical()){\n target._defence = target._defence || 0; \nif(target._defence > 0){\n target._defence -= 1;\n target.setStateCounter(213, target._defence);\n if (target._defence <= 0){ \n target.removeState(213); \n }\n target._bleed -= 1;\n target.setStateCounter(102, user._bleed);\n if(target._bleed = 0){\n target.removeState(102);\n }\n }\nelse{\n var bleeding = target.hp/30;\n if(user.atk > target.def){\n bleeding += (user.atk - target.def)*( 1 + user.level*user.atk/2048);\n }\n bleeding -= target.block;\n bleeding = Math.max(bleeding, 0);\n bleeding = Math.min(target.hp - 1, 4000, bleeding);\n bleeding = Math.floor(bleeding);\n target.gainHp(-bleeding);\n target.startDamagePopup();\n target._bleed -= 1;\n target.setStateCounter(102, user._bleed);\n if(target._bleed = 0){\n target.removeState(102);\n }\n}\n}\n</Custom Respond Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":102,"autoRemovalTiming":0,"chanceByDamage":100,"traits":[{"code":23,"dataId":2,"value":0.85}],"iconIndex":328,"maxTurns":1,"message1":"被叠加了流血!","message2":"","message3":"正在流失血液!","message4":"的流血已被治愈!","minTurns":1,"motion":0,"name":"流血","note":"<Counter Text Color: 18>\n<Counter Alignment: left>\n\n<Custom Apply Effect>\n user._bleed = user._bleed || 0;\n user.setStateCounter(102, user._bleed);\n</Custom Apply Effect>\n\n<Custom Remove Effect>\nuser._bleed = undefined;\n</Custom Remove Effect>\n\n<Custom Action Start Effect>\n user._bleed = user._bleed || 0;\n var a = (-1)*Math.floor(user.hp*0.03);\n a = Math.max(a, -8000);\n user.gainHp(a);\n user.startDamagePopup();\n user._bleed -= 1;\n user.setStateCounter(102, user._bleed);\n if(user._bleed == 0){\n user.removeState(102);\n }\n</Custom Action Start Effect>\n\n<Custom Respond Effect>\nif(this.isDamage() && this.isHpEffect() && value > 0 && this.isPhysical()){\n target._defence = target._defence || 0; \nif(target._defence > 0){\n target._defence -= 1;\n target.setStateCounter(213, target._defence);\n if (target._defence <= 0){ \n target.removeState(213); \n }\n target._bleed -= 1;\n target.setStateCounter(102, target._bleed);\n if(target._bleed == 0){\n target.removeState(102);\n }\n }\nelse{\n target._block = target._block || 0;\n var bleeding = target.hp/30;\n if(user.atk > target.def){\n bleeding += (user.atk - target.def)*(1 + user.atk*user.level/2048);\n }\n if(target._block < 0){\n bleeding -= target._block;\n }\n var dem = target.hp - 1;\n bleeding = Math.min(bleeding, 4000, dem);\n bleeding = Math.floor(bleeding);\n target.gainHp(-bleeding);\n target.startDamagePopup();\n target._bleed -= 1;\n target.setStateCounter(102, target._bleed);\n if(target._bleed == 0){\n target.removeState(102);\n }\n}\n}\n</Custom Respond Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},
{"id":103,"autoRemovalTiming":0,"chanceByDamage":100,"traits":[],"iconIndex":0,"maxTurns":1,"message1":"","message2":"","message3":"","message4":"","minTurns":1,"motion":0,"name":"","note":"","overlay":0,"priority":50,"removeAtBattleEnd":false,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":103,"autoRemovalTiming":0,"chanceByDamage":100,"traits":[],"iconIndex":0,"maxTurns":1,"message1":"","message2":"","message3":"","message4":"","minTurns":1,"motion":0,"name":"","note":"","overlay":0,"priority":50,"removeAtBattleEnd":false,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},
{"id":104,"autoRemovalTiming":0,"chanceByDamage":100,"traits":[],"iconIndex":0,"maxTurns":1,"message1":"","message2":"","message3":"","message4":"","minTurns":1,"motion":0,"name":"","note":"","overlay":0,"priority":50,"removeAtBattleEnd":false,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":104,"autoRemovalTiming":0,"chanceByDamage":100,"traits":[],"iconIndex":0,"maxTurns":1,"message1":"","message2":"","message3":"","message4":"","minTurns":1,"motion":0,"name":"","note":"","overlay":0,"priority":50,"removeAtBattleEnd":false,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},
{"id":105,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":22,"dataId":6,"value":-0.3}],"iconIndex":365,"maxTurns":3,"message1":"的反击受到了限制!","message2":"的反击受到了限制!","message3":"","message4":"","minTurns":3,"motion":0,"name":"反击受限I","note":"<Custom Apply Effect>\n user.removeState(253);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100}, {"id":105,"autoRemovalTiming":2,"chanceByDamage":100,"traits":[{"code":22,"dataId":6,"value":-0.3}],"iconIndex":365,"maxTurns":3,"message1":"的反击受到了限制!","message2":"的反击受到了限制!","message3":"","message4":"","minTurns":3,"motion":0,"name":"反击受限I","note":"<Custom Apply Effect>\n user.removeState(253);\n</Custom Apply Effect>","overlay":0,"priority":50,"removeAtBattleEnd":true,"removeByDamage":false,"removeByRestriction":false,"removeByWalking":false,"restriction":0,"stepsToRemove":100},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save