Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetEaterOfWorldsSegmentsCountByGamemode()

static int Terraria.NPC.GetEaterOfWorldsSegmentsCountByGamemode ( int gamemode)
inlinestatic

Definition at line 44180 of file NPC.cs.

44181 {
44182 if (!Main.RegisteredGameModes.TryGetValue(gamemode, out var gameModeData))
44183 {
44184 return 65;
44185 }
44186 if (!gameModeData.IsExpertMode)
44187 {
44188 return 65;
44189 }
44190 return 70;
44191 }

References Terraria.Main.RegisteredGameModes.

Referenced by Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.AdjustEaterOfWorldStats().