Finding the Resource type of an item.
Just looking for how to find a resource type here.
I'm trying to add magic resistances to platemail.
I've been trying to do it judging by some other scripts, and this is what I have although it's obviously wrong:
This gives me the error:
Server.Items.PlateChest does not contain a definition for 'CraftResource'..
I had assumed the definition for it was somewhere in one of the includes, but I've tried all the ones in BaseArmor.cs and I'm still having this error.
I'm just trying to get it to work with a switch statement. Almost exactly like how it works in BaseArmor.cs with determining Armor Rating.
Just looking for how to find a resource type here.
I'm trying to add magic resistances to platemail.
I've been trying to do it judging by some other scripts, and this is what I have although it's obviously wrong:
Code:
private CraftResource m_Resource;
m_Resource = this.CraftResource;
This gives me the error:
Server.Items.PlateChest does not contain a definition for 'CraftResource'..
I had assumed the definition for it was somewhere in one of the includes, but I've tried all the ones in BaseArmor.cs and I'm still having this error.
I'm just trying to get it to work with a switch statement. Almost exactly like how it works in BaseArmor.cs with determining Armor Rating.