Lichtblitz
Sorceror
Allowing to set body and bodymod ingame
Changes are to Body.cs.
Add the Parseable attribute to the Body struct:
Add the following method to the Body struct:
The property "BodyValue" is not necessary any more since it only provided a work-around. I think it could be removed with this mod.
Changes are to Body.cs.
Add the Parseable attribute to the Body struct:
PHP:
[Parsable]
public struct Body
{
Add the following method to the Body struct:
PHP:
public static Body Parse(string value)
{
//no need to try and catch - Int32.Parse already throws meaningful exception
return new Body( Int32.Parse( value ) );
}
The property "BodyValue" is not necessary any more since it only provided a work-around. I think it could be removed with this mod.