From 833cdaf85d9e65dafb383efc0574dd82abfaf63b Mon Sep 17 00:00:00 2001 From: pheonix99 Date: Thu, 4 May 2023 16:47:53 -0400 Subject: [PATCH] 1.4.14 --- Readme.md | 4 +++- TomeOfTheFirebird/Bugfixes/FixExtraHitsOnProcs.cs | 4 ++-- TomeOfTheFirebird/Info.json | 2 +- TomeOfTheFirebird/New Content/Spells/ChainsOfFire.cs | 5 ++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Readme.md b/Readme.md index 6958635..18b1c6f 100644 --- a/Readme.md +++ b/Readme.md @@ -13,10 +13,12 @@ NOW REQUIRES TabletopTweaks Core Module and ModMenu ## Changelog -### +### 1.4.14 Added Mass Fly +Adjusted + ### 1.4.13 diff --git a/TomeOfTheFirebird/Bugfixes/FixExtraHitsOnProcs.cs b/TomeOfTheFirebird/Bugfixes/FixExtraHitsOnProcs.cs index 8102ec6..1c5be08 100644 --- a/TomeOfTheFirebird/Bugfixes/FixExtraHitsOnProcs.cs +++ b/TomeOfTheFirebird/Bugfixes/FixExtraHitsOnProcs.cs @@ -31,11 +31,11 @@ public static void FixFirebrand() { Main.TotFContext.Logger.Log("Fixing Firebrand"); BlueprintBuff firebrandBuff = BlueprintTools.GetBlueprint("c6cc1c5356db4674dbd2be20ea205c86"); - if (firebrandBuff.Components.OfType().Any()) + if (firebrandBuff.Components.OfType().Any()) { Main.TotFContext.Logger.Log("Removing base weapon damage effect"); //firebrandBuff.Components.Remove(x => x is AddInitiatorAttackWithWeaponTrigger); - BuffConfigurator editer = BuffConfigurator.For(firebrandBuff.AssetGuidThreadSafe).RemoveComponents(x => x is AddInitiatorAttackWithWeaponTrigger); + BuffConfigurator editer = BuffConfigurator.For(firebrandBuff.AssetGuidThreadSafe).RemoveComponents(x => x is AdditionalDiceOnAttack); editer.AddComponent(new ContextWeaponCategoryExtraDamageDice() { ToAllAttacks = true, diff --git a/TomeOfTheFirebird/Info.json b/TomeOfTheFirebird/Info.json index 76503aa..c70c569 100644 --- a/TomeOfTheFirebird/Info.json +++ b/TomeOfTheFirebird/Info.json @@ -2,7 +2,7 @@ "Id": "TomeOfTheFirebird", "DisplayName": "Tome Of The Firebird", "Author": "pheonix99", - "Version": "1.4.13", + "Version": "1.4.14", "ManagerVersion": "0.21.3", "AssemblyName": "TomeOfTheFirebird.dll", "EntryMethod": "TomeOfTheFirebird.Main.Load", diff --git a/TomeOfTheFirebird/New Content/Spells/ChainsOfFire.cs b/TomeOfTheFirebird/New Content/Spells/ChainsOfFire.cs index edca037..19d46fa 100644 --- a/TomeOfTheFirebird/New Content/Spells/ChainsOfFire.cs +++ b/TomeOfTheFirebird/New Content/Spells/ChainsOfFire.cs @@ -28,7 +28,7 @@ public static void BuildSpell() Sprite ChainsOfFireSprite = FireSnake.Icon; BlueprintProjectile ScorchingRayBeam = BlueprintTools.GetBlueprint("8cc159ce94d29fe46a94b80ce549161f"); - AbilityConfigurator ChainsMaker = MakerTools.MakeSpell("ChainsOfFire", "Chains Of Fire", $"This spell functions like chain lightning, except as noted above, and the spell deals fire damage instead of electricity damage. \n \nChain Lightning: {ChainLightning.Description}", ChainsOfFireSprite, SpellSchool.Evocation, LocalizedStrings.RefHalf, new Kingmaker.Localization.LocalizedString()); + AbilityConfigurator ChainsMaker = MakerTools.MakeSpell("ChainsOfFire", "Chains Of Fire", $"This spell functions like chain lightning, except as noted above, and the spell deals fire damage instead of electricity damage. \n \nChain Lightning: {ChainLightning.Description}", ChainsOfFireSprite, SpellSchool.Evocation, LocalizedStrings.RefHalf, new Kingmaker.Localization.LocalizedString(), true, SpellDescriptor.Fire); ChainsMaker.SetRange(AbilityRange.Medium); ChainsMaker.AllowTargeting(enemies: true); ChainsMaker.SetSpellResistance(true); @@ -54,8 +54,7 @@ public static void BuildSpell() }); } } - ChainsMaker.SetSpellDescriptor(SpellDescriptor.Fire); - //ActionsBuilder chainAct = + ChainsMaker.AddAbilityEffectRunAction(ActionsBuilder.New().DealDamage(new Kingmaker.RuleSystem.Rules.Damage.DamageTypeDescription() { Energy = Kingmaker.Enums.Damage.DamageEnergyType.Fire, Type = Kingmaker.RuleSystem.Rules.Damage.DamageType.Energy }, new ContextDiceValue() { DiceType = Kingmaker.RuleSystem.DiceType.D6, DiceCountValue = new Kingmaker.UnitLogic.Mechanics.ContextValue() { ValueType = ContextValueType.Rank }, BonusValue = new Kingmaker.UnitLogic.Mechanics.ContextValue() { ValueType = ContextValueType.Shared } }, halfIfSaved: true, isAoE: true),savingThrowType: Kingmaker.EntitySystem.Stats.SavingThrowType.Reflex);