-
Notifications
You must be signed in to change notification settings - Fork 473
Remove drop level gap condition for jewels #697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -433,7 +433,23 @@ private void AddRandomExcOptions(Item item) | |
| else | ||
| { | ||
| var monsterLevel = (int)monster[Stats.Level]; | ||
| var filteredPossibleItems = selectedGroup.PossibleItems.Where(it => it.DropLevel == 0 || ((it.DropLevel <= monsterLevel) && (it.DropLevel > monsterLevel - 12))).ToArray(); | ||
| List<ItemDefinition> filteredPossibleItems; | ||
|
|
||
| if (selectedGroup.ItemType == SpecialItemType.Jewel) | ||
| { | ||
| filteredPossibleItems = [.. selectedGroup.PossibleItems.Where(it => it.DropLevel <= monsterLevel)]; | ||
|
|
||
| if (monsterLevel > 66) | ||
| { | ||
| // Jewel of Chaos doesn't drop after a certain monster level | ||
| filteredPossibleItems.RemoveAll(it => it.Group == 12 && it.Number == 15); | ||
| } | ||
| } | ||
| else | ||
| { | ||
| filteredPossibleItems = [.. selectedGroup.PossibleItems.Where(it => it.DropLevel == 0 || (it.DropLevel <= monsterLevel && it.DropLevel > monsterLevel - 12))]; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good question... I'm not sure if it is the correct value for all items. This would mean that Items can drop up to Level 5. If I remember correctly, this wasn't possible for all items. E.g. leather boots and gloves dropped until level 5, while other armor parts were limited to 3 or 4. |
||
| } | ||
|
|
||
| return this.GenerateItemDrop(selectedGroup, filteredPossibleItems); | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ namespace MUnique.OpenMU.Persistence.Initialization.Version075.Items; | |
| /// <summary> | ||
| /// Initializer for pets. | ||
| /// </summary> | ||
| public class Pets : InitializerBase | ||
| public class Pets : Jewels | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks strange. Can you move the |
||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="Pets"/> class. | ||
|
|
@@ -29,9 +29,12 @@ public Pets(IContext context, GameConfiguration gameConfiguration) | |
| /// <inheritdoc /> | ||
| public override void Initialize() | ||
| { | ||
| this.CreatePet(0, "Guardian Angel", 23, (Stats.DamageReceiveDecrement, 0.8f, AggregateType.Multiplicate), (Stats.MaximumHealth, 50f, AggregateType.AddRaw)); | ||
| this.CreatePet(1, "Imp", 28, (Stats.AttackDamageIncrease, 1.3f, AggregateType.Multiplicate)); | ||
| this.CreatePet(2, "Horn of Uniria", 25); | ||
| var angel = this.CreatePet(0, "Guardian Angel", 23, (Stats.DamageReceiveDecrement, 0.8f, AggregateType.Multiplicate), (Stats.MaximumHealth, 50f, AggregateType.AddRaw)); | ||
| this.AddItemToJewelItemDrop(angel); | ||
| var imp = this.CreatePet(1, "Imp", 28, (Stats.AttackDamageIncrease, 1.3f, AggregateType.Multiplicate)); | ||
| this.AddItemToJewelItemDrop(imp); | ||
| var uniria = this.CreatePet(2, "Horn of Uniria", 25); | ||
| this.AddItemToJewelItemDrop(uniria); | ||
sven-n marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| private ItemDefinition CreatePet(byte number, string name, int dropLevelAndLevelRequirement, params (AttributeDefinition, float, AggregateType)[] basePowerUps) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.