mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	no more unnecessary function overriding
This commit is contained in:
		
							parent
							
								
									bbc5effe88
								
							
						
					
					
						commit
						24ed24989f
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -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();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue