-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
723 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 28 additions & 2 deletions
30
TomeOfTheFirebird/New Components/ContextDamageValueEnergyDamageDice.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,32 @@ | ||
namespace TomeOfTheFirebird.New_Components | ||
using Kingmaker.PubSubSystem; | ||
using Kingmaker.RuleSystem.Rules; | ||
using Kingmaker.RuleSystem.Rules.Damage; | ||
using Kingmaker.UnitLogic; | ||
using Kingmaker.UnitLogic.Mechanics; | ||
|
||
namespace TomeOfTheFirebird.New_Components | ||
{ | ||
class ContextDamageValueEnergyDamageDice | ||
class ContextDamageValueEnergyDamageDice : UnitFactComponentDelegate, IInitiatorRulebookHandler<RuleCalculateWeaponStats>, IRulebookHandler<RuleCalculateWeaponStats>, ISubscriber, IInitiatorRulebookSubscriber | ||
{ | ||
public ContextDiceValue Value; | ||
|
||
public DamageTypeDescription damageType; | ||
|
||
public void OnEventAboutToTrigger(RuleCalculateWeaponStats evt) | ||
{ | ||
evt.DamageDescription.Add(new DamageDescription() | ||
{ | ||
Dice = new Kingmaker.RuleSystem.DiceFormula(Value.DiceCountValue.Calculate(this.Fact.MaybeContext), Value.DiceType), | ||
TypeDescription = damageType, | ||
Bonus = Value.BonusValue.Calculate(this.Fact.MaybeContext), | ||
|
||
}); | ||
|
||
} | ||
|
||
public void OnEventDidTrigger(RuleCalculateWeaponStats evt) | ||
{ | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.