DK Master Tree Finishup#766
Draft
ze-dom wants to merge 5 commits intoMUnique:masterfrom
Draft
Conversation
ze-dom
commented
May 2, 2026
Comment on lines
-373
to
383
| var baseSkill = skillEntry.GetBaseSkill(); | ||
|
|
||
| if (player.GameContext.PlugInManager.GetStrategy<short, IAreaSkillPlugIn>(baseSkill.Number) is { } strategy) | ||
| if (player.GameContext.PlugInManager.GetStrategy<short, IAreaSkillPlugIn>(skillEntry.Skill.Number) is { } strategy) | ||
| { | ||
| await strategy.AfterTargetGotAttackedAsync(player, target, skillEntry, targetAreaCenter, hitInfo).ConfigureAwait(false); | ||
| return; | ||
| } | ||
|
|
||
| var baseSkill = skillEntry.GetBaseSkill(); | ||
| if (player.GameContext.PlugInManager.GetStrategy<short, IAreaSkillPlugIn>(baseSkill.Number) is { } baseSkillStrategy) | ||
| { | ||
| await baseSkillStrategy.AfterTargetGotAttackedAsync(player, target, skillEntry, targetAreaCenter, hitInfo).ConfigureAwait(false); | ||
| } |
Contributor
Author
There was a problem hiding this comment.
Added for TwistingSlashMasterySkillPlugIn.cs.
Another option is to change the Key there to the base Twisting Slash skill and keep this as before.
ze-dom
commented
May 2, 2026
ze-dom
commented
May 2, 2026
| var magicEffect = new MagicEffect(TimeSpan.FromSeconds(2), stunEffectDefinition, [new MagicEffect.ElementWithTarget(powerUp, Stats.IsStunned)]); | ||
| await attackable.MagicEffectList.AddEffectAsync(magicEffect).ConfigureAwait(false); | ||
| } | ||
|
|
ze-dom
commented
May 2, 2026
| { | ||
| return item.ItemSlot >= InventoryConstants.HelmSlot && item.ItemSlot <= InventoryConstants.BootsSlot; | ||
| } | ||
|
|
ze-dom
commented
May 2, 2026
| result.AttributeCombinations.Add(this.CreateAttributeRelationship(Stats.ComboBonus, 0.5f, Stats.TotalEnergy)); | ||
|
|
||
| result.AttributeCombinations.Add(this.CreateConditionalRelationship(Stats.AttackSpeedAny, Stats.IsOneHandedSwordEquipped, Stats.WeaponMasteryAttackSpeed)); | ||
| result.AttributeCombinations.Add(this.CreateConditionalRelationship(Stats.DoubleDamageChance, Stats.IsSpearEquipped, Stats.SpearMasteryDoubleDamageChance)); |
ze-dom
commented
May 2, 2026
| magicEffect.StopByDeath = true; | ||
| magicEffect.Duration = this.Context.CreateNew<PowerUpDefinitionValue>(); | ||
| magicEffect.Duration.ConstantValue.Value = 60f; | ||
| magicEffect.Duration.MaximumValue = 180f; |
ze-dom
commented
May 2, 2026
| var boostPerPartyMember = this.Context.CreateNew<AttributeRelationship>(); | ||
| boostPerPartyMember.InputAttribute = Stats.NearbyPartyMemberCount.GetPersistent(this.GameConfiguration); | ||
| boostPerPartyMember.InputOperator = InputOperator.Multiply; | ||
| boostPerPartyMember.InputOperand = 1f / 100; |
ze-dom
commented
May 2, 2026
|
|
||
| healthPowerUpDefinition.Boost = this.Context.CreateNew<PowerUpDefinitionValue>(); | ||
| healthPowerUpDefinition.Boost.ConstantValue.Value = 0.12f; | ||
| healthPowerUpDefinition.Boost.MaximumValue = 2f; |
ze-dom
commented
May 2, 2026
Comment on lines
+71
to
+81
| // one percent per party member in view | ||
| var boostPerPartyMember = this.Context.CreateNew<AttributeRelationship>(); | ||
| boostPerPartyMember.InputAttribute = Stats.NearbyPartyMemberCount.GetPersistent(this.GameConfiguration); | ||
| boostPerPartyMember.InputOperator = InputOperator.Multiply; | ||
| boostPerPartyMember.InputOperand = 1f / 100; | ||
|
|
||
| var manaPowerUpDefinition = this.Context.CreateNew<PowerUpDefinition>(); | ||
| magicEffect.PowerUpDefinitions.Add(manaPowerUpDefinition); | ||
| manaPowerUpDefinition.TargetAttribute = Stats.SwellLifeManaIncrease.GetPersistent(this.GameConfiguration); | ||
| manaPowerUpDefinition.Boost = this.Context.CreateNew<PowerUpDefinitionValue>(); | ||
| manaPowerUpDefinition.Boost.RelatedValues.Add(boostPerPartyMember); |
ze-dom
commented
May 2, 2026
| skill.SkipElementalModifier = true; | ||
| skill.MagicEffectDef = this.CreateEffect(ElementalType.Ice, MagicEffectNumber.Cold, Stats.IsIced, 10); | ||
| return; | ||
| } |
ze-dom
commented
May 2, 2026
| { | ||
| skill.ElementalModifierTarget = Stats.IceResistance.GetPersistent(this.GameConfiguration); | ||
| skill.SkipElementalModifier = true; | ||
| skill.MagicEffectDef = this.CreateEffect(ElementalType.Ice, MagicEffectNumber.Cold, Stats.IsIced, 10); |
ze-dom
commented
May 2, 2026
| /// The cold effect caused by chain drive and strike of destruction skills. Like <see cref="Iced"/>, it also slows down movement. | ||
| /// </summary> | ||
| Cold = 0x56, | ||
|
|
ze-dom
commented
May 2, 2026
ze-dom
commented
May 6, 2026
Comment on lines
-71
to
-74
| if (multiValues == 0 && this.Elements.All(e => e.AggregateType != AggregateType.Multiplicate)) | ||
| { | ||
| multiValues = 1; | ||
| } |
Contributor
Author
There was a problem hiding this comment.
This is an impossible situation since in line 66 an enumerable with "1" is concatenated.
ze-dom
commented
May 6, 2026
| { | ||
| await this.InvokeViewPlugInAsync<IItemDurabilityChangedPlugIn>(p => p.ItemDurabilityChangedAsync(randomArmorItem, false)).ConfigureAwait(false); | ||
| } | ||
| } |
Contributor
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




To-do
Developments
Stats.PollutionMoveTargetChanceandStats.StunChancefor the more generic and descriptiveStats.MasteryMoveTargetChanceandStats.MasteryStunChance, which can serve several classesBugfixes
SkillsInitizalizerBase.CreateEffect()(bug introduced in previous PR)