@@ -89,8 +89,8 @@ private static void PolytopiaSpriteRenderer_ForceUpdateMesh(PolytopiaSpriteRende
8989 if ( tile != null )
9090 {
9191 __instance . Sprite = GetSpriteForTile (
92- __instance . Sprite ,
93- tile ,
92+ __instance . Sprite ,
93+ tile ,
9494 EnumCache < Polytopia . Data . TerrainData . Type > . GetName ( tile . data . terrain )
9595 ) ;
9696 }
@@ -179,7 +179,7 @@ private static void UIWorldPreview_SetPreview(UIWorldPreview __instance) // TODO
179179 foreach ( var enumValue in Enum . GetValues < ResourceData . Type > ( ) )
180180 {
181181 string resource = EnumCache < Polytopia . Data . ResourceData . Type > . GetName ( ( ResourceData . Type ) enumValue ) . ToLower ( ) ;
182- if ( tile . Resource . sprite . name . Contains ( resource ) )
182+ if ( tile . Resource . sprite . name . Contains ( resource ) )
183183 {
184184 resourceType = resource ;
185185 break ;
@@ -210,14 +210,14 @@ private static void InteractionBar_AddImprovementButtons(InteractionBar __instan
210210 return ;
211211 }
212212 GameState gameState = GameManager . GameState ;
213- Il2CppSystem . Collections . Generic . List < CommandBase > buildableImprovementsCommands
213+ Il2CppSystem . Collections . Generic . List < CommandBase > buildableImprovementsCommands
214214 = CommandUtils . GetBuildableImprovements ( gameState , player , tile . Data , true ) ;
215215 for ( int key = 0 ; key < buildableImprovementsCommands . Count ; ++ key )
216216 {
217217 UIRoundButton uiroundButton = __instance . quickActions . buttons [ key ] ;
218218 BuildCommand buildCommand = buildableImprovementsCommands [ key ] . Cast < BuildCommand > ( ) ;
219- gameState . GameLogicData . TryGetData ( buildCommand . Type , out ImprovementData improvementData2 ) ;
220- UnitData . Type type = improvementData2 . CreatesUnit ( ) ;
219+ gameState . GameLogicData . TryGetData ( buildCommand . Type , out ImprovementData improvementData2 ) ;
220+ UnitData . Type type = improvementData2 . CreatesUnit ( ) ;
221221 if ( type == UnitData . Type . None && uiroundButton . icon . sprite . name == "placeholder" )
222222 {
223223 try
@@ -295,7 +295,7 @@ private static void UIUtils_GetTile(ref RectTransform __result, Polytopia.Data.T
295295 if ( sprite == null )
296296 {
297297 sprite = ModLoader . GetSprite (
298- "mountain" ,
298+ "mountain" ,
299299 EnumCache < TribeData . Type > . GetName ( tribeTypeFromStyle )
300300 ) ;
301301 if ( sprite == null )
@@ -328,7 +328,7 @@ private static void UIUtils_GetTile(ref RectTransform __result, Polytopia.Data.T
328328 {
329329 Image image = UIUtils . GetImage ( ) ;
330330 sprite = ModLoader . GetSprite (
331- EnumCache < Polytopia . Data . TerrainData . Type > . GetName ( type ) ,
331+ EnumCache < Polytopia . Data . TerrainData . Type > . GetName ( type ) ,
332332 EnumCache < TribeData . Type > . GetName ( tribeTypeFromStyle )
333333 ) ;
334334 if ( sprite != null )
@@ -395,7 +395,7 @@ private static void UICityRenderer_GetResource(ref GameObject __result, string b
395395 int level = 0 ;
396396 if ( tokens . Length > 1 )
397397 {
398- int . TryParse ( tokens [ 1 ] , out level ) ;
398+ _ = int . TryParse ( tokens [ 1 ] , out level ) ;
399399 }
400400
401401 string style ;
0 commit comments