Exactly where do I go to change the min/max properties put on armor, weapons, etc. crafted from a runic tool?
I checked BaseRunicTool.cs and found this:
int attributeCount = Utility.RandomMinMax(attrs.RunicMinAttributes, attrs.RunicMaxAttributes);
int min = attrs.RunicMinIntensity;
int max = attrs.RunicMaxIntensity;
It's contained within where the tool applies the attributes. I just can't find where to edit "RunicMinAttributes" and "RunicMaxAttributes" for specific tools.
I know how it applies them, but I don't know how to change the maximum number of properties a tool applies. For example, Barbed Runic Sewing Kit is supposed to apply 4 or 5 properties. Let's say I wanted to change it to apply 5 properties always.
That I am not sure, I am looking though, it kind of looks like it may be related to the resource used possibly refrenced in this section
public override void AddNameProperty(ObjectPropertyList list)
{
string v = " ";
if (!CraftResources.IsStandard(this.Resource))
{
int num = CraftResources.GetLocalizationNumber(this.Resource);
if (num > 0)
v = String.Format("#{0}", num);
else
v = CraftResources.GetName(this.Resource);
}
I will look more in a little while. Sorry I wasnt more help. Maybe looking at where someone added custom resources will help. Someone who knows more about it should be on soon.
version 1.0 *DISCLAIMER!!!* This tutorial is for guidance on adding custom leather. This is not a simple process nor could it be considered easy. If your looking for a drag and drop solution this is not for you. If you're new to C# this is not for you. If you're looking for a little help or want...
www.servuo.com
This is what defines a Leathers bonuses when it is used to craft armor.
Barbed Leather adds 2 phsyical resistance, 1 fire resistance, 2 cold resistance, 3 poison resistance and 4 energy resistance to armour when barbed leather is used to craft it.
RunicMinAttributes is the number of minimum attributes the armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
RunicMaxAttributes is the number of maximum attributes the armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
RunicMinIntensity is the minimum percent intensity of the attributes that armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
RunicMaxIntensity is the maximum percent intensity of the attributes that armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
So a barbed runic can get 5 attributes at 100% (really rare tho)
That I am not sure, I am looking though, it kind of looks like it may be related to the resource used possibly refrenced in this section
public override void AddNameProperty(ObjectPropertyList list)
{
string v = " ";
if (!CraftResources.IsStandard(this.Resource))
{
int num = CraftResources.GetLocalizationNumber(this.Resource);
if (num > 0)
v = String.Format("#{0}", num);
else
v = CraftResources.GetName(this.Resource);
}
I will look more in a little while. Sorry I wasnt more help. Maybe looking at where someone added custom resources will help. Someone who knows more about it should be on soon.
version 1.0 *DISCLAIMER!!!* This tutorial is for guidance on adding custom leather. This is not a simple process nor could it be considered easy. If your looking for a drag and drop solution this is not for you. If you're new to C# this is not for you. If you're looking for a little help or want...
www.servuo.com
This is what defines a Leathers bonuses when it is used to craft armor.
Barbed Leather adds 2 phsyical resistance, 1 fire resistance, 2 cold resistance, 3 poison resistance and 4 energy resistance to armour when barbed leather is used to craft it.
RunicMinAttributes is the number of minimum attributes the armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
RunicMaxAttributes is the number of maximum attributes the armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
RunicMinIntensity is the minimum percent intensity of the attributes that armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
RunicMaxIntensity is the maximum percent intensity of the attributes that armor will recieve when a barbed runic sewing kit is used to crafting leather armor.
So a barbed runic can get 5 attributes at 100% (really rare tho)
Yeah, that's how it should work, but I tested and burned a few items with very few mods. I got 1 pair of arms with two mods from a brsk, so something is screwed up.
I was asking in case someone knew where to go. I think I can figure it out if I know where to start.
Its not in that script but one that comes with the owltr download, I cant think of which one it is right now but it has all the ores and leathers listed within the script about one third the way down. I did this on my server and I can find it later when I get home if no one finds it by then.
In not modified repo,check ResourceInfo.cs,here you have number of properties,and intensity,easy to change.
Here are all the runics,sewing kits,hammers,saws,fletchers,etc...
Intensity = 50 is low intensity,200 is uber intensity,then look at this (shadow iron example):
This is the script I was thinking of, there is the min/max attributes allowed on an item created with that material type, and the intensity is how powerful those attributes will add up to be. Now in your baserunictool.cs you can alter which attributes can be allowed on which items and exactly what kind of range you want them to fall in (or in my case I have a lot of custom attributes which I had to go in and add those attributes to be allowed to be crafted on items that were made with a certain material type)