Skip to content
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

Feat: Crafting Calculation Improvements #661

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
399 changes: 295 additions & 104 deletions Arrowgene.Ddon.GameServer/Characters/CraftManager.cs

Large diffs are not rendered by default.

196 changes: 2 additions & 194 deletions Arrowgene.Ddon.GameServer/Handler/CraftGetCraftSettingHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Arrowgene.Ddon.GameServer.Characters;
using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Shared.Entity.PacketStructure;
using Arrowgene.Ddon.Shared.Entity.Structure;
Expand Down Expand Up @@ -27,199 +28,6 @@ public class CraftGetCraftSettingHandler : GameStructurePacketHandler<C2SCraftGe
}
};

/// <summary>
/// TODO: Extract to asset
/// </summary>
private static readonly List<CDataRegisteredLegendPawnInfo> CraftMasterLegendPawnInfoList = new List<CDataRegisteredLegendPawnInfo>
{
new CDataRegisteredLegendPawnInfo
{
PawnId = 308,
PointType = WalletType.GoldenGemstones,
RentalCost = 1,
Unk3 = 10000004,
Name = "Many",
CraftRank = 100,
PawnCraftSkillList = new List<CDataPawnCraftSkill>
{
new CDataPawnCraftSkill
{
Type = CraftSkillType.ProductionSpeed,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.EquipmentEnhancement,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.EquipmentQuality,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.ConsumableQuantity,
Level = 99
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformance,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.ConsumableProductionIsAlwaysGreatSuccess,
Level = 1
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CreatingHighQualityEquipmentIsAlwaysGreatSuccess,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformanceEffectUpFactor1,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformanceEffectUpFactor2,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.UnknownEffect10,
Level = 0
}
}
},
new CDataRegisteredLegendPawnInfo
{
PawnId = 309,
PointType = WalletType.GoldenGemstones,
RentalCost = 1,
Unk3 = 10000006,
Name = "Qualio",
CraftRank = 100,
PawnCraftSkillList = new List<CDataPawnCraftSkill>
{
new CDataPawnCraftSkill
{
Type = CraftSkillType.ProductionSpeed,
Level = 99
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.EquipmentEnhancement,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.EquipmentQuality,
Level = 99
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.ConsumableQuantity,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformance,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.ConsumableProductionIsAlwaysGreatSuccess,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CreatingHighQualityEquipmentIsAlwaysGreatSuccess,
Level = 1
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformanceEffectUpFactor1,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformanceEffectUpFactor2,
Level = 1
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.UnknownEffect10,
Level = 0
}
}
},
new CDataRegisteredLegendPawnInfo
{
PawnId = 310,
PointType = WalletType.GoldenGemstones,
RentalCost = 1,
Unk3 = 10000002,
Name = "Arms",
CraftRank = 100,
PawnCraftSkillList = new List<CDataPawnCraftSkill>
{
new CDataPawnCraftSkill
{
Type = CraftSkillType.ProductionSpeed,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.EquipmentEnhancement,
Level = 99
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.EquipmentQuality,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.ConsumableQuantity,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformance,
Level = 99
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.ConsumableProductionIsAlwaysGreatSuccess,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CreatingHighQualityEquipmentIsAlwaysGreatSuccess,
Level = 0
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformanceEffectUpFactor1,
Level = 1
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.CostPerformanceEffectUpFactor2,
Level = 1
},
new CDataPawnCraftSkill
{
Type = CraftSkillType.UnknownEffect10,
Level = 0
}
}
}
};

/// <summary>
/// TODO: Extract to asset
/// </summary>
Expand Down Expand Up @@ -382,7 +190,7 @@ public override void Handle(GameClient client, StructurePacket<C2SCraftGetCraftS
ReasonableCraftLv = 5,
CraftItemLv = 15,
CreateCountMax = Server.Setting.GameLogicSetting.CraftConsumableProductionTimesMax,
CraftMasterLegendPawnInfoList = CraftMasterLegendPawnInfoList,
CraftMasterLegendPawnInfoList = CraftManager.CraftMasterLegendPawnInfoList,
Unk1 = 49,
Unk2 = 30,
RefiningMaterialInfoList = RefiningMaterialInfoList
Expand Down
Loading
Loading