Skip to content

Commit

Permalink
Added DropItemGroups for Symbols of Kundun
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Jun 9, 2024
1 parent 211d24c commit 997dd6d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Persistence/Initialization/Updates/AddKalimaPlugIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// </copyright>

using MUnique.OpenMU.DataModel.Configuration.Items;
using MUnique.OpenMU.GameLogic;

namespace MUnique.OpenMU.Persistence.Initialization.Updates;

Expand Down Expand Up @@ -83,5 +84,20 @@ private void CreateSymbolOfKundun(IContext context, GameConfiguration gameConfig
itemDefinition.MaximumItemLevel = 7;
itemDefinition.SetGuid(itemDefinition.Group, itemDefinition.Number);
gameConfiguration.Items.Add(itemDefinition);

(byte, byte)[] dropLevels = [(25, 46), (47, 65), (66, 77), (78, 84), (85, 91), (92, 107), (108, 255)];
for (byte level = 1; level <= dropLevels.Length; level++)
{
var dropItemGroup = context.CreateNew<DropItemGroup>();
dropItemGroup.SetGuid(14, 29, level);
dropItemGroup.ItemLevel = level;
dropItemGroup.PossibleItems.Add(itemDefinition);
dropItemGroup.Chance = 0.003; // 0.3 Percent
dropItemGroup.Description = $"The drop item group for Symbol of Kundun (Level {level})";
(dropItemGroup.MinimumMonsterLevel, dropItemGroup.MaximumMonsterLevel) = dropLevels[level - 1];

gameConfiguration.DropItemGroups.Add(dropItemGroup);
gameConfiguration.Maps.ForEach(map => map.DropItemGroups.Add(dropItemGroup));
}
}
}
24 changes: 24 additions & 0 deletions src/Persistence/Initialization/VersionSeasonSix/Items/Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,30 @@ private void CreateSymbolOfKundun()
itemDefinition.MaximumItemLevel = 7;
itemDefinition.SetGuid(itemDefinition.Group, itemDefinition.Number);
this.GameConfiguration.Items.Add(itemDefinition);

/* Drop Levels:
Symbol +1: Monster Level 25 ~ 46
Symbol +2: Monster Level 47 ~ 65
Symbol +3: Monster Level 66 ~ 77
Symbol +4: Monster Level 78 ~ 84
Symbol +5: Monster Level 85 ~ 91
Symbol +6: Monster Level 92 ~ 107
Symbol +7: Monster Level 108+
*/
(byte, byte)[] dropLevels = [(25, 46), (47, 65), (66, 77), (78, 84), (85, 91), (92, 107), (108, 255)];
for (byte level = 1; level <= dropLevels.Length; level++)
{
var dropItemGroup = this.Context.CreateNew<DropItemGroup>();
dropItemGroup.SetGuid(14, 29, level);
dropItemGroup.ItemLevel = level;
dropItemGroup.PossibleItems.Add(itemDefinition);
dropItemGroup.Chance = 0.003; // 0.3 Percent
dropItemGroup.Description = $"The drop item group for Symbol of Kundun (Level {level})";
(dropItemGroup.MinimumMonsterLevel, dropItemGroup.MaximumMonsterLevel) = dropLevels[level - 1];

this.GameConfiguration.DropItemGroups.Add(dropItemGroup);
BaseMapInitializer.RegisterDefaultDropItemGroup(dropItemGroup);
}
}

private void CreateLifeStone()
Expand Down

0 comments on commit 997dd6d

Please sign in to comment.