Open sumghai opened 4 years ago
If the Forsaken ammo is functionally identical to various core ammo sets, would it be more practical to set those respective ammos as the Parent, rather than using the generic ammo parent? If it works, it would prevent any need to have to manually adjust the stats of the Forsaken-specific ammo in the event that the core ammo stats were tweaked.
I tried using non-abstract generic CE projectile defs as the Parents for the Forsaken projectiles, in the hopes that stats would be inherited as you suggested, but this resulted in errors in the debug log - probably because the game doesn't like inheriting from non-abstract defs:
I'll see if there are other ways I can optimize ammo def inheritance, but my experience with other conditionally-patched mod-unique ammo suggests this would be highly unlikely.
The most optimization I can do ammo-wise would be to have the Forsaken arrow ammo item inherit from the generic CE AmmoGreatArrowBase
def, although stats still need to be explicitly defined in accordance with an actual steel great arrow (3d46dac).
I'll take a look at some of the other problems now.
Additions
References
Reasoning
thingDef
instead ofThingDef
, which is incompatible with CE'sPatchOperationMakeGunCECompatible
Testing
Check tests you have performed: