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

◆ AddNPCBiomeRelationships_AddDecorations_Automated()

void Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.AddNPCBiomeRelationships_AddDecorations_Automated ( )
inlineprivate

Definition at line 1924 of file BestiaryDatabaseNPCsPopulator.cs.

1925 {
1927 {
1928 BestiaryEntry bestiaryEntry = FindEntryByNPCID(item.Key);
1929 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Events.Rain))
1930 {
1931 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Biomes.Snow))
1932 {
1933 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.Blizzard);
1934 }
1935 else
1936 {
1937 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.Rain);
1938 }
1939 continue;
1940 }
1941 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Events.Eclipse))
1942 {
1943 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.EclipseSun);
1944 }
1945 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Times.NightTime))
1946 {
1947 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.Moon);
1948 }
1949 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Times.DayTime))
1950 {
1951 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.Sun);
1952 }
1953 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Invasions.PumpkinMoon))
1954 {
1955 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.PumpkinMoon);
1956 }
1957 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Invasions.FrostMoon))
1958 {
1959 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.FrostMoon);
1960 }
1961 if (bestiaryEntry.Info.Contains(CommonTags.SpawnConditions.Biomes.Meteor))
1962 {
1963 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.Moon);
1964 bestiaryEntry.AddTags(CommonTags.SpawnConditions.Visuals.Meteor);
1965 }
1966 }
1967 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static Dictionary< int, NPC > NpcsByNetId

References Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.Blizzard, System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.DayTime, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Events.Eclipse, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.EclipseSun, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.FindEntryByNPCID(), Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Invasions.FrostMoon, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.FrostMoon, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Meteor, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.Meteor, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.Moon, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.NightTime, Terraria.ID.ContentSamples.NpcsByNetId, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Invasions.PumpkinMoon, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.PumpkinMoon, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Events.Rain, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.Rain, Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Snow, and Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Visuals.Sun.

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