Here you have it Colibri, my submition for an armor upgrade system. (code in attachment)
Some minor additional instructions needed
add basic getters and setters to BaseArmor.cs
Code: Select all
public AosAttributes getAttributes()
{
return this.m_AosAttributes;
}
public void setAttributes(AosAttributes newAttributes)
{
this.m_AosAttributes = newAttributes;
}
public AosArmorAttributes getArmorAttributes()
{
return m_AosArmorAttributes;
}
public void setArmorAttributes(AosArmorAttributes newAttributes)
{
this.m_AosArmorAttributes = newAttributes;
}
also, ive used silver as primary cost to the crafted gems, you may want to use tokens or ElvenNotes
in DefEpic.cs (in my code, privided as attachment)
the entry example below has a cost of 25 SIlver
Code: Select all
epicIngredients(index);
index = AddCraft( typeof( EpicGemOfTheElves), "Epic Gems", "Gem of the Elves", 110.5, 115.5, typeof( Silver ), 1044572, 25, 1044253 );
Code: Select all
/// <summary>
/// Since i call this after every entry here you can define the 'standard' cost of an epic gem
/// you can alway add more under individual entries in the menu by hand, for the very special customs.
/// </summary>
/// <param name="index"></param>
private void epicIngredients(int index)
{
AddRes( index, typeof( rawEpicGem ), "Unworked epic gems", 1, "Insufficient materials" );
AddRes( index, typeof( IronIngot ), 1044036, 10, 1044037 );
AddRes( index, typeof( MithrilIngot ), "a single bar of Mithril", 1, "Insufficient materials" );
AddSkill( index, SkillName.Magery, 110.5, 115.5 );
}
The Quest
Somewhere in trammel is an epic tinker, a crafter of enhancement gems that add powerfull abilities to armors. But before he will show you, and provide the necicary tools (a toolkit) you must defeat three challengers, a knight, an archer, and a mage, of considerable power.
once all three are defeated, Bob the epic tinker will hand you the tools. now to gather the parts for crafting ...
Crafting
works like normal crafting, the tool has a menu with items to craft. when crafted you will have a gem that can be applied like an arcane gem, but works on all materials and armor types, as long as it *is* armor.
Most gems ive supplied as examples give a mix of abilities to an armor, for example, a "gem of the dwarves" wil add self repair, strength and stamina bonusses.