no more unnecessary function overriding

This commit is contained in:
c0ffee 2024-04-25 12:02:11 -07:00
parent bbc5effe88
commit 24ed24989f
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ namespace Rimworld_Animations
}
protected override Dictionary<int, Graphic> GraphicVariantsFor(Pawn pawn)
protected Dictionary<int, Graphic> GraphicBodyTypeVariantsFor(Pawn pawn)
{
if (props.bodyTypeVariantsDef == null)
@ -51,7 +51,7 @@ namespace Rimworld_Animations
{
if (variants == null
|| this.tree.pawn.story?.bodyType != bodyType)
variants = GraphicVariantsFor(this.tree.pawn);
variants = GraphicBodyTypeVariantsFor(this.tree.pawn);
//call this in case variants wasn't set, and there is no graphic bodytype variants appropriate; it'll set variants based on default
base.EnsureMaterialsInitialized();

View file

@ -20,7 +20,7 @@ namespace Rimworld_Animations
}
protected override Dictionary<int, Graphic> GraphicVariantsFor(Pawn pawn)
protected Dictionary<int, Graphic> GraphicHediffVariantsFor(Pawn pawn)
{
if (props.hediffVariants == null)
@ -61,7 +61,7 @@ namespace Rimworld_Animations
&& hediffs.Any((Hediff hediff) => hediff.def == curHediff)))
{
//do graphicvariantsfor
variants = GraphicVariantsFor(this.tree.pawn);
variants = GraphicHediffVariantsFor(this.tree.pawn);
}
//call this in case variants wasn't set, and there is no graphic hediff variants appropriate; it'll set variants based on default