BL Coding Setting Armor Values via C#

正在查看此主题的用户

Ravarion

Recruit
I was thinking of making a mod that would tweak armor values by a set amount. Looking at ArmorComponent.ArmArmor, I think it's the value that the armor gives to the wearer's arm, however, it looks like armor values are protected.

Anyone know if I'm looking in the right spot or know of a workaround?
 
Any way you can call the constructor? If not, you might want to inherit from the class and see what you can access by that. (Haven't looked at modding yet, but I'm very interested)
 
点赞 0
The constructor only takes an ItemComponent for it's constructor, so it doesn't look like I can pass armor values in that way.
 
点赞 0
ItemComponent might be the super-class of ArmorComponent, so you could pass an ArmorComponent if I'm not mistaken ?
 
点赞 0
As above, can you chase the inheritance tree up to the point where you can spoof the value in a constructor? It may be a combination of xml and c#...
 
点赞 0
后退
顶部 底部