Library Of Ruina

Library Of Ruina

Library of Runia Workshop
Custom Head WorkShop_TEST
了解更多
Enkephalin 1 2021 年 12 月 29 日 下午 11:25
Best way to convert HP Damage to Stagger Damage?
Been racking my brain for this one function either as a passive or a page ability. I've only picked up the programming language quite recently.
< >
正在显示第 1 - 2 条,共 2 条留言
Mega 33 2022 年 1 月 6 日 下午 9:02 
Looking through the code of Big and Might Be Bad Wolf's EGO card; you could probably edit the code to fit as a Passive ability or attribute to a specific Dice on a page by using:
public override void BeforeRollDice(BattleDiceBehavior behavior) => behavior.ApplyDiceStatBonus(new DiceStatBonus() { dmgRate = -9999 });
Removing "breakRate" from the original code keeps the Stagger damage dealt, but keeping the "dmgRate = -9999" means the dice played will do no HP damage.
Enkephalin 1 2022 年 1 月 9 日 下午 9:16 
引用自 Mega
Looking through the code of Big and Might Be Bad Wolf's EGO card; you could probably edit the code to fit as a Passive ability or attribute to a specific Dice on a page by using:
public override void BeforeRollDice(BattleDiceBehavior behavior) => behavior.ApplyDiceStatBonus(new DiceStatBonus() { dmgRate = -9999 });
Removing "breakRate" from the original code keeps the Stagger damage dealt, but keeping the "dmgRate = -9999" means the dice played will do no HP damage.

thank you, i'll give this a shot
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50