Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Overridden character variants don't properly reflect their multipliers.

Open TheNinjaScout opened this issue 3 years ago • 0 comments

Disclaimers

  • [X] I have searched the issue tracker to check if the issue has already been reported.
  • [X] My issue happened while using mods.

What happened?

When overriding a variant of a character, its various multipliers such as ragdoll scale and attack multipliers won't have an effect on it.

<Override>
  <Charactervariant inherit="Crawler" speciesname="Crawler_large" speciestranslationoverride="Crawler" usebosshealthbar="true">
    <health vitality="1000"/>
    <ai combatstrength="160" avoidgunfire="False">
      <!--Disables latching-->
      <chooserandom>
        <clear/>
      </chooserandom>
    </ai>
    <ragdoll scalemultiplier="1.3"/>
    <attack damagemultiplier="25" rangemultiplier="1.3" impactmultiplier="1.3" />
  </Charactervariant>
</Override>

For example, everything defined in this overridden variant of the crawler (crawler_large) will work as expected, except for the ragdoll and attack multipliers. The crawler will properly have a lot more health, and also present a boss health bar, but its damage and scale will simply remain the same as its inherited's. Testcrawl.zip

Bug prevalence

Happens every time I play

Version

0.18.15.0

Which operating system did you encounter this bug on?

Windows

TheNinjaScout avatar Jul 27 '22 16:07 TheNinjaScout