Attention Mobile version Mobile Users! Registration for Mobile 1.3 Beta Testing is live! Register here!

Module:Npcinfo

From Terraria Wiki
Jump to: navigation, search

This module is used to obtain the base statistics of each NPC.

It can calculate NPC stats for different numbers of players (for multiplayer) and/or different stages/modes of the game (normal / expert pre-Hardmode / expert Hardmode / expert post-Plantera).

The code is synchronized with version 1.3.5.3Desktop Version of Terraria.

Usage

{{#invoke:Npcinfo|getInfo| id = <npcid> | players = <active players count> | prefix = <prefix for output varnames> }}

id

NPC id. Can be -1 to -65, 1 to 579 (except 76, 146, 408). (76/146/408 are unused)

(optional) players

The number of active players, default is 1. For some bosses and boss-like NPCs in Expert mode, the number of players determines the health.

(optional) prefix

The prefix for the output variable. Default is _npcinfo_. For example, the default variable name for damage is _npcinfo_damage. If you used prefix=my_, the variable name would be my_damage.

When you use this module, it sets a number of DPL variables you can retrieve by using {{#dplvar:_npcinfo_defense}}, for instance. Use {{getNpcInfo}} for easily retrieving these variables and using them in articles.

Main variables:

dplvar
(without prefix)
Content
aiStyle The id of the AI it uses.
boss <empty> = false, 1 = true.
buffImmuneAll Is it immune to all buffs? <empty> = false, 1 = true.
buffImmune A comma-separated list of buffs the NPC is immune to. Only makes sense when buffImmuneAll is false.
friendly Is it a friendly NPC? <empty> = false, 1 = true.
townNPC Is it a town NPC? <empty> = false, 1 = true.
townCritter Is it a town Critter?(by source code, NPCID.Sets.TownCritter) <empty> = false, 1 = true.
critter Is it a critter? (by Critter page.)<empty> = false, 1 = true.
projectileNPC Is it a projectile? <empty> = false, 1 = true.
playersCount The value of the players parameter you used.
netID NPC id, the value of the id parameter you used.
type NPC type id. For a positive NPC id, it is equal to netID. For a negative NPC id, it is the id of the corresponding "master" variant.
internalName NPC internal name.
damage
damage_expert
damage_hardmode
damage_postplantera
damage / defense / knockBack /l ifeMax values for normal, expert pre-Hardmode, expert Hardmode, and expert post-Plantera, respectively.
The knockBackResist values are original value, the value displayed in the NPC infobox is (1 - knockBackResist).
defense
defense_expert
defense_hardmode
defense_postplantera
knockBackResist
knockBackResist_expert
knockBackResist_hardmode
knockBackResist_postplantera
lifeMax
lifeMax_expert
lifeMax_hardmode
lifeMax_postplantera
value
value_expert
value_hardmode
value_postplantera
Coins dropped for normal, expert pre-Hardmode, expert Hardmode, and expert post-Plantera, respectively. Counted in Copper Coins.

Examples

See the source code of this documentation for details.

id= -3 (Green Slime):

aiStyle: 1
boss:
buffImmune: 20, 70
buffImmuneAll:
damage: 6
damage_expert: 12
damage_hardmode: 86
damage_postplantera: 118
defense: 0
defense_expert: 0
defense_hardmode: 0
defense_postplantera: 0
dontCountMe:
friendly:
knockBackResist: 1.2
knockBackResist_expert: 0.972
knockBackResist_hardmode: 0.972
knockBackResist_postplantera: 0.972
lifeMax: 14
lifeMax_expert: 28
lifeMax_hardmode: 246
lifeMax_postplantera: 338
internalName: GreenSlime
netID: -3
npcSlots: 1
playersCount: 1
rarity: 0
scale: 0.9
townNPC:
townCritter:
type: 1
value: 3
value_expert: 7
value_hardmode: 47
value_postplantera: 65

id=4 (Eye of Cthulhu):

aiStyle: 4
boss: 1
buffImmune: 31
buffImmuneAll:
damage: 15
damage_expert: 30
damage_hardmode: 30
damage_postplantera: 30
defense: 12
defense_expert: 12
defense_hardmode: 12
defense_postplantera: 12
dontCountMe:
friendly:
knockBackResist: 0
knockBackResist_expert: 0
knockBackResist_hardmode: 0
knockBackResist_postplantera: 0
lifeMax: 2800
lifeMax_expert: 3640
lifeMax_hardmode: 3640
lifeMax_postplantera: 3640
internalName: EyeofCthulhu
netID: 4
npcSlots: 5
playersCount: 1
rarity: 0
scale: 1
townNPC:
townCritter:
type: 4
value: 30000
value_expert: 75000
value_hardmode: 75000
value_postplantera: 75000

id=4 (Eye of Cthulhu), players=3 (more health):

aiStyle: 4
boss: 1
buffImmune: 31
buffImmuneAll:
damage: 15
damage_expert: 30
damage_hardmode: 30
damage_postplantera: 30
defense: 12
defense_expert: 12
defense_hardmode: 12
defense_postplantera: 12
dontCountMe:
friendly:
knockBackResist: 0
knockBackResist_expert: 0
knockBackResist_hardmode: 0
knockBackResist_postplantera: 0
lifeMax: 2800
lifeMax_expert: 6976
lifeMax_hardmode: 6976
lifeMax_postplantera: 6976
internalName: EyeofCthulhu
netID: 4
npcSlots: 5
playersCount: 3
rarity: 0
scale: 1
townNPC:
townCritter:
type: 4
value: 30000
value_expert: 75000
value_hardmode: 75000
value_postplantera: 75000

id=54 (Clothier, NPC):

aiStyle: 7
boss:
buffImmune: 31
buffImmuneAll:
damage: 10
damage_expert: 10
damage_hardmode: 10
damage_postplantera: 10
defense: 15
defense_expert: 15
defense_hardmode: 15
defense_postplantera: 15
dontCountMe:
friendly: 1
knockBackResist: 0.5
knockBackResist_expert: 0.5
knockBackResist_hardmode: 0.5
knockBackResist_postplantera: 0.5
lifeMax: 250
lifeMax_expert: 250
lifeMax_hardmode: 250
lifeMax_postplantera: 250
internalName: Clothier
netID: 54
npcSlots: 1
playersCount: 1
rarity: 0
scale: 1
townNPC: 1
townCritter:
type: 54
value: 0
value_expert: 0
value_hardmode: 0
value_postplantera: 0


local function  buyPrice(platinum, gold, silver, copper)
	return copper + silver * 100 + gold * 100 * 100 + platinum * 100 * 100 * 100
end

local internal_names = {
[-65] = "BigHornetStingy",
[-64] = "LittleHornetStingy",
[-63] = "BigHornetSpikey",
[-62] = "LittleHornetSpikey",
[-61] = "BigHornetLeafy",
[-60] = "LittleHornetLeafy",
[-59] = "BigHornetHoney",
[-58] = "LittleHornetHoney",
[-57] = "BigHornetFatty",
[-56] = "LittleHornetFatty",
[-55] = "BigRainZombie",
[-54] = "SmallRainZombie",
[-53] = "BigPantlessSkeleton",
[-52] = "SmallPantlessSkeleton",
[-51] = "BigMisassembledSkeleton",
[-50] = "SmallMisassembledSkeleton",
[-49] = "BigHeadacheSkeleton",
[-48] = "SmallHeadacheSkeleton",
[-47] = "BigSkeleton",
[-46] = "SmallSkeleton",
[-45] = "BigFemaleZombie",
[-44] = "SmallFemaleZombie",
[-43] = "DemonEye2",
[-42] = "PurpleEye2",
[-41] = "GreenEye2",
[-40] = "DialatedEye2",
[-39] = "SleepyEye2",
[-38] = "CataractEye2",
[-37] = "BigTwiggyZombie",
[-36] = "SmallTwiggyZombie",
[-35] = "BigSwampZombie",
[-34] = "SmallSwampZombie",
[-33] = "BigSlimedZombie",
[-32] = "SmallSlimedZombie",
[-31] = "BigPincushionZombie",
[-30] = "SmallPincushionZombie",
[-29] = "BigBaldZombie",
[-28] = "SmallBaldZombie",
[-27] = "BigZombie",
[-26] = "SmallZombie",
[-25] = "BigCrimslime",
[-24] = "LittleCrimslime",
[-23] = "BigCrimera",
[-22] = "LittleCrimera",
[-21] = "GiantMossHornet",
[-20] = "BigMossHornet",
[-19] = "LittleMossHornet",
[-18] = "TinyMossHornet",
[-17] = "BigStinger",
[-16] = "LittleStinger",
[-15] = "HeavySkeleton",
[-14] = "BigBoned",
[-13] = "ShortBones",
[-12] = "BigEater",
[-11] = "LittleEater",
[-10] = "JungleSlime",
[-9] = "YellowSlime",
[-8] = "RedSlime",
[-7] = "PurpleSlime",
[-6] = "BlackSlime",
[-5] = "BabySlime",
[-4] = "Pinky",
[-3] = "GreenSlime",
[-2] = "Slimer2",
[-1] = "Slimeling",
[0] = "None",
[1] = "BlueSlime",
[2] = "DemonEye",
[3] = "Zombie",
[4] = "EyeofCthulhu",
[5] = "ServantofCthulhu",
[6] = "EaterofSouls",
[7] = "DevourerHead",
[8] = "DevourerBody",
[9] = "DevourerTail",
[10] = "GiantWormHead",
[11] = "GiantWormBody",
[12] = "GiantWormTail",
[13] = "EaterofWorldsHead",
[14] = "EaterofWorldsBody",
[15] = "EaterofWorldsTail",
[16] = "MotherSlime",
[17] = "Merchant",
[18] = "Nurse",
[19] = "ArmsDealer",
[20] = "Dryad",
[21] = "Skeleton",
[22] = "Guide",
[23] = "MeteorHead",
[24] = "FireImp",
[25] = "BurningSphere",
[26] = "GoblinPeon",
[27] = "GoblinThief",
[28] = "GoblinWarrior",
[29] = "GoblinSorcerer",
[30] = "ChaosBall",
[31] = "AngryBones",
[32] = "DarkCaster",
[33] = "WaterSphere",
[34] = "CursedSkull",
[35] = "SkeletronHead",
[36] = "SkeletronHand",
[37] = "OldMan",
[38] = "Demolitionist",
[39] = "BoneSerpentHead",
[40] = "BoneSerpentBody",
[41] = "BoneSerpentTail",
[42] = "Hornet",
[43] = "ManEater",
[44] = "UndeadMiner",
[45] = "Tim",
[46] = "Bunny",
[47] = "CorruptBunny",
[48] = "Harpy",
[49] = "CaveBat",
[50] = "KingSlime",
[51] = "JungleBat",
[52] = "DoctorBones",
[53] = "TheGroom",
[54] = "Clothier",
[55] = "Goldfish",
[56] = "Snatcher",
[57] = "CorruptGoldfish",
[58] = "Piranha",
[59] = "LavaSlime",
[60] = "Hellbat",
[61] = "Vulture",
[62] = "Demon",
[63] = "BlueJellyfish",
[64] = "PinkJellyfish",
[65] = "Shark",
[66] = "VoodooDemon",
[67] = "Crab",
[68] = "DungeonGuardian",
[69] = "Antlion",
[70] = "SpikeBall",
[71] = "DungeonSlime",
[72] = "BlazingWheel",
[73] = "GoblinScout",
[74] = "Bird",
[75] = "Pixie",
[76] = "None2",
[77] = "ArmoredSkeleton",
[78] = "Mummy",
[79] = "DarkMummy",
[80] = "LightMummy",
[81] = "CorruptSlime",
[82] = "Wraith",
[83] = "CursedHammer",
[84] = "EnchantedSword",
[85] = "Mimic",
[86] = "Unicorn",
[87] = "WyvernHead",
[88] = "WyvernLegs",
[89] = "WyvernBody",
[90] = "WyvernBody2",
[91] = "WyvernBody3",
[92] = "WyvernTail",
[93] = "GiantBat",
[94] = "Corruptor",
[95] = "DiggerHead",
[96] = "DiggerBody",
[97] = "DiggerTail",
[98] = "SeekerHead",
[99] = "SeekerBody",
[100] = "SeekerTail",
[101] = "Clinger",
[102] = "AnglerFish",
[103] = "GreenJellyfish",
[104] = "Werewolf",
[105] = "BoundGoblin",
[106] = "BoundWizard",
[107] = "GoblinTinkerer",
[108] = "Wizard",
[109] = "Clown",
[110] = "SkeletonArcher",
[111] = "GoblinArcher",
[112] = "VileSpit",
[113] = "WallofFlesh",
[114] = "WallofFleshEye",
[115] = "TheHungry",
[116] = "TheHungryII",
[117] = "LeechHead",
[118] = "LeechBody",
[119] = "LeechTail",
[120] = "ChaosElemental",
[121] = "Slimer",
[122] = "Gastropod",
[123] = "BoundMechanic",
[124] = "Mechanic",
[125] = "Retinazer",
[126] = "Spazmatism",
[127] = "SkeletronPrime",
[128] = "PrimeCannon",
[129] = "PrimeSaw",
[130] = "PrimeVice",
[131] = "PrimeLaser",
[132] = "BaldZombie",
[133] = "WanderingEye",
[134] = "TheDestroyer",
[135] = "TheDestroyerBody",
[136] = "TheDestroyerTail",
[137] = "IlluminantBat",
[138] = "IlluminantSlime",
[139] = "Probe",
[140] = "PossessedArmor",
[141] = "ToxicSludge",
[142] = "SantaClaus",
[143] = "SnowmanGangsta",
[144] = "MisterStabby",
[145] = "SnowBalla",
[146] = "None3",
[147] = "IceSlime",
[148] = "Penguin",
[149] = "PenguinBlack",
[150] = "IceBat",
[151] = "Lavabat",
[152] = "GiantFlyingFox",
[153] = "GiantTortoise",
[154] = "IceTortoise",
[155] = "Wolf",
[156] = "RedDevil",
[157] = "Arapaima",
[158] = "VampireBat",
[159] = "Vampire",
[160] = "Truffle",
[161] = "ZombieEskimo",
[162] = "Frankenstein",
[163] = "BlackRecluse",
[164] = "WallCreeper",
[165] = "WallCreeperWall",
[166] = "SwampThing",
[167] = "UndeadViking",
[168] = "CorruptPenguin",
[169] = "IceElemental",
[170] = "PigronCorruption",
[171] = "PigronHallow",
[172] = "RuneWizard",
[173] = "Crimera",
[174] = "Herpling",
[175] = "AngryTrapper",
[176] = "MossHornet",
[177] = "Derpling",
[178] = "Steampunker",
[179] = "CrimsonAxe",
[180] = "PigronCrimson",
[181] = "FaceMonster",
[182] = "FloatyGross",
[183] = "Crimslime",
[184] = "SpikedIceSlime",
[185] = "SnowFlinx",
[186] = "PincushionZombie",
[187] = "SlimedZombie",
[188] = "SwampZombie",
[189] = "TwiggyZombie",
[190] = "CataractEye",
[191] = "SleepyEye",
[192] = "DialatedEye",
[193] = "GreenEye",
[194] = "PurpleEye",
[195] = "LostGirl",
[196] = "Nymph",
[197] = "ArmoredViking",
[198] = "Lihzahrd",
[199] = "LihzahrdCrawler",
[200] = "FemaleZombie",
[201] = "HeadacheSkeleton",
[202] = "MisassembledSkeleton",
[203] = "PantlessSkeleton",
[204] = "SpikedJungleSlime",
[205] = "Moth",
[206] = "IcyMerman",
[207] = "DyeTrader",
[208] = "PartyGirl",
[209] = "Cyborg",
[210] = "Bee",
[211] = "BeeSmall",
[212] = "PirateDeckhand",
[213] = "PirateCorsair",
[214] = "PirateDeadeye",
[215] = "PirateCrossbower",
[216] = "PirateCaptain",
[217] = "CochinealBeetle",
[218] = "CyanBeetle",
[219] = "LacBeetle",
[220] = "SeaSnail",
[221] = "Squid",
[222] = "QueenBee",
[223] = "ZombieRaincoat",
[224] = "FlyingFish",
[225] = "UmbrellaSlime",
[226] = "FlyingSnake",
[227] = "Painter",
[228] = "WitchDoctor",
[229] = "Pirate",
[230] = "GoldfishWalker",
[231] = "HornetFatty",
[232] = "HornetHoney",
[233] = "HornetLeafy",
[234] = "HornetSpikey",
[235] = "HornetStingy",
[236] = "JungleCreeper",
[237] = "JungleCreeperWall",
[238] = "BlackRecluseWall",
[239] = "BloodCrawler",
[240] = "BloodCrawlerWall",
[241] = "BloodFeeder",
[242] = "BloodJelly",
[243] = "IceGolem",
[244] = "RainbowSlime",
[245] = "Golem",
[246] = "GolemHead",
[247] = "GolemFistLeft",
[248] = "GolemFistRight",
[249] = "GolemHeadFree",
[250] = "AngryNimbus",
[251] = "Eyezor",
[252] = "Parrot",
[253] = "Reaper",
[254] = "ZombieMushroom",
[255] = "ZombieMushroomHat",
[256] = "FungoFish",
[257] = "AnomuraFungus",
[258] = "MushiLadybug",
[259] = "FungiBulb",
[260] = "GiantFungiBulb",
[261] = "FungiSpore",
[262] = "Plantera",
[263] = "PlanterasHook",
[264] = "PlanterasTentacle",
[265] = "Spore",
[266] = "BrainofCthulhu",
[267] = "Creeper",
[268] = "IchorSticker",
[269] = "RustyArmoredBonesAxe",
[270] = "RustyArmoredBonesFlail",
[271] = "RustyArmoredBonesSword",
[272] = "RustyArmoredBonesSwordNoArmor",
[273] = "BlueArmoredBones",
[274] = "BlueArmoredBonesMace",
[275] = "BlueArmoredBonesNoPants",
[276] = "BlueArmoredBonesSword",
[277] = "HellArmoredBones",
[278] = "HellArmoredBonesSpikeShield",
[279] = "HellArmoredBonesMace",
[280] = "HellArmoredBonesSword",
[281] = "RaggedCaster",
[282] = "RaggedCasterOpenCoat",
[283] = "Necromancer",
[284] = "NecromancerArmored",
[285] = "DiabolistRed",
[286] = "DiabolistWhite",
[287] = "BoneLee",
[288] = "DungeonSpirit",
[289] = "GiantCursedSkull",
[290] = "Paladin",
[291] = "SkeletonSniper",
[292] = "TacticalSkeleton",
[293] = "SkeletonCommando",
[294] = "AngryBonesBig",
[295] = "AngryBonesBigMuscle",
[296] = "AngryBonesBigHelmet",
[297] = "BirdBlue",
[298] = "BirdRed",
[299] = "Squirrel",
[300] = "Mouse",
[301] = "Raven",
[302] = "SlimeMasked",
[303] = "BunnySlimed",
[304] = "HoppinJack",
[305] = "Scarecrow1",
[306] = "Scarecrow2",
[307] = "Scarecrow3",
[308] = "Scarecrow4",
[309] = "Scarecrow5",
[310] = "Scarecrow6",
[311] = "Scarecrow7",
[312] = "Scarecrow8",
[313] = "Scarecrow9",
[314] = "Scarecrow10",
[315] = "HeadlessHorseman",
[316] = "Ghost",
[317] = "DemonEyeOwl",
[318] = "DemonEyeSpaceship",
[319] = "ZombieDoctor",
[320] = "ZombieSuperman",
[321] = "ZombiePixie",
[322] = "SkeletonTopHat",
[323] = "SkeletonAstonaut",
[324] = "SkeletonAlien",
[325] = "MourningWood",
[326] = "Splinterling",
[327] = "Pumpking",
[328] = "PumpkingBlade",
[329] = "Hellhound",
[330] = "Poltergeist",
[331] = "ZombieXmas",
[332] = "ZombieSweater",
[333] = "SlimeRibbonWhite",
[334] = "SlimeRibbonYellow",
[335] = "SlimeRibbonGreen",
[336] = "SlimeRibbonRed",
[337] = "BunnyXmas",
[338] = "ZombieElf",
[339] = "ZombieElfBeard",
[340] = "ZombieElfGirl",
[341] = "PresentMimic",
[342] = "GingerbreadMan",
[343] = "Yeti",
[344] = "Everscream",
[345] = "IceQueen",
[346] = "SantaNK1",
[347] = "ElfCopter",
[348] = "Nutcracker",
[349] = "NutcrackerSpinning",
[350] = "ElfArcher",
[351] = "Krampus",
[352] = "Flocko",
[353] = "Stylist",
[354] = "WebbedStylist",
[355] = "Firefly",
[356] = "Butterfly",
[357] = "Worm",
[358] = "LightningBug",
[359] = "Snail",
[360] = "GlowingSnail",
[361] = "Frog",
[362] = "Duck",
[363] = "Duck2",
[364] = "DuckWhite",
[365] = "DuckWhite2",
[366] = "ScorpionBlack",
[367] = "Scorpion",
[368] = "TravellingMerchant",
[369] = "Angler",
[370] = "DukeFishron",
[371] = "DetonatingBubble",
[372] = "Sharkron",
[373] = "Sharkron2",
[374] = "TruffleWorm",
[375] = "TruffleWormDigger",
[376] = "SleepingAngler",
[377] = "Grasshopper",
[378] = "ChatteringTeethBomb",
[379] = "CultistArcherBlue",
[380] = "CultistArcherWhite",
[381] = "BrainScrambler",
[382] = "RayGunner",
[383] = "MartianOfficer",
[384] = "ForceBubble",
[385] = "GrayGrunt",
[386] = "MartianEngineer",
[387] = "MartianTurret",
[388] = "MartianDrone",
[389] = "GigaZapper",
[390] = "ScutlixRider",
[391] = "Scutlix",
[392] = "MartianSaucer",
[393] = "MartianSaucerTurret",
[394] = "MartianSaucerCannon",
[395] = "MartianSaucerCore",
[396] = "MoonLordHead",
[397] = "MoonLordHand",
[398] = "MoonLordCore",
[399] = "MartianProbe",
[400] = "MoonLordFreeEye",
[401] = "MoonLordLeechBlob",
[402] = "StardustWormHead",
[403] = "StardustWormBody",
[404] = "StardustWormTail",
[405] = "StardustCellBig",
[406] = "StardustCellSmall",
[407] = "StardustJellyfishBig",
[408] = "StardustJellyfishSmall",
[409] = "StardustSpiderBig",
[410] = "StardustSpiderSmall",
[411] = "StardustSoldier",
[412] = "SolarCrawltipedeHead",
[413] = "SolarCrawltipedeBody",
[414] = "SolarCrawltipedeTail",
[415] = "SolarDrakomire",
[416] = "SolarDrakomireRider",
[417] = "SolarSroller",
[418] = "SolarCorite",
[419] = "SolarSolenian",
[420] = "NebulaBrain",
[421] = "NebulaHeadcrab",
[423] = "NebulaBeast",
[424] = "NebulaSoldier",
[425] = "VortexRifleman",
[426] = "VortexHornetQueen",
[427] = "VortexHornet",
[428] = "VortexLarva",
[429] = "VortexSoldier",
[430] = "ArmedZombie",
[431] = "ArmedZombieEskimo",
[432] = "ArmedZombiePincussion",
[433] = "ArmedZombieSlimed",
[434] = "ArmedZombieSwamp",
[435] = "ArmedZombieTwiggy",
[436] = "ArmedZombieCenx",
[437] = "CultistTablet",
[438] = "CultistDevote",
[439] = "CultistBoss",
[440] = "CultistBossClone",
[442] = "GoldBird",
[443] = "GoldBunny",
[444] = "GoldButterfly",
[445] = "GoldFrog",
[446] = "GoldGrasshopper",
[447] = "GoldMouse",
[448] = "GoldWorm",
[449] = "BoneThrowingSkeleton",
[450] = "BoneThrowingSkeleton2",
[451] = "BoneThrowingSkeleton3",
[452] = "BoneThrowingSkeleton4",
[453] = "SkeletonMerchant",
[454] = "CultistDragonHead",
[455] = "CultistDragonBody1",
[456] = "CultistDragonBody2",
[457] = "CultistDragonBody3",
[458] = "CultistDragonBody4",
[459] = "CultistDragonTail",
[460] = "Butcher",
[461] = "CreatureFromTheDeep",
[462] = "Fritz",
[463] = "Nailhead",
[464] = "CrimsonBunny",
[465] = "CrimsonGoldfish",
[466] = "Psycho",
[467] = "DeadlySphere",
[468] = "DrManFly",
[469] = "ThePossessed",
[470] = "CrimsonPenguin",
[471] = "GoblinSummoner",
[472] = "ShadowFlameApparition",
[473] = "BigMimicCorruption",
[474] = "BigMimicCrimson",
[475] = "BigMimicHallow",
[476] = "BigMimicJungle",
[477] = "Mothron",
[478] = "MothronEgg",
[479] = "MothronSpawn",
[480] = "Medusa",
[481] = "GreekSkeleton",
[482] = "GraniteGolem",
[483] = "GraniteFlyer",
[484] = "EnchantedNightcrawler",
[485] = "Grubby",
[486] = "Sluggy",
[487] = "Buggy",
[488] = "TargetDummy",
[489] = "BloodZombie",
[490] = "Drippler",
[491] = "PirateShip",
[492] = "PirateShipCannon",
[493] = "LunarTowerStardust",
[494] = "Crawdad",
[495] = "Crawdad2",
[496] = "GiantShelly",
[497] = "GiantShelly2",
[498] = "Salamander",
[499] = "Salamander2",
[500] = "Salamander3",
[501] = "Salamander4",
[502] = "Salamander5",
[503] = "Salamander6",
[504] = "Salamander7",
[505] = "Salamander8",
[506] = "Salamander9",
[507] = "LunarTowerNebula",
[422] = "LunarTowerVortex",
[441] = "TaxCollector",
[508] = "WalkingAntlion",
[509] = "FlyingAntlion",
[510] = "DuneSplicerHead",
[511] = "DuneSplicerBody",
[512] = "DuneSplicerTail",
[513] = "TombCrawlerHead",
[514] = "TombCrawlerBody",
[515] = "TombCrawlerTail",
[516] = "SolarFlare",
[517] = "LunarTowerSolar",
[518] = "SolarSpearman",
[519] = "SolarGoop",
[520] = "MartianWalker",
[521] = "AncientCultistSquidhead",
[522] = "AncientLight",
[523] = "AncientDoom",
[524] = "DesertGhoul",
[525] = "DesertGhoulCorruption",
[526] = "DesertGhoulCrimson",
[527] = "DesertGhoulHallow",
[528] = "DesertLamiaLight",
[529] = "DesertLamiaDark",
[530] = "DesertScorpionWalk",
[531] = "DesertScorpionWall",
[532] = "DesertBeast",
[533] = "DesertDjinn",
[534] = "DemonTaxCollector",
[535] = "SlimeSpiked",
[536] = "TheBride",
[537] = "SandSlime",
[538] = "SquirrelRed",
[539] = "SquirrelGold",
[540] = "PartyBunny",
[541] = "SandElemental",
[542] = "SandShark",
[543] = "SandsharkCorrupt",
[544] = "SandsharkCrimson",
[545] = "SandsharkHallow",
[546] = "Tumbleweed",
[547] = "DD2AttackerTest",
[548] = "DD2EterniaCrystal",
[549] = "DD2LanePortal",
[550] = "DD2Bartender",
[551] = "DD2Betsy",
[552] = "DD2GoblinT1",
[553] = "DD2GoblinT2",
[554] = "DD2GoblinT3",
[555] = "DD2GoblinBomberT1",
[556] = "DD2GoblinBomberT2",
[557] = "DD2GoblinBomberT3",
[558] = "DD2WyvernT1",
[559] = "DD2WyvernT2",
[560] = "DD2WyvernT3",
[561] = "DD2JavelinstT1",
[562] = "DD2JavelinstT2",
[563] = "DD2JavelinstT3",
[564] = "DD2DarkMageT1",
[565] = "DD2DarkMageT3",
[566] = "DD2SkeletonT1",
[567] = "DD2SkeletonT3",
[568] = "DD2WitherBeastT2",
[569] = "DD2WitherBeastT3",
[570] = "DD2DrakinT2",
[571] = "DD2DrakinT3",
[572] = "DD2KoboldWalkerT2",
[573] = "DD2KoboldWalkerT3",
[574] = "DD2KoboldFlyerT2",
[575] = "DD2KoboldFlyerT3",
[576] = "DD2OgreT2",
[577] = "DD2OgreT3",
[578] = "DD2LightningBugT3",
[579] = "BartenderUnconscious",
}

local db={
	[-65] = function(npc)
		npc.scale = 1.21
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-64] = function(npc)
		npc.scale = 0.87
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-63] = function(npc)
		npc.scale = 1.16
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-62] = function(npc)
		npc.scale = 0.78
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-61] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-60] = function(npc)
		npc.scale = 0.92
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-59] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-58] = function(npc)
		npc.scale = 0.8
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-57] = function(npc)
		npc.scale = 1.25
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-56] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-55] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-54] = function(npc)
		npc.scale = 0.9
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-53] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-52] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-51] = function(npc)
		npc.scale = 1.13
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-50] = function(npc)
		npc.scale = 0.87
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-49] = function(npc)
		npc.scale = 1.07
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-48] = function(npc)
		npc.scale = 0.93
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-47] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-46] = function(npc)
		npc.scale = 0.9
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-45] = function(npc)
		npc.scale = 1.05
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-44] = function(npc)
		npc.scale = 0.87
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-43] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-42] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-41] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-40] = function(npc)
		npc.scale = 0.9
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-39] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-38] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-37] = function(npc)
		npc.scale = 1.08
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-36] = function(npc)
		npc.scale = 0.92
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-35] = function(npc)
		npc.scale = 1.13
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-34] = function(npc)
		npc.scale = 0.87
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-33] = function(npc)
		npc.scale = 1.11
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-32] = function(npc)
		npc.scale = 0.89
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-31] = function(npc)
		npc.scale = 1.13
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-30] = function(npc)
		npc.scale = 0.93
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-29] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-28] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-27] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-26] = function(npc)
		npc.scale = 0.9
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-25] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-24] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-23] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-22] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-21] = function(npc)
		npc.scale = 1.2
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-20] = function(npc)
		npc.scale = 1.1
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-19] = function(npc)
		npc.scale = 0.9
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-18] = function(npc)
		npc.scale = 0.8
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-17] = function(npc)
		npc.scale = 1.2
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-16] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-15] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale * 1.1)
		npc.lifeMax = 400
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = 2
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
		npc.height = 44
	end,
	[-14] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale * 1.1)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale * 1.1)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = 2
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-13] = function(npc)
		npc.scale = 0.9
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
	end,
	[-12] = function(npc)
		npc.scale = 1.15
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-11] = function(npc)
		npc.scale = 0.85
		npc.defense = math.floor(npc.defense * npc.scale)
		npc.damage = math.floor(npc.damage * npc.scale)
		npc.lifeMax = math.floor(npc.lifeMax * npc.scale)
		npc.value = math.floor(npc.value * npc.scale)
		npc.npcSlots = npc.npcSlots * npc.scale
		npc.knockBackResist = npc.knockBackResist * (2 - npc.scale)
	end,
	[-10] = function(npc)
		npc.scale = 1.1
		npc.damage = 18
		npc.defense = 6
		npc.lifeMax = 60
		npc.value = 500
		return true
	end,
	[-9] = function(npc)
		npc.scale = 1.2
		npc.damage = 15
		npc.defense = 7
		npc.lifeMax = 45
		npc.value = 10
		return true
	end,
	[-8] = function(npc)
		npc.scale = 1.025
		npc.damage = 12
		npc.defense = 4
		npc.lifeMax = 35
		npc.value = 8
		return true
	end,
	[-7] = function(npc)
		npc.scale = 1.2
		npc.damage = 12
		npc.defense = 6
		npc.lifeMax = 40
		npc.knockBackResist = npc.knockBackResist * 0.9
		npc.value = 10
		return true
	end,
	[-6] = function(npc)
		npc.scale = 1.05
		npc.damage = 15
		npc.defense = 4
		npc.lifeMax = 45
		npc.value = 20
		return true
	end,
	[-5] = function(npc)
		npc.scale = 0.9
		npc.damage = 13
		npc.defense = 4
		npc.lifeMax = 30
		npc.knockBackResist = npc.knockBackResist * 0.95
		npc.alpha = 120
		npc.value = 10
		return true
	end,
	[-4] = function(npc)
		npc.scale = 0.6
		npc.damage = 5
		npc.defense = 5
		npc.lifeMax = 150
		npc.knockBackResist = npc.knockBackResist * 1.4
		npc.value = 10000
		npc.rarity = 1
		return true
	end,
	[-3] = function(npc)
		npc.scale = 0.9
		npc.damage = 6
		npc.defense = 0
		npc.lifeMax = 14
		npc.knockBackResist = npc.knockBackResist * 1.2
		npc.value = 3
		return true
	end,
	[-2] = function(npc)
		npc.scale = 0.9
		npc.damage = 45
		npc.defense = 20
		npc.lifeMax = 90
		npc.knockBackResist = npc.knockBackResist * 1.2
		npc.value = 100
		return true
	end,
	[-1] = function(npc)
		npc.scale = 0.6
		npc.damage = 45
		npc.defense = 10
		npc.lifeMax = 90
		npc.knockBackResist = npc.knockBackResist * 1.2
		npc.value = 100
		return true
	end,
	[1] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 7
		npc.defense = 2
		npc.lifeMax = 25
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[2] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 18
		npc.defense = 2
		npc.lifeMax = 60
		npc.knockBackResist = 0.8
		npc.value = 75
		npc.buffImmune[31] = false
	end,
	[3] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 6
		npc.lifeMax = 45
		npc.knockBackResist = 0.5
		npc.value = 60
		npc.buffImmune[31] = false
	end,
	[4] = function(npc)
		npc.width = 100
		npc.height = 110
		npc.aiStyle = 4
		npc.damage = 15
		npc.defense = 12
		npc.lifeMax = 2800
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.boss = true
		npc.value = 30000
		npc.npcSlots = 5
	end,
	[5] = function(npc)
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 5
		npc.damage = 12
		npc.defense = 0
		npc.lifeMax = 8
		npc.noGravity = true
		npc.noTileCollide = true
	end,
	[6] = function(npc)
		npc.npcSlots = 1
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 5
		npc.damage = 22
		npc.defense = 8
		npc.lifeMax = 40
		npc.noGravity = true
		npc.knockBackResist = 0.5
		npc.value = 90
	end,
	[7] = function(npc)
		npc.npcSlots = 3.5
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.damage = 31
		npc.defense = 2
		npc.lifeMax = 100
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 140
		npc.netAlways = true
	end,
	[8] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 16
		npc.defense = 6
		npc.lifeMax = 100
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 140
		npc.dontCountMe = true
	end,
	[9] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 13
		npc.defense = 10
		npc.lifeMax = 100
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 140
		npc.dontCountMe = true
	end,
	[10] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 8
		npc.defense = 0
		npc.lifeMax = 30
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 40
	end,
	[11] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 4
		npc.defense = 4
		npc.lifeMax = 30
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 40
		npc.dontCountMe = true
	end,
	[12] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 4
		npc.defense = 6
		npc.lifeMax = 30
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 40
		npc.dontCountMe = true
	end,
	[13] = function(npc)
		npc.npcSlots = 5
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 22
		npc.defense = 2
		npc.lifeMax = 65
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 300
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[14] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 13
		npc.defense = 4
		npc.lifeMax = 150
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 300
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[15] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 11
		npc.defense = 8
		npc.lifeMax = 220
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 300
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[16] = function(npc)
		npc.npcSlots = 2
		npc.width = 36
		npc.height = 24
		npc.aiStyle = 1
		npc.damage = 20
		npc.defense = 7
		npc.lifeMax = 90
		npc.value = 75
		npc.scale = 1.25
		npc.knockBackResist = 0.6
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[17] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[18] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[19] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[20] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[21] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 100
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[22] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[23] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 5
		npc.damage = 40
		npc.defense = 6
		npc.lifeMax = 26
		npc.noGravity = true
		npc.noTileCollide = true
		npc.value = 80
		npc.knockBackResist = 0.4
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[24] = function(npc)
		npc.npcSlots = 3
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 30
		npc.defense = 16
		npc.lifeMax = 70
		npc.knockBackResist = 0.5
		npc.lavaImmune = true
		npc.value = 350
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[25] = function(npc)
		npc.width = 16
		npc.height = 16
		npc.aiStyle = 9
		npc.damage = 30
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
	end,
	[26] = function(npc)
		npc.scale = 0.9
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 12
		npc.defense = 4
		npc.lifeMax = 60
		npc.knockBackResist = 0.8
		npc.value = 100
		npc.buffImmune[31] = false
	end,
	[27] = function(npc)
		npc.scale = 0.95
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 6
		npc.lifeMax = 80
		npc.knockBackResist = 0.7
		npc.value = 200
		npc.buffImmune[31] = false
	end,
	[28] = function(npc)
		npc.scale = 1.1
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 25
		npc.defense = 8
		npc.lifeMax = 110
		npc.knockBackResist = 0.5
		npc.value = 150
		npc.buffImmune[31] = false
	end,
	[29] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 20
		npc.defense = 2
		npc.lifeMax = 40
		npc.knockBackResist = 0.6
		npc.value = 200
	end,
	[30] = function(npc)
		npc.width = 16
		npc.height = 16
		npc.aiStyle = 9
		npc.damage = 20
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
	end,
	[31] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 26
		npc.defense = 8
		npc.lifeMax = 80
		npc.knockBackResist = 0.8
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[32] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 20
		npc.defense = 2
		npc.lifeMax = 50
		npc.knockBackResist = 0.6
		npc.value = 140
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[33] = function(npc)
		npc.width = 16
		npc.height = 16
		npc.aiStyle = 9
		npc.damage = 20
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
	end,
	[34] = function(npc)
		npc.width = 26
		npc.height = 28
		npc.aiStyle = 10
		npc.damage = 35
		npc.defense = 6
		npc.lifeMax = 40
		npc.noGravity = true
		npc.noTileCollide = true
		npc.value = 150
		npc.knockBackResist = 0.2
		npc.npcSlots = 0.75
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[35] = function(npc)
		npc.width = 80
		npc.height = 102
		npc.aiStyle = 11
		npc.damage = 32
		npc.defense = 10
		npc.lifeMax = 4400
		npc.noGravity = true
		npc.noTileCollide = true
		npc.value = 50000
		npc.knockBackResist = 0.0
		npc.boss = true
		npc.npcSlots = 6
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[189] = true
		npc.buffImmune[169] = true
		npc.buffImmune[183] = true
	end,
	[36] = function(npc)
		npc.width = 52
		npc.height = 52
		npc.aiStyle = 12
		npc.damage = 20
		npc.defense = 14
		npc.lifeMax = 600
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[37] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[38] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[39] = function(npc)
		npc.npcSlots = 6
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 30
		npc.defense = 10
		npc.lifeMax = 250
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 1200
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[40] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 15
		npc.defense = 12
		npc.lifeMax = 250
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 1200
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[41] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 10
		npc.defense = 18
		npc.lifeMax = 250
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 1200
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[42] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 26
		npc.defense = 12
		npc.lifeMax = 48
		npc.knockBackResist = 0.5
		npc.value = 200
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[43] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 13
		npc.damage = 34
		npc.defense = 10
		npc.lifeMax = 110
		npc.knockBackResist = 0.0
		npc.value = 350
		npc.buffImmune[20] = true
	end,
	[44] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 22
		npc.defense = 9
		npc.lifeMax = 70
		npc.knockBackResist = 0.5
		npc.value = 250
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[45] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 20
		npc.defense = 4
		npc.lifeMax = 200
		npc.knockBackResist = 0.6
		npc.value = 5000
		npc.buffImmune[20] = true
		npc.rarity = 4
	end,
	[46] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
	end,
	[47] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 4
		npc.lifeMax = 70
		npc.value = 500
		npc.buffImmune[31] = false
	end,
	[48] = function(npc)
		npc.width = 24
		npc.height = 34
		npc.aiStyle = 14
		npc.damage = 25
		npc.defense = 8
		npc.lifeMax = 100
		npc.knockBackResist = 0.6
		npc.value = 300
	end,
	[49] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 22
		npc.height = 18
		npc.aiStyle = 14
		npc.damage = 13
		npc.defense = 2
		npc.lifeMax = 16
		npc.knockBackResist = 0.8
		npc.value = 90
		npc.buffImmune[31] = false
	end,
	[50] = function(npc)
		npc.boss = true
		npc.width = 98
		npc.height = 92
		npc.aiStyle = 15
		npc.damage = 40
		npc.defense = 10
		npc.lifeMax = 2000
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.scale = 1.25
		npc.buffImmune[20] = true
		
	end,
	[51] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 22
		npc.height = 18
		npc.aiStyle = 14
		npc.damage = 20
		npc.defense = 4
		npc.lifeMax = 34
		npc.knockBackResist = 0.8
		npc.value = 80
		npc.buffImmune[31] = false
	end,
	[52] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 500
		npc.knockBackResist = 0.5
		npc.value = 1000
		npc.buffImmune[31] = false
		npc.rarity = 2
	end,
	[53] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 8
		npc.lifeMax = 200
		npc.knockBackResist = 0.5
		npc.value = 1000
		npc.buffImmune[31] = false
		npc.rarity = 2
	end,
	[54] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[55] = function(npc)
		npc.noGravity = true
		npc.width = 20
		npc.height = 18
		npc.aiStyle = 16
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.knockBackResist = 0.5
		
	end,
	[56] = function(npc)
		npc.noTileCollide = true
		npc.noGravity = true
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 13
		npc.damage = 25
		npc.defense = 10
		npc.lifeMax = 60
		npc.knockBackResist = 0.0
		npc.value = 90
		npc.buffImmune[20] = true
	end,
	[57] = function(npc)
		npc.noGravity = true
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 16
		npc.damage = 30
		npc.defense = 6
		npc.lifeMax = 100
		npc.value = 500
	end,
	[58] = function(npc)
		npc.npcSlots = 0.5
		npc.noGravity = true
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 16
		npc.damage = 25
		npc.defense = 2
		npc.lifeMax = 30
		npc.value = 50
	end,
	[59] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 15
		npc.defense = 10
		npc.lifeMax = 50
		npc.scale = 1.1
		npc.lavaImmune = true
		npc.value = 120
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
	end,
	[60] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 22
		npc.height = 18
		npc.aiStyle = 14
		npc.damage = 35
		npc.defense = 8
		npc.lifeMax = 46
		npc.knockBackResist = 0.8
		npc.value = 120
		npc.scale = 1.1
		npc.lavaImmune = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
	end,
	[61] = function(npc)
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 17
		npc.damage = 15
		npc.defense = 4
		npc.lifeMax = 40
		npc.knockBackResist = 0.8
		npc.value = 60
	end,
	[62] = function(npc)
		npc.npcSlots = 2
		npc.width = 28
		npc.height = 48
		npc.aiStyle = 14
		npc.damage = 32
		npc.defense = 8
		npc.lifeMax = 120
		npc.knockBackResist = 0.8
		npc.value = 300
		npc.lavaImmune = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[63] = function(npc)
		npc.noGravity = true
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 18
		npc.damage = 25
		npc.defense = 4
		npc.lifeMax = 34
		npc.value = 100
	end,
	[64] = function(npc)
		npc.noGravity = true
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 18
		npc.damage = 30
		npc.defense = 6
		npc.lifeMax = 70
		npc.value = 100
	end,
	[65] = function(npc)
		npc.noGravity = true
		npc.width = 100
		npc.height = 24
		npc.aiStyle = 16
		npc.damage = 40
		npc.defense = 2
		npc.lifeMax = 300
		npc.value = 400
		npc.knockBackResist = 0.7
	end,
	[66] = function(npc)
		npc.npcSlots = 2
		npc.width = 28
		npc.height = 48
		npc.aiStyle = 14
		npc.damage = 32
		npc.defense = 8
		npc.lifeMax = 140
		npc.knockBackResist = 0.8
		npc.value = 1000
		npc.lavaImmune = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[67] = function(npc)
		npc.width = 28
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 40
		npc.value = 60
	end,
	[68] = function(npc)
		npc.width = 80
		npc.height = 102
		npc.aiStyle = 11
		npc.damage = 1000
		npc.defense = 9999
		npc.lifeMax = 9999
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[189] = true
		npc.buffImmune[169] = true
		npc.buffImmune[183] = true
	end,
	[69] = function(npc)
		npc.width = 24
		npc.height = 24
		npc.aiStyle = 19
		npc.damage = 10
		npc.defense = 6
		npc.lifeMax = 45
		npc.knockBackResist = 0.0
		npc.value = 60
		npc.behindTiles = true
	end,
	[70] = function(npc)
		npc.npcSlots = 0.3
		npc.width = 34
		npc.height = 34
		npc.aiStyle = 20
		npc.damage = 32
		npc.defense = 100
		npc.lifeMax = 100
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.dontTakeDamage = true
		npc.scale = 1.5
	end,
	[71] = function(npc)
		npc.npcSlots = 2
		npc.width = 36
		npc.height = 24
		npc.aiStyle = 1
		npc.damage = 30
		npc.defense = 7
		npc.lifeMax = 150
		npc.value = 150
		npc.scale = 1.25
		npc.knockBackResist = 0.6
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.rarity = 1
	end,
	[72] = function(npc)
		npc.npcSlots = 0.3
		npc.width = 34
		npc.height = 34
		npc.aiStyle = 21
		npc.damage = 24
		npc.defense = 100
		npc.lifeMax = 100
		npc.behindTiles = true
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.dontTakeDamage = true
		npc.scale = 1.2
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[73] = function(npc)
		npc.scale = 0.95
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 6
		npc.lifeMax = 80
		npc.knockBackResist = 0.7
		npc.value = 200
		npc.buffImmune[31] = false
		npc.rarity = 1
	end,
	[74] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 24
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.knockBackResist = 0.8
		npc.npcSlots = 0.4
	end,
	[75] = function(npc)
		npc.noGravity = true
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 22
		npc.damage = 55
		npc.defense = 20
		npc.lifeMax = 150
		npc.knockBackResist = 0.6
		npc.value = 350
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
	end,
	[77] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 40
		npc.defense = 28
		npc.lifeMax = 260
		npc.knockBackResist = 0.4
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[78] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 16
		npc.lifeMax = 130
		npc.knockBackResist = 0.6
		npc.value = 600
		npc.buffImmune[31] = false
	end,
	[79] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 18
		npc.lifeMax = 180
		npc.knockBackResist = 0.5
		npc.value = 700
		npc.buffImmune[31] = false
	end,
	[80] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 55
		npc.defense = 18
		npc.lifeMax = 200
		npc.knockBackResist = 0.55
		npc.value = 700
		npc.buffImmune[31] = false
	end,
	[81] = function(npc)
		npc.width = 40
		npc.height = 30
		npc.aiStyle = 1
		npc.damage = 55
		npc.defense = 20
		npc.lifeMax = 170
		npc.value = 400
		npc.scale = 1.1
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[82] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 22
		npc.damage = 65
		npc.defense = 16
		npc.lifeMax = 160
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.7
	end,
	[83] = function(npc)
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 23
		npc.damage = 80
		npc.defense = 18
		npc.lifeMax = 200
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.4
	end,
	[84] = function(npc)
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 23
		npc.damage = 80
		npc.defense = 18
		npc.lifeMax = 200
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.4
	end,
	[85] = function(npc)
		npc.width = 24
		npc.height = 24
		npc.aiStyle = 25
		npc.damage = 80
		npc.defense = 30
		npc.lifeMax = 500
		npc.value = 100000
		npc.knockBackResist = 0.3
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.rarity = 4
	end,
	[86] = function(npc)
		npc.width = 46
		npc.height = 42
		npc.aiStyle = 26
		npc.damage = 65
		npc.defense = 30
		npc.lifeMax = 400
		npc.knockBackResist = 0.3
		npc.value = 1000
		npc.buffImmune[31] = false
	end,
	[87] = function(npc)
		npc.noTileCollide = true
		npc.npcSlots = 5
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 80
		npc.defense = 10
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[88] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[89] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 2000
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[90] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[91] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[92] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.scale = 1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.dontCountMe = true
	end,
	[93] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 26
		npc.height = 20
		npc.aiStyle = 14
		npc.damage = 45
		npc.defense = 16
		npc.lifeMax = 100
		npc.knockBackResist = 0.75
		npc.value = 400
		npc.buffImmune[31] = false
	end,
	[94] = function(npc)
		npc.npcSlots = 1
		npc.width = 44
		npc.height = 44
		npc.aiStyle = 5
		npc.damage = 60
		npc.defense = 32
		npc.lifeMax = 230
		npc.noGravity = true
		npc.knockBackResist = 0.55
		npc.value = 500
	end,
	[95] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 45
		npc.defense = 10
		npc.lifeMax = 200
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.scale = 0.9
		npc.value = 300
	end,
	[96] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 28
		npc.defense = 20
		npc.lifeMax = 200
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.scale = 0.9
		npc.value = 300
		npc.dontCountMe = true
	end,
	[97] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 26
		npc.defense = 30
		npc.lifeMax = 200
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.scale = 0.9
		npc.value = 300
		npc.dontCountMe = true
	end,
	[98] = function(npc)
		npc.npcSlots = 3.5
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 70
		npc.defense = 36
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 700
	end,
	[99] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 55
		npc.defense = 40
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 700
		npc.dontCountMe = true
	end,
	[100] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 44
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 700
		npc.dontCountMe = true
	end,
	[101] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.behindTiles = true
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 13
		npc.damage = 70
		npc.defense = 30
		npc.lifeMax = 320
		npc.knockBackResist = 0.2
		npc.value = 600
	end,
	[102] = function(npc)
		npc.npcSlots = 0.5
		npc.noGravity = true
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 16
		npc.damage = 80
		npc.defense = 22
		npc.lifeMax = 90
		npc.value = 500
	end,
	[103] = function(npc)
		npc.noGravity = true
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 18
		npc.damage = 80
		npc.defense = 30
		npc.lifeMax = 120
		npc.value = 800
	end,
	[104] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 38
		npc.lifeMax = 350
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[31] = false
	end,
	[105] = function(npc)
		npc.friendly = true
		npc.width = 18
		npc.height = 34
		npc.aiStyle = 0
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.rarity = 1
	end,
	[106] = function(npc)
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 0
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.rarity = 1
	end,
	[107] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[108] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[109] = function(npc)
		npc.width = 34
		npc.height = 78
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 20
		npc.lifeMax = 400
		npc.knockBackResist = 0.4
		npc.value = 8000
	end,
	[110] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 45
		npc.defense = 14
		npc.lifeMax = 210
		npc.knockBackResist = 0.55
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[112] = function(npc)
		npc.width = 16
		npc.height = 16
		npc.aiStyle = 9
		npc.damage = 65
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.scale = 0.9
	end,
	[113] = function(npc)
		npc.npcSlots = 10
		npc.width = 100
		npc.height = 100
		npc.aiStyle = 27
		npc.damage = 50
		npc.defense = 12
		npc.lifeMax = 8000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.behindTiles = true
		npc.knockBackResist = 0.0
		npc.scale = 1.2
		npc.boss = true
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.value = 80000
	end,
	[114] = function(npc)
		npc.width = 100
		npc.height = 100
		npc.aiStyle = 28
		npc.damage = 50
		npc.defense = 0
		npc.lifeMax = 8000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.behindTiles = true
		npc.knockBackResist = 0.0
		npc.scale = 1.2
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.value = 80000
	end,
	[115] = function(npc)
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 29
		npc.damage = 30
		npc.defense = 10
		npc.lifeMax = 240
		npc.noGravity = true
		npc.behindTiles = true
		npc.noTileCollide = true
		npc.knockBackResist = 1.1
	end,
	[116] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 30
		npc.defense = 6
		npc.lifeMax = 80
		npc.knockBackResist = 0.8
	end,
	[117] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 26
		npc.defense = 2
		npc.lifeMax = 60
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
	end,
	[118] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 22
		npc.defense = 6
		npc.lifeMax = 60
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
	end,
	[119] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 18
		npc.defense = 10
		npc.lifeMax = 60
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
	end,
	[120] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 40
		npc.defense = 30
		npc.lifeMax = 370
		npc.knockBackResist = 0.4
		npc.value = 600
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
	end,
	[121] = function(npc)
		npc.width = 40
		npc.height = 30
		npc.aiStyle = 14
		npc.damage = 45
		npc.defense = 20
		npc.lifeMax = 60
		npc.knockBackResist = 0.8
		npc.scale = 1.1
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[122] = function(npc)
		npc.noGravity = true
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 22
		npc.damage = 60
		npc.defense = 22
		npc.lifeMax = 220
		npc.knockBackResist = 0.8
		npc.value = 600
		npc.buffImmune[20] = true
	end,
	[123] = function(npc)
		npc.friendly = true
		npc.width = 18
		npc.height = 34
		npc.aiStyle = 0
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.scale = 0.9
		npc.rarity = 1
	end,
	[124] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[125] = function(npc)
		npc.width = 100
		npc.height = 110
		npc.aiStyle = 30
		npc.defense = 10
		npc.damage = 45
		npc.lifeMax = 20000
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		
		npc.boss = true
		npc.value = 120000
		npc.npcSlots = 5
	end,
	[126] = function(npc)
		npc.width = 100
		npc.height = 110
		npc.aiStyle = 31
		npc.defense = 10
		npc.damage = 50
		npc.lifeMax = 23000
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		
		npc.boss = true
		npc.value = 120000
		npc.npcSlots = 5
	end,
	[127] = function(npc)
		npc.width = 80
		npc.height = 102
		npc.aiStyle = 32
		npc.damage = 47
		npc.defense = 24
		npc.lifeMax = 28000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.value = 120000
		npc.knockBackResist = 0.0
		npc.boss = true
		npc.npcSlots = 6
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[189] = true
		npc.buffImmune[169] = true
		npc.buffImmune[183] = true
		npc.boss = true
	end,
	[128] = function(npc)
		npc.width = 52
		npc.height = 52
		npc.aiStyle = 35
		npc.damage = 30
		npc.defense = 23
		npc.lifeMax = 7000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.netAlways = true
	end,
	[129] = function(npc)
		npc.width = 52
		npc.height = 52
		npc.aiStyle = 33
		npc.damage = 56
		npc.defense = 38
		npc.lifeMax = 9000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.netAlways = true
	end,
	[130] = function(npc)
		npc.width = 52
		npc.height = 52
		npc.aiStyle = 34
		npc.damage = 52
		npc.defense = 34
		npc.lifeMax = 9000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.netAlways = true
	end,
	[131] = function(npc)
		npc.width = 52
		npc.height = 52
		npc.aiStyle = 36
		npc.damage = 29
		npc.defense = 20
		npc.lifeMax = 6000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.netAlways = true
	end,
	[132] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 15
		npc.defense = 5
		npc.lifeMax = 40
		npc.knockBackResist = 0.5
		npc.value = 65
		npc.buffImmune[31] = false
	end,
	[133] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 300
		npc.knockBackResist = 0.8
		npc.value = 500
		npc.buffImmune[31] = false
	end,
	[134] = function(npc)
		npc.npcSlots = 5
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 37
		npc.defense = 0
		npc.damage = 70
		npc.lifeMax = 80000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 120000
		npc.scale = 1.25
		npc.boss = true
		npc.netAlways = true
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmuneAll = true
	end,
	[135] = function(npc)
		npc.npcSlots = 5
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 37
		npc.damage = 55
		npc.defense = 30
		npc.lifeMax = 80000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.netAlways = true
		npc.scale = 1.25
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmuneAll = true
		npc.dontCountMe = true
	end,
	[136] = function(npc)
		npc.npcSlots = 5
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 37
		npc.damage = 40
		npc.defense = 35
		npc.lifeMax = 80000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.scale = 1.25
		npc.netAlways = true
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmuneAll = true
		npc.dontCountMe = true
	end,
	[139] = function(npc)
		npc.npcSlots = 1
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 5
		npc.damage = 50
		npc.defense = 20
		npc.lifeMax = 200
		npc.noGravity = true
		npc.knockBackResist = 0.8
		npc.noTileCollide = true
		npc.buffImmuneAll = true
	end,
	[137] = function(npc)
		npc.width = 26
		npc.height = 20
		npc.aiStyle = 14
		npc.damage = 75
		npc.defense = 30
		npc.lifeMax = 200
		npc.knockBackResist = 0.75
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
	end,
	[138] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 70
		npc.defense = 30
		npc.lifeMax = 180
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.85
		npc.scale = 1.05
		npc.buffImmune[31] = false
	end,
	[140] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 55
		npc.defense = 28
		npc.lifeMax = 260
		npc.knockBackResist = 0.4
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.buffImmune[24] = true
	end,
	[141] = function(npc)
		npc.width = 34
		npc.height = 28
		npc.aiStyle = 1
		npc.damage = 50
		npc.defense = 18
		npc.lifeMax = 150
		npc.value = 400
		npc.scale = 1.1
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.knockBackResist = 0.8
	end,
	[142] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[143] = function(npc)
		npc.width = 26
		npc.height = 40
		npc.aiStyle = 38
		npc.damage = 50
		npc.defense = 20
		npc.lifeMax = 200
		npc.knockBackResist = 0.6
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[144] = function(npc)
		npc.width = 26
		npc.height = 40
		npc.aiStyle = 38
		npc.damage = 65
		npc.defense = 26
		npc.lifeMax = 240
		npc.knockBackResist = 0.6
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.coldDamage = true
	end,
	[145] = function(npc)
		npc.width = 26
		npc.height = 40
		npc.aiStyle = 38
		npc.damage = 55
		npc.defense = 22
		npc.lifeMax = 220
		npc.knockBackResist = 0.6
		npc.value = 400
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.coldDamage = true
	end,
	[147] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 8
		npc.defense = 4
		npc.lifeMax = 30
		npc.value = 50
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.coldDamage = true
	end,
	[148] = function(npc)
		npc.width = 16
		npc.height = 34
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[149] = function(npc)
		npc.width = 16
		npc.height = 34
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[150] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 14
		npc.damage = 18
		npc.defense = 6
		npc.lifeMax = 30
		npc.knockBackResist = 0.8
		npc.value = 250
		npc.buffImmune[31] = false
	end,
	[151] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 14
		npc.damage = 50
		npc.defense = 16
		npc.lifeMax = 160
		npc.knockBackResist = 0.6
		npc.value = 400
		npc.scale = 1.15
		npc.lavaImmune = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
	end,
	[152] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 38
		npc.height = 34
		npc.aiStyle = 14
		npc.damage = 80
		npc.defense = 24
		npc.lifeMax = 220
		npc.knockBackResist = 0.65
		npc.value = 400
		npc.buffImmune[31] = false
	end,
	[153] = function(npc)
		npc.npcSlots = 2
		npc.width = 46
		npc.height = 32
		npc.aiStyle = 39
		npc.damage = 80
		npc.defense = 30
		npc.lifeMax = 470
		npc.knockBackResist = 0.3
		npc.value = 500
		npc.noGravity = false
		npc.buffImmune[31] = false
	end,
	[154] = function(npc)
		npc.npcSlots = 1.5
		npc.width = 46
		npc.height = 32
		npc.aiStyle = 39
		npc.damage = 55
		npc.defense = 28
		npc.lifeMax = 400
		npc.knockBackResist = 0.3
		npc.value = 450
		npc.noGravity = false
		npc.buffImmune[31] = false
	end,
	[155] = function(npc)
		npc.width = 46
		npc.height = 30
		npc.aiStyle = 26
		npc.damage = 65
		npc.defense = 30
		npc.lifeMax = 300
		npc.knockBackResist = 0.3
		npc.value = 1000
		npc.buffImmune[31] = false
	end,
	[156] = function(npc)
		npc.npcSlots = 2
		npc.width = 28
		npc.height = 48
		npc.aiStyle = 14
		npc.damage = 50
		npc.defense = 40
		npc.lifeMax = 600
		npc.knockBackResist = 0.5
		npc.value = 1200
		npc.lavaImmune = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[157] = function(npc)
		npc.npcSlots = 0.5
		npc.noGravity = true
		npc.width = 74
		npc.height = 20
		npc.aiStyle = 16
		npc.damage = 75
		npc.defense = 30
		npc.lifeMax = 200
		npc.value = 500
	end,
	[160] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[161] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 8
		npc.lifeMax = 50
		npc.knockBackResist = 0.45
		npc.value = 80
		npc.buffImmune[31] = false
	end,
	[163] = function(npc)
		npc.width = 50
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 90
		npc.defense = 40
		npc.lifeMax = 350
		npc.knockBackResist = 0.25
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		
	end,
	[238] = function(npc)
		npc.noGravity = true
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 40
		npc.damage = 100
		npc.defense = 40
		npc.lifeMax = 350
		npc.knockBackResist = 0.25
		npc.value = 500
		
		npc.npcSlots = 0.5
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[164] = function(npc)
		npc.width = 50
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 30
		npc.defense = 10
		npc.lifeMax = 80
		npc.knockBackResist = 0.25
		npc.value = 100
		
		npc.npcSlots = 0.5
		npc.buffImmune[20] = true
	end,
	[165] = function(npc)
		npc.noGravity = true
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 40
		npc.damage = 30
		npc.defense = 10
		npc.lifeMax = 80
		npc.knockBackResist = 0.25
		npc.value = 100
		
		npc.npcSlots = 0.5
		npc.buffImmune[20] = true
	end,
	[167] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 24
		npc.defense = 10
		npc.lifeMax = 70
		npc.knockBackResist = 0.5
		npc.value = 200
		npc.buffImmune[31] = false
		npc.buffImmune[20] = true
	end,
	[168] = function(npc)
		npc.width = 16
		npc.height = 34
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 4
		npc.lifeMax = 70
		npc.value = 500
		npc.buffImmune[31] = false
	end,
	[169] = function(npc)
		npc.noGravity = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 22
		npc.damage = 55
		npc.defense = 20
		npc.lifeMax = 200
		npc.knockBackResist = 0.6
		npc.value = 1500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.buffImmune[31] = false
		npc.buffImmune[44] = true
		npc.coldDamage = true
	end,
	[170] = function(npc)
		npc.width = 44
		npc.height = 36
		npc.aiStyle = 2
		npc.damage = 70
		npc.defense = 16
		npc.lifeMax = 210
		npc.knockBackResist = 0.5
		npc.value = 2000
		npc.buffImmune[31] = false
	end,
	[171] = function(npc)
		npc.width = 44
		npc.height = 36
		npc.aiStyle = 2
		npc.damage = 70
		npc.defense = 16
		npc.lifeMax = 210
		npc.knockBackResist = 0.5
		npc.value = 2000
		npc.buffImmune[31] = false
	end,
	[172] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 200
		npc.defense = 30
		npc.lifeMax = 600
		npc.knockBackResist = 0.3
		npc.value = 5000
		npc.buffImmune[20] = true
		npc.rarity = 2
	end,
	[173] = function(npc)
		npc.npcSlots = 1
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 5
		npc.damage = 22
		npc.defense = 8
		npc.lifeMax = 40
		npc.noGravity = true
		npc.knockBackResist = 0.5
		npc.value = 90
	end,
	[174] = function(npc)
		npc.npcSlots = 1
		npc.width = 52
		npc.height = 26
		npc.aiStyle = 41
		npc.damage = 65
		npc.defense = 26
		npc.lifeMax = 220
		npc.knockBackResist = 0.3
		npc.value = 450
	end,
	[175] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 13
		npc.damage = 100
		npc.defense = 30
		npc.lifeMax = 300
		npc.knockBackResist = 0.25
		npc.value = 650
		npc.buffImmune[20] = true
	end,
	[176] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 70
		npc.defense = 22
		npc.lifeMax = 220
		npc.knockBackResist = 0.5
		npc.value = 600
		npc.noGravity = true
		npc.buffImmune[20] = true
		npc.npcSlots = 1.5
	end,
	[177] = function(npc)
		npc.npcSlots = 1
		npc.width = 58
		npc.height = 44
		npc.aiStyle = 41
		npc.damage = 80
		npc.defense = 26
		npc.lifeMax = 300
		npc.knockBackResist = 0.5
		npc.value = 500
	end,
	[178] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[179] = function(npc)
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 23
		npc.damage = 80
		npc.defense = 18
		npc.lifeMax = 200
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.4
	end,
	[180] = function(npc)
		npc.width = 44
		npc.height = 36
		npc.aiStyle = 2
		npc.damage = 70
		npc.defense = 16
		npc.lifeMax = 210
		npc.knockBackResist = 0.5
		npc.value = 4000
		npc.buffImmune[31] = false
	end,
	[181] = function(npc)
		npc.width = 18
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 25
		npc.defense = 10
		npc.lifeMax = 70
		npc.knockBackResist = 0.4
		npc.value = 200
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[182] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 24
		npc.height = 62
		npc.aiStyle = 22
		npc.damage = 65
		npc.defense = 18
		npc.lifeMax = 240
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.7
	end,
	[183] = function(npc)
		npc.width = 40
		npc.height = 30
		npc.aiStyle = 1
		npc.damage = 60
		npc.defense = 26
		npc.lifeMax = 200
		npc.value = 400
		npc.scale = 1.1
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[184] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 12
		npc.defense = 8
		npc.lifeMax = 60
		npc.scale = 1.1
		npc.value = 200
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.coldDamage = true
	end,
	[185] = function(npc)
		npc.width = 28
		npc.height = 28
		npc.aiStyle = 3
		npc.damage = 26
		npc.defense = 12
		npc.lifeMax = 70
		npc.knockBackResist = 1.1
		npc.value = 200
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.coldDamage = true
	end,
	[186] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 8
		npc.lifeMax = 50
		npc.knockBackResist = 0.45
		npc.value = 65
		npc.buffImmune[31] = false
	end,
	[187] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 13
		npc.defense = 6
		npc.lifeMax = 40
		npc.knockBackResist = 0.55
		npc.value = 55
		npc.buffImmune[31] = false
	end,
	[188] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 13
		npc.defense = 8
		npc.lifeMax = 45
		npc.knockBackResist = 0.45
		npc.value = 80
		npc.buffImmune[31] = false
	end,
	[189] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 4
		npc.lifeMax = 45
		npc.knockBackResist = 0.55
		npc.value = 70
		npc.buffImmune[31] = false
	end,
	[190] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 18
		npc.defense = 4
		npc.lifeMax = 65
		npc.knockBackResist = 0.7
		npc.value = 75
		npc.buffImmune[31] = false
	end,
	[191] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 16
		npc.defense = 2
		npc.lifeMax = 60
		npc.knockBackResist = 0.85
		npc.value = 75
		npc.buffImmune[31] = false
	end,
	[192] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 18
		npc.defense = 2
		npc.lifeMax = 50
		npc.knockBackResist = 0.8
		npc.value = 75
		npc.buffImmune[31] = false
	end,
	[193] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 20
		npc.defense = 0
		npc.lifeMax = 60
		npc.knockBackResist = 0.8
		npc.value = 75
		npc.buffImmune[31] = false
	end,
	[194] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 14
		npc.defense = 4
		npc.lifeMax = 60
		npc.knockBackResist = 0.8
		npc.value = 75
		npc.buffImmune[31] = false
	end,
	[195] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 42
		npc.damage = 10
		npc.defense = 30
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.rarity = 1
	end,
	[196] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 35
		npc.defense = 16
		npc.lifeMax = 300
		npc.knockBackResist = 0.4
		npc.value = 10000
		npc.buffImmune[31] = false
		npc.rarity = 1
	end,
	[197] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 28
		npc.lifeMax = 280
		npc.knockBackResist = 0.45
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[198] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 38
		npc.defense = 20
		npc.lifeMax = 400
		npc.knockBackResist = 0.4
		npc.value = 650
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[199] = function(npc)
		npc.width = 42
		npc.height = 30
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 30
		npc.lifeMax = 400
		npc.knockBackResist = 0.0
		npc.value = 650
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[200] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 12
		npc.defense = 4
		npc.lifeMax = 38
		npc.knockBackResist = 0.6
		npc.value = 65
		npc.buffImmune[31] = false
	end,
	[201] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 12
		npc.lifeMax = 55
		npc.knockBackResist = 0.5
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[202] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 18
		npc.defense = 8
		npc.lifeMax = 65
		npc.knockBackResist = 0.5
		npc.value = 120
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[203] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 22
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 110
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[204] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 28
		npc.defense = 8
		npc.lifeMax = 65
		npc.scale = 1.15
		npc.value = 300
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[205] = function(npc)
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 5
		npc.damage = 70
		npc.defense = 28
		npc.lifeMax = 1000
		npc.knockBackResist = 0.4
		npc.value = 600
		npc.noGravity = true
		npc.buffImmune[20] = true
		npc.rarity = 2
	end,
	[206] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 30
		npc.lifeMax = 280
		npc.knockBackResist = 0.5
		npc.value = 500
		npc.buffImmune[31] = false
		npc.coldDamage = true
	end,
	[207] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[208] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[209] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[210] = function(npc)
		npc.width = 12
		npc.height = 12
		npc.aiStyle = 5
		npc.damage = 20
		npc.defense = 5
		npc.lifeMax = 20
		npc.knockBackResist = 0.5
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[211] = function(npc)
		npc.width = 8
		npc.height = 8
		npc.aiStyle = 5
		npc.damage = 15
		npc.defense = 2
		npc.lifeMax = 10
		npc.knockBackResist = 0.5
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[212] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 35
		npc.defense = 17
		npc.lifeMax = 300
		npc.knockBackResist = 0.4
		npc.value = 700
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[213] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 22
		npc.lifeMax = 450
		npc.knockBackResist = 0.2
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[214] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 30
		npc.defense = 14
		npc.lifeMax = 225
		npc.knockBackResist = 0.3
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[215] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 35
		npc.defense = 20
		npc.lifeMax = 350
		npc.knockBackResist = 0.35
		npc.value = 1500
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[216] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 30
		npc.lifeMax = 3000
		npc.knockBackResist = 0.0
		npc.value = 50000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = true
	end,
	[217] = function(npc)
		npc.width = 28
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 40
		npc.value = 60
	end,
	[218] = function(npc)
		npc.width = 28
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 40
		npc.value = 60
	end,
	[219] = function(npc)
		npc.width = 28
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 40
		npc.value = 60
	end,
	[220] = function(npc)
		npc.width = 28
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 40
		npc.value = 60
	end,
	[221] = function(npc)
		npc.noGravity = true
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 18
		npc.damage = 20
		npc.defense = 2
		npc.lifeMax = 30
		npc.value = 100
	end,
	[222] = function(npc)
		npc.width = 66
		npc.height = 66
		npc.aiStyle = 43
		npc.damage = 30
		npc.defense = 8
		npc.lifeMax = 3400
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		
		npc.boss = true
		npc.value = 100000
		npc.npcSlots = 7
	end,
	[223] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 8
		npc.lifeMax = 50
		npc.knockBackResist = 0.45
		npc.value = 70
		npc.buffImmune[31] = false
	end,
	[224] = function(npc)
		npc.width = 32
		npc.height = 18
		npc.aiStyle = 44
		npc.damage = 9
		npc.defense = 4
		npc.lifeMax = 20
		npc.knockBackResist = 0.8
		npc.value = 90
		npc.buffImmune[31] = false
	end,
	[225] = function(npc)
		npc.width = 38
		npc.height = 26
		npc.aiStyle = 1
		npc.damage = 10
		npc.defense = 5
		npc.lifeMax = 35
		npc.knockBackResist = 0.75
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[226] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 34
		npc.height = 50
		npc.aiStyle = 14
		npc.damage = 85
		npc.defense = 28
		npc.lifeMax = 260
		npc.knockBackResist = 0.65
		npc.value = 400
		npc.buffImmune[31] = false
	end,
	[227] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[228] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[229] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[230] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[231] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 22
		npc.defense = 16
		npc.lifeMax = 50
		npc.knockBackResist = 0.3
		npc.value = 200
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[232] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 28
		npc.defense = 12
		npc.lifeMax = 42
		npc.knockBackResist = 0.6
		npc.value = 200
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[233] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 30
		npc.defense = 14
		npc.lifeMax = 38
		npc.knockBackResist = 0.45
		npc.value = 200
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[234] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 32
		npc.defense = 6
		npc.lifeMax = 42
		npc.knockBackResist = 0.55
		npc.value = 200
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[235] = function(npc)
		npc.width = 34
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 34
		npc.defense = 4
		npc.lifeMax = 38
		npc.knockBackResist = 0.6
		npc.value = 200
		npc.noGravity = true
		npc.buffImmune[20] = true
	end,
	[236] = function(npc)
		npc.width = 50
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 14
		npc.lifeMax = 120
		npc.knockBackResist = 0.25
		npc.value = 1000
		
		npc.npcSlots = 0.75
		npc.buffImmune[20] = true
	end,
	[237] = function(npc)
		npc.noGravity = true
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 40
		npc.damage = 50
		npc.defense = 14
		npc.lifeMax = 120
		npc.knockBackResist = 0.25
		npc.value = 1000
		
		npc.npcSlots = 0.75
		npc.buffImmune[20] = true
	end,
	[239] = function(npc)
		npc.width = 50
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 30
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 130
		
		npc.buffImmune[20] = true
	end,
	[240] = function(npc)
		npc.noGravity = true
		npc.width = 50
		npc.height = 20
		npc.aiStyle = 40
		npc.damage = 30
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 130
		
		npc.buffImmune[20] = true
	end,
	[241] = function(npc)
		npc.npcSlots = 0.5
		npc.noGravity = true
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 16
		npc.damage = 30
		npc.defense = 4
		npc.lifeMax = 20
		npc.value = 350
	end,
	[242] = function(npc)
		npc.noGravity = true
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 18
		npc.damage = 75
		npc.defense = 20
		npc.lifeMax = 150
		npc.value = 800
	end,
	[243] = function(npc)
		npc.width = 30
		npc.height = 114
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 32
		npc.lifeMax = 4000
		npc.knockBackResist = 0.05
		npc.value = buyPrice(0, 1, 50, 0)
		npc.buffImmune[20] = true
		npc.buffImmune[44] = true
		npc.coldDamage = true
		npc.rarity = 2
	end,
	[244] = function(npc)
		npc.width = 60
		npc.height = 42
		npc.aiStyle = 1
		npc.damage = 85
		npc.defense = 26
		npc.lifeMax = 400
		npc.value = buyPrice(0, 0, 20, 0)
		npc.knockBackResist = 0.3
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.rarity = 1
	end,
	[245] = function(npc)
		npc.width = 140
		npc.height = 140
		npc.aiStyle = 45
		npc.damage = 72
		npc.defense = 26
		npc.lifeMax = 9000
		npc.knockBackResist = 0.0
		npc.value = buyPrice(0, 15, 0, 0)
		npc.boss = true
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[246] = function(npc)
		npc.noGravity = true
		npc.width = 70
		npc.height = 70
		npc.aiStyle = 46
		npc.damage = 64
		npc.defense = 20
		npc.lifeMax = 16000
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[247] = function(npc)
		npc.noGravity = true
		npc.width = 40
		npc.height = 30
		npc.aiStyle = 47
		npc.damage = 59
		npc.defense = 28
		npc.lifeMax = 7000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[249] = function(npc)
		npc.noGravity = true
		npc.width = 70
		npc.height = 70
		npc.aiStyle = 48
		npc.damage = 80
		npc.defense = 32
		npc.lifeMax = 11000
		npc.knockBackResist = 0.0
		npc.dontTakeDamage = true
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[250] = function(npc)
		npc.width = 34
		npc.height = 26
		npc.aiStyle = 49
		npc.damage = 50
		npc.defense = 24
		npc.lifeMax = 300
		npc.knockBackResist = 0.3
		npc.value = 300
		npc.buffImmune[20] = true
	end,
	[251] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 30
		npc.lifeMax = 1000
		npc.knockBackResist = 0.3
		npc.value = buyPrice(0, 0, 50, 0)
		npc.buffImmune[31] = false
	end,
	[252] = function(npc)
		npc.noGravity = true
		npc.npcSlots = 0.5
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 5
		npc.damage = 80
		npc.defense = 12
		npc.lifeMax = 100
		npc.knockBackResist = 0.7
		npc.value = 500
		npc.buffImmune[31] = false
	end,
	[254] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 40
		npc.defense = 10
		npc.lifeMax = 180
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[31] = false
	end,
	[255] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 38
		npc.defense = 16
		npc.lifeMax = 220
		npc.knockBackResist = 0.3
		npc.value = 1200
		npc.buffImmune[31] = false
	end,
	[256] = function(npc)
		npc.noGravity = true
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 18
		npc.damage = 90
		npc.defense = 20
		npc.lifeMax = 140
		npc.value = 1200
		npc.npcSlots = 0.3
	end,
	[257] = function(npc)
		npc.width = 44
		npc.height = 34
		npc.aiStyle = 3
		npc.damage = 38
		npc.defense = 24
		npc.lifeMax = 230
		npc.knockBackResist = 0.3
		npc.value = 1300
		npc.buffImmune[31] = false
		npc.npcSlots = 0.3
	end,
	[258] = function(npc)
		npc.width = 30
		npc.height = 24
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 16
		npc.lifeMax = 220
		npc.knockBackResist = 0.3
		npc.value = 1500
		npc.buffImmune[31] = false
		npc.npcSlots = 0.3
	end,
	[259] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 13
		npc.damage = 24
		npc.defense = 4
		npc.lifeMax = 90
		npc.knockBackResist = 0.0
		npc.value = 350
		npc.buffImmune[20] = true
		npc.npcSlots = 0.3
	end,
	[260] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 13
		npc.damage = 70
		npc.defense = 20
		npc.lifeMax = 300
		npc.knockBackResist = 0.0
		npc.value = 1250
		npc.buffImmune[20] = true
		npc.npcSlots = 0.3
	end,
	[261] = function(npc)
		npc.width = 12
		npc.height = 12
		npc.aiStyle = 50
		npc.damage = 80
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.npcSlots = 0.0
	end,
	[262] = function(npc)
		npc.noTileCollide = true
		npc.width = 86
		npc.height = 86
		npc.aiStyle = 51
		npc.damage = 50
		npc.defense = 14
		npc.lifeMax = 30000
		npc.knockBackResist = 0.0
		npc.value = buyPrice(0, 15, 0, 0)
		npc.noGravity = true
		npc.boss = true
		npc.npcSlots = 16
		npc.buffImmune[20] = true
	end,
	[263] = function(npc)
		npc.noTileCollide = true
		npc.noGravity = true
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 52
		npc.damage = 60
		npc.defense = 24
		npc.lifeMax = 4000
		npc.dontTakeDamage = true
		npc.buffImmune[20] = true
	end,
	[264] = function(npc)
		npc.width = 24
		npc.height = 24
		npc.aiStyle = 53
		npc.damage = 60
		npc.defense = 20
		npc.lifeMax = 1000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmune[20] = true
	end,
	[265] = function(npc)
		npc.width = 18
		npc.height = 18
		npc.aiStyle = 50
		npc.damage = 70
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.npcSlots = 0.0
	end,
	[266] = function(npc)
		npc.dontTakeDamage = true
		npc.width = 160
		npc.height = 110
		npc.aiStyle = 54
		npc.damage = 30
		npc.defense = 14
		npc.lifeMax = 1000
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		
		npc.boss = true
		npc.value = 50000
		npc.npcSlots = 6
	end,
	[267] = function(npc)
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 55
		npc.damage = 20
		npc.defense = 10
		npc.lifeMax = 100
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.8
	end,
	[268] = function(npc)
		npc.noGravity = true
		npc.width = 28
		npc.height = 56
		npc.aiStyle = 22
		npc.damage = 55
		npc.defense = 20
		npc.lifeMax = 340
		npc.knockBackResist = 0.6
		npc.value = 450
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[269] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 34
		npc.lifeMax = 550
		npc.knockBackResist = 0.3
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[270] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 55
		npc.defense = 50
		npc.lifeMax = 400
		npc.knockBackResist = 0.2
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[271] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 40
		npc.lifeMax = 450
		npc.knockBackResist = 0.25
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[272] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 75
		npc.defense = 28
		npc.lifeMax = 400
		npc.knockBackResist = 0.35
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[273] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 45
		npc.defense = 50
		npc.lifeMax = 500
		npc.knockBackResist = 0.15
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[274] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 65
		npc.defense = 34
		npc.lifeMax = 350
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[275] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 45
		npc.defense = 50
		npc.lifeMax = 550
		npc.knockBackResist = 0.15
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[276] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 85
		npc.defense = 54
		npc.lifeMax = 500
		npc.knockBackResist = 0.2
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[277] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 32
		npc.lifeMax = 400
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[31] = false
	end,
	[278] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 65
		npc.defense = 48
		npc.lifeMax = 450
		npc.knockBackResist = 0.3
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[31] = false
	end,
	[279] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 40
		npc.defense = 54
		npc.lifeMax = 500
		npc.knockBackResist = 0.2
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[31] = false
	end,
	[280] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 75
		npc.defense = 34
		npc.lifeMax = 500
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[31] = false
	end,
	[281] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 400
		npc.knockBackResist = 0.6
		npc.value = 1500
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[282] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 35
		npc.defense = 28
		npc.lifeMax = 450
		npc.knockBackResist = 0.5
		npc.value = 1500
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[283] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 50
		npc.defense = 18
		npc.lifeMax = 300
		npc.knockBackResist = 0.55
		npc.value = 1500
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[284] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 35
		npc.defense = 24
		npc.lifeMax = 450
		npc.knockBackResist = 0.5
		npc.value = 1500
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[285] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 50
		npc.defense = 12
		npc.lifeMax = 200
		npc.knockBackResist = 0.7
		npc.value = 1500
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[286] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 8
		npc.damage = 60
		npc.defense = 10
		npc.lifeMax = 250
		npc.knockBackResist = 0.65
		npc.value = 1500
		npc.npcSlots = 2
		npc.buffImmune[20] = true
	end,
	[287] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 90
		npc.defense = 42
		npc.lifeMax = 1000
		npc.knockBackResist = 0.3
		npc.value = 2000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.rarity = 1
	end,
	[288] = function(npc)
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 56
		npc.damage = 70
		npc.defense = 30
		npc.lifeMax = 200
		npc.knockBackResist = 0.2
		npc.value = 500
		npc.noTileCollide = true
		npc.noGravity = true
		npc.buffImmuneAll = true
	end,
	[289] = function(npc)
		npc.width = 44
		npc.height = 44
		npc.aiStyle = 10
		npc.damage = 60
		npc.defense = 20
		npc.lifeMax = 400
		npc.noGravity = true
		npc.noTileCollide = true
		npc.value = 150
		npc.knockBackResist = 0.2
		npc.npcSlots = 0.75
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[290] = function(npc)
		npc.width = 34
		npc.height = 62
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 50
		npc.lifeMax = 5000
		npc.knockBackResist = 0.0
		npc.value = 50000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = true
		npc.rarity = 1
	end,
	[291] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 28
		npc.lifeMax = 400
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.rarity = 2
	end,
	[292] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 28
		npc.lifeMax = 400
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.rarity = 2
	end,
	[293] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 28
		npc.lifeMax = 400
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.rarity = 2
	end,
	[294] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 34
		npc.defense = 6
		npc.lifeMax = 70
		npc.knockBackResist = 0.9
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[295] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 28
		npc.defense = 12
		npc.lifeMax = 70
		npc.knockBackResist = 0.7
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[296] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 24
		npc.defense = 14
		npc.lifeMax = 120
		npc.knockBackResist = 0.6
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[299] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[300] = function(npc)
		npc.width = 14
		npc.height = 12
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.25
		
	end,
	[301] = function(npc)
		npc.width = 36
		npc.height = 26
		npc.aiStyle = 17
		npc.damage = 12
		npc.defense = 2
		npc.lifeMax = 35
		npc.knockBackResist = 0.85
		npc.value = 50
	end,
	[302] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 7
		npc.defense = 2
		npc.lifeMax = 25
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[304] = function(npc)
		npc.width = 34
		npc.height = 28
		npc.aiStyle = 1
		npc.damage = 80
		npc.defense = 20
		npc.lifeMax = 175
		npc.value = 500
		npc.scale = 1.1
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.knockBackResist = 0.5
		npc.npcSlots = 0.3
	end,
	[305] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 60
		npc.defense = 18
		npc.lifeMax = 500
		npc.knockBackResist = 0.4
	end,
	[306] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 52
		npc.defense = 14
		npc.lifeMax = 400
		npc.knockBackResist = 0.2
		npc.scale = 1.05
	end,
	[307] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 78
		npc.defense = 16
		npc.lifeMax = 600
		npc.knockBackResist = 0.25
		npc.scale = 0.9
	end,
	[308] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 66
		npc.defense = 14
		npc.lifeMax = 650
		npc.knockBackResist = 0.35
		npc.scale = 0.95
	end,
	[309] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 52
		npc.defense = 26
		npc.lifeMax = 450
		npc.knockBackResist = 0.5
		npc.scale = 1.1
	end,
	[315] = function(npc)
		npc.width = 74
		npc.height = 70
		npc.aiStyle = 26
		npc.damage = 130
		npc.defense = 40
		npc.lifeMax = 10000
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.buffImmuneAll = true
	end,
	[316] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 22
		npc.damage = 40
		npc.defense = 14
		npc.lifeMax = 100
		npc.value = 700
		npc.buffImmuneAll = true
		npc.knockBackResist = 0.7
	end,
	[317] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 16
		npc.defense = 6
		npc.lifeMax = 75
		npc.knockBackResist = 0.7
		npc.value = 100
		npc.buffImmune[31] = false
	end,
	[318] = function(npc)
		npc.width = 30
		npc.height = 32
		npc.aiStyle = 2
		npc.damage = 20
		npc.defense = 4
		npc.lifeMax = 60
		npc.knockBackResist = 0.65
		npc.value = 100
		npc.buffImmune[31] = false
	end,
	[319] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 6
		npc.lifeMax = 40
		npc.knockBackResist = 0.6
		npc.value = 85
		npc.buffImmune[31] = false
		npc.scale = 0.9
	end,
	[320] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 15
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 105
		npc.buffImmune[31] = false
		npc.scale = 1.05
	end,
	[321] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 14
		npc.lifeMax = 34
		npc.knockBackResist = 0.3
		npc.value = 120
		npc.buffImmune[31] = false
		npc.scale = 1.1
	end,
	[322] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 23
		npc.defense = 0
		npc.lifeMax = 115
		npc.knockBackResist = 0.65
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[323] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 18
		npc.defense = 10
		npc.lifeMax = 65
		npc.knockBackResist = 0.5
		npc.value = 120
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[324] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 22
		npc.defense = 10
		npc.lifeMax = 70
		npc.knockBackResist = 0.4
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.scale = 1.05
	end,
	[325] = function(npc)
		npc.width = 164
		npc.height = 154
		npc.aiStyle = 57
		npc.damage = 120
		npc.defense = 28
		npc.lifeMax = 12000
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.buffImmuneAll = true
	end,
	[326] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 32
		npc.lifeMax = 900
		npc.knockBackResist = 0.2
		npc.value = 2000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[327] = function(npc)
		npc.width = 100
		npc.height = 100
		npc.aiStyle = 58
		npc.damage = 50
		npc.defense = 36
		npc.lifeMax = 22000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.value = 50000
		npc.knockBackResist = 0.0
		npc.buffImmuneAll = true
	end,
	[328] = function(npc)
		npc.width = 80
		npc.height = 80
		npc.aiStyle = 59
		npc.damage = 65
		npc.defense = 14
		npc.lifeMax = 5000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.buffImmuneAll = true
		npc.dontTakeDamage = true
		npc.npcSlots = 0.0
	end,
	[329] = function(npc)
		npc.width = 46
		npc.height = 30
		npc.aiStyle = 26
		npc.damage = 80
		npc.defense = 38
		npc.lifeMax = 1200
		npc.knockBackResist = 0.3
		npc.value = 3000
		npc.buffImmuneAll = true
	end,
	[330] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 22
		npc.damage = 90
		npc.defense = 44
		npc.lifeMax = 2000
		npc.value = 4500
		npc.buffImmuneAll = true
		npc.knockBackResist = 0.4
	end,
	[331] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 6
		npc.lifeMax = 45
		npc.knockBackResist = 0.5
		npc.value = 60
		npc.buffImmune[31] = false
	end,
	[332] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 6
		npc.lifeMax = 45
		npc.knockBackResist = 0.5
		npc.value = 60
		npc.buffImmune[31] = false
	end,
	[333] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 7
		npc.defense = 2
		npc.lifeMax = 25
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[334] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 6
		npc.defense = 2
		npc.lifeMax = 23
		npc.scale = 0.9
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[335] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 8
		npc.defense = 3
		npc.lifeMax = 29
		npc.scale = 1.05
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[336] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 5
		npc.defense = 1
		npc.lifeMax = 22
		npc.scale = 0.85
		npc.value = 25
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[338] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 65
		npc.defense = 18
		npc.lifeMax = 600
		npc.knockBackResist = 0.4
	end,
	[339] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 52
		npc.defense = 24
		npc.lifeMax = 700
		npc.knockBackResist = 0.2
		npc.scale = 1.05
	end,
	[340] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.damage = 78
		npc.defense = 14
		npc.lifeMax = 500
		npc.knockBackResist = 0.25
		npc.scale = 0.9
	end,
	[341] = function(npc)
		npc.width = 24
		npc.height = 24
		npc.aiStyle = 25
		npc.damage = 100
		npc.defense = 32
		npc.lifeMax = 900
		npc.value = buyPrice(0, 0, 20, 0)
		npc.knockBackResist = 0.25
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[342] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 90
		npc.defense = 26
		npc.lifeMax = 750
		npc.knockBackResist = 0.2
		npc.value = 1800
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[343] = function(npc)
		npc.width = 38
		npc.height = 78
		npc.aiStyle = 3
		npc.damage = 140
		npc.defense = 50
		npc.lifeMax = 3500
		npc.knockBackResist = 0.0
		npc.value = 3000
		npc.buffImmune[31] = false
		npc.npcSlots = 2
	end,
	[344] = function(npc)
		npc.width = 172
		npc.height = 130
		npc.aiStyle = 57
		npc.damage = 110
		npc.defense = 38
		npc.lifeMax = 13000
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.buffImmune[20] = true
		npc.npcSlots = 3
	end,
	[345] = function(npc)
		npc.width = 130
		npc.height = 140
		npc.aiStyle = 60
		npc.damage = 120
		npc.defense = 38
		npc.lifeMax = 34000
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.buffImmune[20] = true
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 5
		npc.coldDamage = true
	end,
	[346] = function(npc)
		npc.width = 112
		npc.height = 140
		npc.aiStyle = 61
		npc.damage = 120
		npc.defense = 56
		npc.lifeMax = 18000
		npc.knockBackResist = 0.0
		npc.value = 10000
		npc.buffImmune[20] = true
		npc.npcSlots = 4
	end,
	[347] = function(npc)
		npc.width = 50
		npc.height = 50
		npc.aiStyle = 62
		npc.damage = 60
		npc.defense = 28
		npc.lifeMax = 1200
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 1.5
	end,
	[348] = function(npc)
		npc.width = 28
		npc.height = 76
		npc.aiStyle = 3
		npc.damage = 80
		npc.defense = 26
		npc.lifeMax = 1800
		npc.knockBackResist = 0.4
		npc.value = 1500
		npc.buffImmune[31] = false
		npc.npcSlots = 1.5
	end,
	[349] = function(npc)
		npc.width = 28
		npc.height = 76
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 42
		npc.lifeMax = 1800
		npc.knockBackResist = 0.1
		npc.value = 1500
		npc.buffImmune[31] = false
		npc.npcSlots = 1.5
	end,
	[350] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 30
		npc.lifeMax = 900
		npc.knockBackResist = 0.45
		npc.value = 900
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[351] = function(npc)
		npc.width = 18
		npc.height = 90
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 40
		npc.lifeMax = 2500
		npc.knockBackResist = 0.1
		npc.value = 3000
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
		npc.npcSlots = 1.75
	end,
	[352] = function(npc)
		npc.width = 54
		npc.height = 54
		npc.aiStyle = 63
		npc.damage = 75
		npc.defense = 8
		npc.lifeMax = 450
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.4
		npc.noGravity = true
		npc.noTileCollide = true
		npc.npcSlots = 2
		npc.coldDamage = true
	end,
	[353] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[354] = function(npc)
		npc.friendly = true
		npc.width = 18
		npc.height = 34
		npc.aiStyle = 0
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.scale = 0.9
		npc.rarity = 1
	end,
	[355] = function(npc)
		npc.width = 10
		npc.height = 10
		npc.aiStyle = 64
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.2
		npc.noGravity = true
		
	end,
	[356] = function(npc)
		npc.width = 10
		npc.height = 10
		npc.aiStyle = 65
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.25
		npc.noGravity = true
		
	end,
	[357] = function(npc)
		npc.width = 10
		npc.height = 4
		npc.aiStyle = 66
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.1
		
		npc.friendly = true
	end,
	[358] = function(npc)
		npc.width = 12
		npc.height = 12
		npc.aiStyle = 64
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.2
		npc.noGravity = true
		
	end,
	[359] = function(npc)
		npc.width = 12
		npc.height = 12
		npc.aiStyle = 67
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.5
		npc.noGravity = true
		
	end,
	[360] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 67
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.5
		npc.noGravity = true
		
	end,
	[361] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[362] = function(npc)
		npc.width = 22
		npc.height = 26
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[363] = function(npc)
		npc.width = 28
		npc.height = 22
		npc.aiStyle = 68
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[364] = function(npc)
		npc.width = 22
		npc.height = 26
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[365] = function(npc)
		npc.width = 28
		npc.height = 22
		npc.aiStyle = 68
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[366] = function(npc)
		npc.width = 26
		npc.height = 18
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
	end,
	[368] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[369] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[370] = function(npc)
		npc.width = 150
		npc.height = 100
		npc.aiStyle = 69
		npc.damage = 100
		npc.defense = 50
		npc.lifeMax = 50000
		npc.knockBackResist = 0.0
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 10
		npc.value = 10000
		npc.boss = true
		npc.netAlways = true
		
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[31] = true
		npc.buffImmune[44] = true
	end,
	[371] = function(npc)
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 70
		npc.damage = 100
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
	end,
	[372] = function(npc)
		npc.noGravity = true
		npc.width = 120
		npc.height = 24
		npc.aiStyle = 71
		npc.damage = 100
		npc.defense = 100
		npc.lifeMax = 100
		npc.knockBackResist = 0.0
	end,
	[373] = function(npc)
		npc.noGravity = true
		npc.width = 100
		npc.height = 24
		npc.aiStyle = 71
		npc.damage = 120
		npc.defense = 100
		npc.lifeMax = 100
		npc.knockBackResist = 0.0
	end,
	[374] = function(npc)
		npc.width = 20
		npc.height = 10
		npc.aiStyle = 66
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.15
		
		npc.rarity = 4
	end,
	[375] = function(npc)
		npc.width = 10
		npc.height = 10
		npc.aiStyle = 6
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.npcSlots = 0.15
		
	end,
	[376] = function(npc)
		npc.friendly = true
		npc.width = 34
		npc.height = 8
		npc.aiStyle = 0
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.scale = 0.9
		npc.rarity = 1
	end,
	[377] = function(npc)
		npc.width = 14
		npc.height = 12
		npc.aiStyle = 1
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.friendly = true
		
		npc.npcSlots = 0.1
	end,
	[378] = function(npc)
		npc.npcSlots = 1
		npc.width = 20
		npc.height = 26
		npc.aiStyle = 41
		npc.damage = 80
		npc.defense = 30
		npc.lifeMax = 200
		npc.knockBackResist = 0.5
		npc.value = 450
	end,
	[379] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 45
		npc.defense = 14
		npc.lifeMax = 210
		npc.knockBackResist = 0.55
		npc.value = 1000
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		npc.netAlways = true
		npc.chaseable = false
	end,
	[381] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 25
		npc.lifeMax = 350
		npc.knockBackResist = 0.35
		npc.value = 1000
	end,
	[383] = function(npc)
		npc.lifeMax = 300
		npc.defense = 50
		npc.damage = 75
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.knockBackResist = 0.25
		npc.buffImmune[31] = false
	end,
	[384] = function(npc)
		npc.lifeMax = 1000
		npc.width = 18
		npc.damage = 0
		npc.defense = 20
		npc.height = 40
		npc.aiStyle = 72
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
		npc.noTileCollide = true
		npc.canGhostHeal = false
	end,
	[385] = function(npc)
		npc.lifeMax = 750
		npc.defense = 30
		npc.damage = 80
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 600
		npc.knockBackResist = 0.0
		npc.npcSlots = 0.75
	end,
	[386] = function(npc)
		npc.lifeMax = 400
		npc.defense = 34
		npc.damage = 40
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.knockBackResist = 0.4
	end,
	[387] = function(npc)
		npc.width = 20
		npc.height = 50
		npc.aiStyle = 73
		npc.damage = 10
		npc.defense = 40
		npc.lifeMax = 200
		npc.knockBackResist = 0.0
		npc.buffImmune[31] = true
		npc.canGhostHeal = false
	end,
	[388] = function(npc)
		npc.width = 40
		npc.height = 30
		npc.aiStyle = 74
		npc.damage = 60
		npc.defense = 16
		npc.lifeMax = 300
		npc.knockBackResist = 0.4
		npc.value = 1000
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 1.5
		npc.canGhostHeal = false
	end,
	[389] = function(npc)
		npc.lifeMax = 600
		npc.defense = 38
		npc.damage = 75
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.npcSlots = 0.5
		npc.knockBackResist = 0.3
	end,
	[390] = function(npc)
		npc.damage = 65
		npc.defense = 30
		npc.lifeMax = 350
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 75
		npc.value = 1200
		npc.npcSlots = 0.5
	end,
	[391] = function(npc)
		npc.lifeMax = 600
		npc.defense = 30
		npc.damage = 85
		npc.width = 60
		npc.height = 40
		npc.aiStyle = 3
		npc.value = 1200
		npc.npcSlots = 0.5
		npc.knockBackResist = 0.1
	end,
	[392] = function(npc)
		npc.lifeMax = 100
		npc.defense = 100
		npc.damage = 50
		npc.width = 150
		npc.height = 80
		npc.aiStyle = 75
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.dontTakeDamage = true
		npc.buffImmuneAll = true
		npc.netAlways = true
	end,
	[393] = function(npc)
		npc.lifeMax = 5000
		npc.defense = 20
		npc.damage = 60
		npc.width = 40
		npc.height = 16
		npc.aiStyle = 75
		npc.value = 0.0
		npc.npcSlots = 1
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.netAlways = true
	end,
	[394] = function(npc)
		npc.lifeMax = 3500
		npc.defense = 20
		npc.damage = 60
		npc.width = 46
		npc.height = 36
		npc.aiStyle = 75
		npc.value = 0.0
		npc.npcSlots = 1
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.netAlways = true
	end,
	[395] = function(npc)
		npc.lifeMax = 10000
		npc.defense = 0
		npc.damage = 80
		npc.width = 46
		npc.height = 36
		npc.aiStyle = 76
		npc.value = 0.0
		npc.npcSlots = 6
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.dontTakeDamage = true
		npc.boss = true
		npc.buffImmuneAll = true
		npc.netAlways = true
	end,
	[399] = function(npc)
		npc.defense = 5
		npc.damage = 5
		npc.lifeMax = 500
		npc.aiStyle = 80
		npc.width = 42
		npc.height = 72
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.npcSlots = 0.0
		npc.noGravity = true
		
		npc.chaseable = false
		npc.netAlways = true
		npc.rarity = 1
	end,
	[396] = function(npc)
		npc.lifeMax = 45000
		npc.defense = 50
		npc.damage = 0
		npc.width = 38
		npc.height = 56
		npc.aiStyle = 79
		npc.value = 0.0
		npc.npcSlots = 6
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.boss = true
		npc.hide = true
		npc.netAlways = true
	end,
	[397] = function(npc)
		npc.lifeMax = 25000
		npc.defense = 40
		npc.damage = 0
		npc.width = 46
		npc.height = 66
		npc.aiStyle = 78
		npc.value = 0.0
		npc.npcSlots = 6
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.boss = true
		npc.hide = true
		npc.netAlways = true
	end,
	[398] = function(npc)
		npc.lifeMax = 50000
		npc.defense = 70
		npc.damage = 0
		npc.width = 46
		npc.height = 66
		npc.aiStyle = 77
		npc.value = 0.0
		npc.npcSlots = 6
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.dontTakeDamage = true
		npc.boss = true
		npc.behindTiles = true
		npc.hide = true
		npc.netAlways = true
	end,
	[400] = function(npc)
		npc.defense = 0
		npc.damage = 60
		npc.lifeMax = 100
		npc.aiStyle = 81
		npc.width = 60
		npc.height = 60
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.npcSlots = 0.0
		npc.noGravity = true
		npc.dontTakeDamage = true
		npc.noTileCollide = true
		npc.netAlways = true
	end,
	[401] = function(npc)
		npc.lifeMax = 400
		npc.defense = 0
		npc.damage = 0
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 82
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.hide = true
	end,
	[430] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 6
		npc.lifeMax = 45
		npc.knockBackResist = 0.5
		npc.value = 60
		npc.buffImmune[31] = false
	end,
	[431] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 8
		npc.lifeMax = 50
		npc.knockBackResist = 0.45
		npc.value = 80
		npc.buffImmune[31] = false
	end,
	[432] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 8
		npc.lifeMax = 50
		npc.knockBackResist = 0.45
		npc.value = 65
		npc.buffImmune[31] = false
	end,
	[433] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 13
		npc.defense = 6
		npc.lifeMax = 40
		npc.knockBackResist = 0.55
		npc.value = 55
		npc.buffImmune[31] = false
	end,
	[434] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 13
		npc.defense = 8
		npc.lifeMax = 45
		npc.knockBackResist = 0.45
		npc.value = 80
		npc.buffImmune[31] = false
	end,
	[435] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 16
		npc.defense = 4
		npc.lifeMax = 45
		npc.knockBackResist = 0.55
		npc.value = 70
		npc.buffImmune[31] = false
	end,
	[436] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 12
		npc.defense = 4
		npc.lifeMax = 38
		npc.knockBackResist = 0.6
		npc.value = 65
		npc.buffImmune[31] = false
	end,
	[437] = function(npc)
		npc.lifeMax = 400
		npc.defense = 0
		npc.damage = 0
		npc.width = 54
		npc.height = 54
		npc.aiStyle = 83
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.dontTakeDamage = true
		npc.netAlways = true
	end,
	[438] = function(npc)
		npc.lifeMax = 400
		npc.defense = 0
		npc.damage = 0
		npc.width = 22
		npc.height = 40
		npc.aiStyle = 83
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.knockBackResist = 0.0
		npc.lavaImmune = true
		npc.netAlways = true
		npc.chaseable = false
	end,
	[439] = function(npc)
		npc.width = 24
		npc.height = 50
		npc.aiStyle = 84
		npc.damage = 50
		npc.defense = 42
		npc.lifeMax = 32000
		npc.knockBackResist = 0.0
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 10
		npc.value = 10000
		npc.boss = true
		npc.netAlways = true
		
		npc.buffImmuneAll = true
	end,
	[440] = function(npc)
		npc.width = 24
		npc.height = 50
		npc.aiStyle = 84
		npc.damage = 0
		npc.defense = 35
		npc.lifeMax = 10000
		npc.knockBackResist = 0.0
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 0.0
		npc.netAlways = true
		
		npc.buffImmuneAll = true
		npc.chaseable = false
	end,
	[442] = function(npc)
		npc.width = 14
		npc.height = 14
		npc.aiStyle = 24
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.knockBackResist = 0.8
		
		npc.npcSlots = 0.4
		npc.rarity = 3
	end,
	[443] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
		npc.rarity = 3
	end,
	[444] = function(npc)
		npc.width = 10
		npc.height = 10
		npc.aiStyle = 65
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.25
		npc.noGravity = true
		
		npc.rarity = 3
	end,
	[445] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
		npc.rarity = 3
	end,
	[446] = function(npc)
		npc.width = 14
		npc.height = 12
		npc.aiStyle = 1
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.friendly = true
		
		npc.npcSlots = 0.1
		npc.rarity = 3
	end,
	[447] = function(npc)
		npc.width = 14
		npc.height = 12
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.25
		
		npc.rarity = 3
	end,
	[448] = function(npc)
		npc.width = 10
		npc.height = 4
		npc.aiStyle = 66
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.1
		
		npc.friendly = true
		npc.rarity = 3
	end,
	[449] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 100
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[450] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 12
		npc.lifeMax = 55
		npc.knockBackResist = 0.5
		npc.value = 130
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[451] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 18
		npc.defense = 8
		npc.lifeMax = 65
		npc.knockBackResist = 0.5
		npc.value = 120
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[452] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 22
		npc.defense = 8
		npc.lifeMax = 60
		npc.knockBackResist = 0.5
		npc.value = 110
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[453] = function(npc)
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 30
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.npcSlots = 7
	end,
	[454] = function(npc)
		npc.noTileCollide = true
		npc.npcSlots = 5
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 80
		npc.defense = 10
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.scale = 1
		npc.buffImmuneAll = true
	end,
	[459] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.scale = 1
		npc.buffImmuneAll = true
		npc.dontCountMe = true
	end,
	[455] = function(npc)
		npc.noTileCollide = true
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 4000
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.scale = 1
		npc.buffImmuneAll = true
		npc.dontCountMe = true
	end,
	[464] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 21
		npc.defense = 5
		npc.lifeMax = 75
		npc.value = 500
		npc.buffImmune[31] = false
	end,
	[465] = function(npc)
		npc.noGravity = true
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 16
		npc.damage = 31
		npc.defense = 7
		npc.lifeMax = 110
		npc.value = 500
	end,
	[470] = function(npc)
		npc.width = 16
		npc.height = 34
		npc.aiStyle = 3
		npc.damage = 21
		npc.defense = 5
		npc.lifeMax = 75
		npc.value = 500
		npc.buffImmune[31] = false
	end,
	[473] = function(npc)
		npc.width = 28
		npc.height = 44
		npc.aiStyle = 87
		npc.damage = 90
		npc.defense = 34
		npc.lifeMax = 3500
		npc.value = 30000
		npc.knockBackResist = 0.1
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.rarity = 2
	end,
	[480] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 30
		npc.defense = 20
		npc.lifeMax = 400
		npc.knockBackResist = 0.15
		npc.value = 1000
	end,
	[481] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 22
		npc.defense = 10
		npc.lifeMax = 70
		npc.knockBackResist = 0.4
		npc.value = 300
		npc.buffImmune[31] = false
		npc.buffImmune[20] = true
	end,
	[482] = function(npc)
		npc.width = 28
		npc.height = 48
		npc.aiStyle = 3
		npc.damage = 30
		npc.defense = 18
		npc.lifeMax = 110
		npc.knockBackResist = 0.35
		npc.value = 500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[483] = function(npc)
		npc.npcSlots = 0.5
		npc.width = 20
		npc.height = 30
		npc.aiStyle = 91
		npc.damage = 24
		npc.defense = 8
		npc.lifeMax = 40
		npc.knockBackResist = 0.6
		npc.value = 1000
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[484] = function(npc)
		npc.width = 10
		npc.height = 4
		npc.aiStyle = 66
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		npc.npcSlots = 0.1
		
		npc.friendly = true
	end,
	[488] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 92
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 1000
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.immortal = true
		npc.netAlways = true
	end,
	[489] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 8
		npc.lifeMax = 75
		npc.knockBackResist = 0.4
		npc.value = 150
		npc.buffImmune[31] = false
	end,
	[490] = function(npc)
		npc.noGravity = true
		npc.width = 28
		npc.height = 30
		npc.aiStyle = 22
		npc.damage = 28
		npc.defense = 14
		npc.lifeMax = 50
		npc.knockBackResist = 0.6
		npc.value = 150
		npc.buffImmune[31] = false
	end,
	[491] = function(npc)
		npc.noGravity = true
		npc.width = 350
		npc.height = 120
		npc.aiStyle = 93
		npc.damage = 0
		npc.defense = 100
		npc.lifeMax = 50
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.buffImmuneAll = true
		npc.dontTakeDamage = true
		npc.netAlways = true
	end,
	[492] = function(npc)
		npc.lifeMax = 2000
		npc.defense = 20
		npc.damage = 30
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 75
		npc.value = 0.0
		npc.npcSlots = 1
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.hide = true
		npc.netAlways = true
	end,
	[494] = function(npc)

		npc.width = 28
		npc.height = 22
		npc.aiStyle = 3
		npc.damage = 28
		npc.defense = 6
		npc.lifeMax = 50
		npc.value = 120
	end,
	[496] = function(npc)
		npc.width = 28
		npc.height = 22
		npc.aiStyle = 39
		npc.damage = 16
		npc.defense = 12
		npc.lifeMax = 50
		npc.knockBackResist = 0.75
		npc.value = 120
	end,
	[498] = function(npc)
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 18
		npc.defense = 10
		npc.lifeMax = 65
		npc.knockBackResist = 0.45
		npc.value = 120
		npc.buffImmune[31] = false
	end,
	[441] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[513] = function(npc)
		npc.npcSlots = 4
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.damage = 34
		npc.defense = 0
		npc.lifeMax = 80
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 140
	end,
	[514] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 18
		npc.defense = 12
		npc.lifeMax = 80
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 140
		npc.dontCountMe = true
		npc.npcSlots = 0.0
	end,
	[515] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 16
		npc.defense = 20
		npc.lifeMax = 80
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 140
		npc.dontCountMe = true
		npc.npcSlots = 0.0
	end,
	[510] = function(npc)
		npc.npcSlots = 5
		npc.width = 34
		npc.height = 34
		npc.aiStyle = 6
		npc.damage = 58
		npc.defense = 18
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 700
	end,
	[511] = function(npc)
		npc.width = 34
		npc.height = 34
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 54
		npc.defense = 28
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 700
		npc.dontCountMe = true
		npc.npcSlots = 0.0
	end,
	[512] = function(npc)
		npc.width = 34
		npc.height = 34
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 50
		npc.defense = 34
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.behindTiles = true
		npc.value = 700
		npc.dontCountMe = true
		npc.npcSlots = 0.0
	end,
	[508] = function(npc)
		npc.width = 33
		npc.height = 31
		npc.aiStyle = 3
		npc.damage = 24
		npc.defense = 16
		npc.lifeMax = 70
		npc.knockBackResist = 0.2
		npc.value = 80
		npc.buffImmune[31] = false
		npc.npcSlots = 0.8
	end,
	[509] = function(npc)
		npc.width = 40
		npc.height = 31
		npc.aiStyle = 44
		npc.damage = 30
		npc.defense = 12
		npc.lifeMax = 50
		npc.knockBackResist = 0.6
		npc.value = 90
		npc.buffImmune[31] = false
		npc.npcSlots = 0.8
	end,

	[528] = function(npc)
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 52
		npc.defense = 28
		npc.lifeMax = 350
		npc.knockBackResist = 0.35
		npc.value = 600
		npc.buffImmune[31] = false
	end,
	[530] = function(npc)
		npc.width = 50
		npc.height = 20
		npc.aiStyle = 3
		npc.damage = 66
		npc.defense = 24
		npc.lifeMax = 320
		npc.knockBackResist = 0.5
		npc.value = 600
		
		npc.buffImmune[20] = true
		npc.buffImmune[70] = true
	end,
	[531] = function(npc)
		npc.noGravity = true
		npc.width = 36
		npc.height = 36
		npc.aiStyle = 40
		npc.damage = 66
		npc.defense = 24
		npc.lifeMax = 320
		npc.knockBackResist = 0.5
		npc.value = 600
		
		npc.buffImmune[20] = true
		npc.buffImmune[70] = true
	end,
	[532] = function(npc)
		npc.width = 32
		npc.height = 31
		npc.aiStyle = 3
		npc.damage = 65
		npc.defense = 34
		npc.lifeMax = 270
		npc.knockBackResist = 0.3
		npc.value = 800
		npc.buffImmune[31] = false
		npc.npcSlots = 0.75
	end,
	[533] = function(npc)
		npc.width = 28
		npc.height = 62
		npc.aiStyle = 8
		npc.damage = 40
		npc.defense = 20
		npc.lifeMax = 220
		npc.knockBackResist = 0.0
		npc.value = 1200
		npc.npcSlots = 2
		npc.buffImmuneAll = true
	end,
	[493] = function(npc)
		npc.lifeMax = 20000
		npc.defense = 20
		npc.damage = 0
		npc.width = 130
		npc.height = 270
		npc.aiStyle = 94
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
	end,
	[402] = function(npc)
		npc.noTileCollide = true
		npc.npcSlots = 1
		npc.width = 32
		npc.height = 32
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 80
		npc.defense = 10
		npc.lifeMax = 1200
		npc.noGravity = true
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.scale = 1
		npc.buffImmuneAll = true
	end,
	[405] = function(npc)
		npc.width = 44
		npc.height = 44
		npc.aiStyle = 85
		npc.damage = 120
		npc.defense = 50
		npc.lifeMax = 300
		npc.knockBackResist = 0.5
		npc.noGravity = true
		npc.buffImmune[31] = true
		npc.npcSlots = 2
	end,
	[406] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 95
		npc.damage = 70
		npc.defense = 0
		npc.lifeMax = 300
		npc.knockBackResist = 0.4
		npc.noGravity = true
		npc.buffImmune[31] = true
	end,
	[411] = function(npc)
		npc.width = 22
		npc.height = 56
		npc.aiStyle = 3
		npc.damage = 80
		npc.defense = 34
		npc.lifeMax = 700
		npc.knockBackResist = 0.4
		npc.buffImmune[31] = false
	end,
	[409] = function(npc)
		npc.width = 34
		npc.height = 42
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 40
		npc.lifeMax = 800
		npc.knockBackResist = 0.4
		npc.buffImmune[31] = false
		npc.npcSlots = 3
	end,
	[410] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 26
		npc.damage = 80
		npc.defense = 10
		npc.lifeMax = 200
		npc.knockBackResist = 0.3
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
	end,
	[407] = function(npc)
		npc.width = 40
		npc.height = 60
		npc.aiStyle = 96
		npc.damage = 70
		npc.defense = 38
		npc.lifeMax = 1500
		npc.noGravity = true
		npc.knockBackResist = 0.03
		npc.buffImmune[31] = true
		npc.npcSlots = 3
	end,
	[507] = function(npc)
		npc.lifeMax = 20000
		npc.defense = 20
		npc.damage = 0
		npc.width = 130
		npc.height = 270
		npc.aiStyle = 94
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
	end,
	[423] = function(npc)
		npc.width = 50
		npc.height = 44
		npc.aiStyle = 26
		npc.damage = 90
		npc.defense = 46
		npc.lifeMax = 850
		npc.knockBackResist = 0.2
		npc.buffImmuneAll = true
		npc.npcSlots = 1
	end,
	[421] = function(npc)
		npc.width = 44
		npc.height = 44
		npc.aiStyle = 85
		npc.damage = 70
		npc.defense = 34
		npc.lifeMax = 330
		npc.knockBackResist = 0.5
		npc.noGravity = true
		npc.buffImmune[31] = true
		npc.npcSlots = 1
	end,
	[424] = function(npc)
		npc.width = 22
		npc.height = 56
		npc.aiStyle = 3
		npc.damage = 80
		npc.defense = 30
		npc.lifeMax = 700
		npc.knockBackResist = 0.6
		npc.buffImmune[31] = false
		npc.npcSlots = 2
	end,
	[420] = function(npc)
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 97
		npc.damage = 75
		npc.defense = 20
		npc.lifeMax = 1300
		npc.knockBackResist = 0.5
		npc.noTileCollide = true
		npc.noGravity = true
		npc.npcSlots = 3
	end,
	[422] = function(npc)
		npc.lifeMax = 20000
		npc.defense = 20
		npc.damage = 0
		npc.width = 130
		npc.height = 270
		npc.aiStyle = 94
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
	end,
	[425] = function(npc)
		npc.width = 30
		npc.height = 56
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 40
		npc.lifeMax = 800
		npc.knockBackResist = 0.4
		npc.buffImmune[31] = false
	end,
	[429] = function(npc)
		npc.width = 22
		npc.height = 56
		npc.aiStyle = 3
		npc.damage = 90
		npc.defense = 34
		npc.lifeMax = 700
		npc.knockBackResist = 0.6
		npc.buffImmune[31] = false
		npc.npcSlots = 2
	end,
	[428] = function(npc)
		npc.width = 24
		npc.height = 26
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 6
		npc.lifeMax = 200
	end,
	[427] = function(npc)
		npc.width = 40
		npc.height = 28
		npc.aiStyle = 3
		npc.damage = 75
		npc.defense = 20
		npc.lifeMax = 500
		npc.knockBackResist = 0.5
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
	end,
	[426] = function(npc)
		npc.width = 50
		npc.height = 62
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 44
		npc.lifeMax = 1000
		npc.knockBackResist = 0.3
		npc.buffImmune[31] = false
	end,
	[517] = function(npc)
		npc.lifeMax = 20000
		npc.defense = 20
		npc.damage = 0
		npc.width = 130
		npc.height = 270
		npc.aiStyle = 94
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
	end,
	[412] = function(npc)
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 150
		npc.defense = 1000
		npc.lifeMax = 10000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.dontTakeDamage = true
		npc.npcSlots = 2
	end,
	[413] = function(npc)
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 100
		npc.defense = 1000
		npc.lifeMax = 10000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.dontCountMe = true
		npc.dontTakeDamage = true
		npc.npcSlots = 0.0
	end,
	[414] = function(npc)
		npc.width = 20
		npc.height = 20
		npc.aiStyle = 6
		npc.netAlways = true
		npc.damage = 50
		npc.defense = 0
		npc.lifeMax = 10000
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.dontCountMe = true
		npc.takenDamageMultiplier = 10
		npc.npcSlots = 0.0
	end,
	[415] = function(npc)
		npc.lifeMax = 800
		npc.defense = 32
		npc.damage = 55
		npc.width = 60
		npc.height = 40
		npc.aiStyle = 3
		npc.knockBackResist = 0.2
	end,
	[416] = function(npc)
		npc.damage = 80
		npc.defense = 28
		npc.lifeMax = 800
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 75
		npc.knockBackResist = 0.2
	end,
	[518] = function(npc)
		npc.lifeMax = 1000
		npc.defense = 28
		npc.damage = 80
		npc.width = 22
		npc.height = 56
		npc.aiStyle = 3
		npc.knockBackResist = 0.4
	end,
	[417] = function(npc)
		npc.npcSlots = 2
		npc.width = 46
		npc.height = 32
		npc.aiStyle = 39
		npc.damage = 80
		npc.defense = 34
		npc.lifeMax = 700
		npc.knockBackResist = 0.0
	end,
	[418] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 74
		npc.damage = 70
		npc.defense = 26
		npc.lifeMax = 600
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.2
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
	end,
	[419] = function(npc)
		npc.lifeMax = 800
		npc.defense = 30
		npc.damage = 90
		npc.width = 22
		npc.height = 56
		npc.aiStyle = 3
		npc.knockBackResist = 0.4
	end,
	[516] = function(npc)
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 9
		npc.damage = 100
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = false
		npc.knockBackResist = 0.0
	end,
	[519] = function(npc)
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 99
		npc.damage = 120
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = false
		npc.knockBackResist = 0.0
	end,
	[162] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 65
		npc.defense = 18
		npc.lifeMax = 350
		npc.knockBackResist = 0.3
		npc.value = 600
		npc.buffImmune[31] = false
	end,
	[166] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 26
		npc.lifeMax = 450
		npc.knockBackResist = 0.2
		npc.value = 1000
		npc.buffImmune[31] = false
		npc.buffImmune[20] = true
	end,
	[253] = function(npc)
		npc.noGravity = true
		npc.noTileCollide = true
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 22
		npc.damage = 80
		npc.defense = 22
		npc.lifeMax = 700
		npc.value = 1500
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.6
	end,
	[158] = function(npc)
		npc.npcSlots = 2
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 14
		npc.damage = 60
		npc.defense = 32
		npc.lifeMax = 750
		npc.knockBackResist = 0.75
		npc.value = 5000
		npc.buffImmune[31] = false
	end,
	[159] = function(npc)
		npc.npcSlots = 2
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 80
		npc.defense = 24
		npc.lifeMax = 750
		npc.knockBackResist = 0.4
		npc.value = 5000
		npc.buffImmune[31] = false
	end,
	[460] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 30
		npc.lifeMax = 700
		npc.knockBackResist = 0.25
		npc.value = 1000
		npc.buffImmune[31] = false
	end,
	[461] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 22
		npc.lifeMax = 400
		npc.knockBackResist = 0.3
		npc.value = 1000
	end,
	[462] = function(npc)
		npc.width = 20
		npc.height = 24
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 14
		npc.lifeMax = 270
		npc.knockBackResist = 0.7
		npc.value = 600
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
	end,
	[463] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 100
		npc.defense = 34
		npc.lifeMax = 4000
		npc.knockBackResist = 0.1
		npc.value = 3000
	end,
	[466] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 70
		npc.defense = 40
		npc.lifeMax = 550
		npc.knockBackResist = 0.5
		npc.value = 1500
	end,
	[467] = function(npc)
		npc.width = 22
		npc.height = 22
		npc.aiStyle = 85
		npc.damage = 100
		npc.defense = 80
		npc.lifeMax = 350
		npc.value = 900
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
		npc.buffImmune[39] = true
		npc.knockBackResist = 0.7
		npc.noGravity = true
	end,
	[469] = function(npc)
		npc.width = 38
		npc.height = 26
		npc.aiStyle = 3
		npc.damage = 68
		npc.defense = 28
		npc.lifeMax = 600
		npc.knockBackResist = 0.35
		npc.value = 1300
	end,
	[468] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 65
		npc.defense = 24
		npc.lifeMax = 500
		npc.knockBackResist = 0.6
		npc.value = 1300
	end,
	[477] = function(npc)
		npc.noGravity = true
		npc.width = 80
		npc.height = 50
		npc.aiStyle = 88
		npc.damage = 80
		npc.defense = 30
		npc.lifeMax = 6000
		npc.value = 50000
		npc.knockBackResist = 0.2
		npc.buffImmune[20] = true
	end,
	[478] = function(npc)
		npc.width = 34
		npc.height = 34
		npc.aiStyle = 89
		npc.damage = 0
		npc.defense = 30
		npc.lifeMax = 200
		npc.value = 0.0
		npc.knockBackResist = 0.7
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
	end,
	[479] = function(npc)
		npc.width = 46
		npc.height = 30
		npc.aiStyle = 90
		npc.damage = 50
		npc.defense = 14
		npc.lifeMax = 700
		npc.knockBackResist = 0.3
		npc.value = 0.0
		npc.npcSlots = 0.1
	end,

	[111] = function(npc)
		npc.scale = 0.95
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 20
		npc.defense = 6
		npc.lifeMax = 80
		npc.knockBackResist = 0.7
		npc.value = 200
		npc.buffImmune[31] = false
	end,
	[471] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 80
		npc.defense = 26
		npc.lifeMax = 2000
		npc.knockBackResist = 0.15
		npc.value = 5000
		npc.buffImmuneAll = true
	end,
	[472] = function(npc)
		npc.width = 40
		npc.height = 24
		npc.aiStyle = 86
		npc.damage = 50
		npc.defense = 18
		npc.lifeMax = 180
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.buffImmuneAll = true
		npc.npcSlots = 0.1
	end,
	[520] = function(npc)
		npc.width = 34
		npc.height = 110
		npc.aiStyle = 3
		npc.damage = 60
		npc.defense = 40
		npc.lifeMax = 2000
		npc.knockBackResist = 0.0
		npc.buffImmune[20] = true
		npc.buffImmune[24] = true
	end,
	[521] = function(npc)
		npc.width = 60
		npc.height = 60
		npc.aiStyle = 86
		npc.damage = 90
		npc.defense = 30
		npc.lifeMax = 2000
		npc.knockBackResist = 0.0
		npc.buffImmuneAll = true
	end,
	[522] = function(npc)
		npc.width = 26
		npc.height = 26
		npc.aiStyle = 100
		npc.damage = 120
		npc.defense = 0
		npc.lifeMax = 1
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.chaseable = false
	end,
	[523] = function(npc)
		npc.width = 42
		npc.height = 42
		npc.aiStyle = 101
		npc.damage = 30
		npc.defense = 0
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.0
		npc.chaseable = false
		npc.canGhostHeal = false
	end,
	[524] = function(npc)
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 26
		npc.lifeMax = 180
		npc.knockBackResist = 0.6
		npc.value = 500
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
	end,
	[525] = function(npc)
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 26
		npc.lifeMax = 180
		npc.knockBackResist = 0.6
		npc.value = 500
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.lifeMax = npc.lifeMax + 70
		npc.defense = npc.defense + 4
		npc.damage = npc.damage + 10
		npc.knockBackResist = npc.knockBackResist - 0.1
		npc.value = npc.value + 150
	end,
	[526] = function(npc)
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 26
		npc.lifeMax = 180
		npc.knockBackResist = 0.6
		npc.value = 500
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.lifeMax = npc.lifeMax + 40
		npc.defense = npc.defense + 6
		npc.damage = npc.damage + 14
		npc.knockBackResist = npc.knockBackResist - 0.1
		npc.value = npc.value + 150
	end,
	[527] = function(npc)
		npc.width = 24
		npc.height = 44
		npc.aiStyle = 3
		npc.damage = 50
		npc.defense = 26
		npc.lifeMax = 180
		npc.knockBackResist = 0.6
		npc.value = 500
		npc.buffImmune[31] = false
		npc.npcSlots = 0.5
		npc.lifeMax = npc.lifeMax + 120
		npc.defense = npc.defense + 6
		npc.damage = npc.damage + 4
		npc.knockBackResist = npc.knockBackResist - 0.2
		npc.value = npc.value + 250
	end,
	[534] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 20
		npc.lifeMax = 400
		npc.knockBackResist = 0.3
		npc.value = 0.0
		npc.buffImmune[31] = false
		npc.lavaImmune = true
		npc.netAlways = true
		npc.rarity = 1
	end,
	[535] = function(npc)
		npc.width = 24
		npc.height = 18
		npc.aiStyle = 1
		npc.damage = 14
		npc.defense = 5
		npc.lifeMax = 50
		npc.scale = 1.1
		npc.value = 40
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[536] = function(npc)
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 3
		npc.damage = 14
		npc.defense = 8
		npc.lifeMax = 200
		npc.knockBackResist = 0.5
		npc.value = 1000
		npc.buffImmune[31] = false
		npc.rarity = 2
	end,
	[537] = function(npc)
		npc.npcSlots = 2
		npc.width = 30
		npc.height = 24
		npc.aiStyle = 1
		npc.damage = 11
		npc.defense = 8
		npc.lifeMax = 60
		npc.value = 75
		npc.knockBackResist = 0.8
		npc.buffImmune[20] = true
		npc.buffImmune[31] = false
	end,
	[538] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
	end,
	[539] = function(npc)
		npc.width = 18
		npc.height = 20
		npc.aiStyle = 7
		npc.damage = 0
		npc.defense = 0
		npc.lifeMax = 5
		
		npc.rarity = 3
	end,
	[541] = function(npc)
		npc.width = 30
		npc.height = 76
		npc.aiStyle = 102
		npc.damage = 40
		npc.defense = 30
		npc.lifeMax = 5000
		npc.knockBackResist = 0.05
		npc.value = buyPrice(0, 1, 50, 0)
		npc.buffImmune[20] = true
		npc.buffImmune[44] = true
		npc.rarity = 2
	end,
	[542] = function(npc)
		npc.noGravity = true
		npc.width = 100
		npc.height = 24
		npc.aiStyle = 103
		npc.damage = 50
		npc.defense = 20
		npc.lifeMax = 360
		npc.value = 400
		npc.knockBackResist = 0.9
		npc.behindTiles = true
	end,
	[543] = function(npc)
		npc.noGravity = true
		npc.width = 100
		npc.height = 24
		npc.aiStyle = 103
		npc.damage = 60
		npc.defense = 24
		npc.lifeMax = 380
		npc.value = 400
		npc.knockBackResist = 0.8
		npc.behindTiles = true
	end,
	[544] = function(npc)
		npc.noGravity = true
		npc.width = 100
		npc.height = 24
		npc.aiStyle = 103
		npc.damage = 64
		npc.defense = 22
		npc.lifeMax = 400
		npc.value = 400
		npc.knockBackResist = 0.8
		npc.behindTiles = true
	end,
	[545] = function(npc)
		npc.noGravity = true
		npc.width = 100
		npc.height = 24
		npc.aiStyle = 103
		npc.damage = 54
		npc.defense = 26
		npc.lifeMax = 450
		npc.value = 400
		npc.knockBackResist = 0.7
		npc.behindTiles = true
	end,
	[546] = function(npc)
		npc.width = 30
		npc.height = 30
		npc.aiStyle = 26
		npc.damage = 30
		npc.defense = 10
		npc.lifeMax = 60
		npc.knockBackResist = 0.8
		npc.value = 130
		npc.behindTiles = true
	end,
	[547] = function(npc)
		npc.width = 16
		npc.height = 16
		npc.aiStyle = 104
		npc.damage = 0
		npc.defense = 10
		npc.lifeMax = 10
		npc.knockBackResist = 1
		npc.noGravity = true
		npc.noTileCollide = true
	end,
	[548] = function(npc)
		npc.damage = 0
		npc.width = 40
		npc.height = 40
		npc.aiStyle = 105
		npc.defense = 14
		npc.lifeMax = 1000
		npc.knockBackResist = 0.0
		npc.friendly = true
		npc.npcSlots = 0.0
		npc.hide = true
		-- T2 & T3
		--[[=if (Main.hardMode && NPC.downedMechBossAny)
		{
			npc.defense = 18
			npc.lifeMax = 3000
		}
		if (NPC.downedGolemBoss && Main.hardMode)
		{
			npc.defense = 20
			npc.lifeMax = 5000
		}=]]
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[549] = function(npc)
		npc.lifeMax = 5
		npc.defense = 20
		npc.damage = 0
		npc.width = 78
		npc.height = 130
		npc.aiStyle = 106
		npc.value = 0.0
		npc.knockBackResist = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.buffImmuneAll = true
		npc.npcSlots = 0.0
		npc.behindTiles = true
		npc.dontTakeDamage = true
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[552] = function(npc)
		npc.lifeMax = 30
		npc.defense = 14
		npc.damage = 18
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.2
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[553] = function(npc)
		npc.lifeMax = 170
		npc.defense = 20
		npc.damage = 46
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.2
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[554] = function(npc)
		npc.lifeMax = 560
		npc.defense = 28
		npc.damage = 70
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.15
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[561] = function(npc)
		npc.lifeMax = 60
		npc.defense = 18
		npc.damage = 30
		npc.width = 26
		npc.height = 52
		npc.aiStyle = 107
		npc.knockBackResist = 0.1
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[562] = function(npc)
		npc.lifeMax = 300
		npc.defense = 28
		npc.damage = 60
		npc.width = 26
		npc.height = 52
		npc.aiStyle = 107
		npc.knockBackResist = 0.1
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[563] = function(npc)
		npc.lifeMax = 1000
		npc.defense = 38
		npc.damage = 80
		npc.width = 26
		npc.height = 52
		npc.aiStyle = 107
		npc.knockBackResist = 0.05
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[555] = function(npc)
		npc.lifeMax = 50
		npc.defense = 16
		npc.damage = 26
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.2
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[556] = function(npc)
		npc.lifeMax = 200
		npc.defense = 26
		npc.damage = 55
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.2
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[557] = function(npc)
		npc.lifeMax = 700
		npc.defense = 34
		npc.damage = 75
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.15
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[558] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 108
		npc.damage = 30
		npc.defense = 4
		npc.lifeMax = 60
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.2
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[559] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 108
		npc.damage = 75
		npc.defense = 16
		npc.lifeMax = 180
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.2
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[560] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 108
		npc.damage = 100
		npc.defense = 30
		npc.lifeMax = 600
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.05
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[550] = function(npc)
		npc.townNPC = true
		npc.friendly = true
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 7
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
	end,
	[576] = function(npc)
		npc.lifeMax = 5000
		npc.defense = 34
		npc.damage = 70
		npc.width = 96
		npc.height = 124
		npc.aiStyle = 107
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[577] = function(npc)
		npc.lifeMax = 13000
		npc.defense = 40
		npc.damage = 90
		npc.width = 96
		npc.height = 124
		npc.aiStyle = 107
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[568] = function(npc)
		npc.lifeMax = 500
		npc.defense = 30
		npc.damage = 50
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.15
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[569] = function(npc)
		npc.lifeMax = 1400
		npc.defense = 40
		npc.damage = 80
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.05
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[566] = function(npc)
		npc.lifeMax = 25
		npc.defense = 12
		npc.damage = 18
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.3
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[567] = function(npc)
		npc.lifeMax = 480
		npc.defense = 22
		npc.damage = 70
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.2
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[572] = function(npc)
		npc.lifeMax = 260
		npc.defense = 26
		npc.damage = 60
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.2
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[573] = function(npc)
		npc.lifeMax = 800
		npc.defense = 32
		npc.damage = 80
		npc.width = 18
		npc.height = 40
		npc.aiStyle = 107
		npc.knockBackResist = 0.1
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[570] = function(npc)
		npc.lifeMax = 900
		npc.defense = 30
		npc.damage = 60
		npc.width = 42
		npc.height = 58
		npc.aiStyle = 107
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[571] = function(npc)
		npc.lifeMax = 3000
		npc.defense = 40
		npc.damage = 90
		npc.width = 42
		npc.height = 58
		npc.aiStyle = 107
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[564] = function(npc)
		npc.lifeMax = 800
		npc.defense = 18
		npc.damage = 40
		npc.width = 34
		npc.height = 62
		npc.aiStyle = 109
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.noGravity = true
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[565] = function(npc)
		npc.lifeMax = 4000
		npc.defense = 38
		npc.damage = 90
		npc.width = 34
		npc.height = 62
		npc.aiStyle = 109
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.npcSlots = 0.0
		npc.noGravity = true
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[574] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 108
		npc.damage = 50
		npc.defense = 16
		npc.lifeMax = 170
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.4
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[575] = function(npc)
		npc.width = 38
		npc.height = 38
		npc.aiStyle = 108
		npc.damage = 80
		npc.defense = 32
		npc.lifeMax = 580
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.25
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[551] = function(npc)
		npc.damage = 80
		npc.defense = 38
		npc.lifeMax = 50000
		npc.width = 190
		npc.height = 90
		npc.aiStyle = 110
		npc.knockBackResist = 0.0
		npc.value = 0.0
		npc.noGravity = true
		npc.noTileCollide = true
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[578] = function(npc)
		npc.width = 30
		npc.height = 24
		npc.aiStyle = 111
		npc.damage = 80
		npc.defense = 36
		npc.lifeMax = 500
		npc.noGravity = true
		npc.noTileCollide = true
		npc.knockBackResist = 0.8
		npc.npcSlots = 0.0
		npc.lavaImmune = true
		
		npc.netAlways = true
	end,
	[579] = function(npc)
		npc.friendly = true
		npc.width = 34
		npc.height = 8
		npc.aiStyle = 0
		npc.damage = 10
		npc.defense = 15
		npc.lifeMax = 250
		npc.knockBackResist = 0.5
		npc.scale = 1
		npc.rarity = 1
	end,
}

-- others
db[303] = db[46]
db[337] = db[46]
db[540] = db[46]
db[297] = db[74]
db[298] = db[74]
db[248] = db[247]
db[367] = db[366]
db[380] = db[379]
db[382] = db[381]
db[529] = db[528]
db[456] = db[455]
db[457] = db[455]
db[458] = db[455]
db[495] = db[494]
db[497] = db[496]
db[506] = db[498]
db[505] = db[498]
db[504] = db[498]
db[503] = db[498]
db[502] = db[498]
db[501] = db[498]
db[500] = db[498]
db[499] = db[498]
db[310] = db[305]
db[311] = db[306]
db[312] = db[307]
db[313] = db[308]
db[314] = db[309]
db[474] = db[473]
db[475] = db[473]
db[476] = db[473]
db[485] = db[484]
db[486] = db[484]
db[487] = db[484]
db[403] = db[402]
db[404] = db[402]

local function NeedsExpertScaling(type)
	-- more faster then use table.
	return (type == 25 or type == 30 or type == 33 or type == 112 or type == 261 or type == 265 or type == 371 or type == 516 or type == 519 or type == 522 or type == 397 or type == 396 or type == 398)
end

local function ProjectileNPC(type)
	-- more faster then use table.
	return (type == 25 or type == 30 or type == 33 or type == 112 or type == 261 or type == 265 or type == 371 or type == 516 or type == 519 or type == 522)
end

local NetIdMap = {81, 81, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 31, 31, 77, 42, 42, 176, 176, 176, 176, 173, 173, 183, 183, 3, 3, 132, 132, 186, 186, 187, 187, 188, 188, 189, 189, 190, 191, 192, 193, 194, 2, 200, 200, 21, 21, 201, 201, 202, 202, 203, 203, 223, 223, 231, 231, 232, 232, 233, 233, 234, 234, 235, 235}
local function FromNetId(type)
	return NetIdMap[-type]
end

local function scaleStats(npc)
	if (npc.type < 0 or not NeedsExpertScaling(npc.type)) and (npc.lifeMax <= 5 or npc.damage == 0 or npc.friendly or npc.townNPC) then
		return
	end

	local flag = (npc.type >= 0 and ProjectileNPC(npc.type))

	if npc.hardMode and npc.type ~= 5 and (npc.type < 13 or npc.type > 15) and npc.type ~= 267 and (npc.type < 113 or npc.type > 119) and not npc.boss and npc.lifeMax < 1000 then
		local num1 = math.floor(npc.damage + npc.defense + npc.lifeMax / 4)
		if num1 == 0 then
			num1 = 1
		end
		local num2 = 80
		if npc.downedPlantBoss then
			num2 = 100
		end
		if num1 < num2 then
			num3 = math.floor(num2 / num1)
			npc.damage = math.floor(npc.damage * num3 * 0.9)
			if not flag then
				npc.defense = math.floor(npc.defense * num3)
				npc.lifeMax = math.floor(npc.lifeMax * num3 * 1.1)
				npc.value = math.floor(npc.value * num3 * 0.8)
			end
		end
	end
	-- bee and little bee from beehive
	if npc.type == 210 or npc.type == 211 then
		npc.damage = math.floor(npc.damage * 0.6)
		npc.lifeMax = math.floor(npc.lifeMax * 0.8)
		npc.defense = math.floor(npc.defense * 0.8)
	end
	if not flag then
		npc.value = math.floor(npc.value * 2.5)
		npc.lifeMax = npc.lifeMax * 2
	end
	npc.damage = npc.damage * 2
	npc.knockBackResist = npc.knockBackResist * 0.9

	-- boss scaling based on number of players
	local num5 = 1
	local num6 = 0.35
	for i=2, npc.playersCount do
		num5 = num5 + num6
		num6 = num6 + (1 - num6) / 3
	end
	if num5 > 8 then
		num5 = (num5 * 2 + 8) / 3
	end
	if num5 > 1000 then
		num5 = 1000
	end

	if npc.type == 5 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75)
	elseif npc.type == 4 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.65 * num5)
	elseif npc.type >= 13 and npc.type <= 15 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		if npc.type == 13 then
			npc.damage = math.floor(npc.damage * 1.1)
		else
			npc.damage = math.floor(npc.damage * 0.8)
		end
		npc.defense = npc.defense + 2
	elseif npc.type == 266 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.85 * num5)
		npc.damage = math.floor(npc.damage * 0.9)
	elseif npc.type == 50 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		npc.damage = math.floor(npc.damage * 0.8)
	elseif npc.type == 471 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.85 * (num5 * 2.0 + 1.0) / 3.0)
	elseif npc.type == 472 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.85 * (num5 + 1.0) / 2.0)
		npc.damage = math.floor(npc.damage * 0.8)
	elseif npc.type == 222 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		npc.damage = math.floor(npc.damage * 0.9)
	elseif npc.type == 210 or npc.type == 211 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75)
	elseif npc.type == 35 then
		npc.lifeMax = math.floor(npc.lifeMax * num5)
		npc.damage = math.floor(npc.damage * 1.1)
	elseif npc.type == 36 then
		npc.lifeMax = math.floor(npc.lifeMax * 1.3 * num5)
		npc.damage = math.floor(npc.damage * 1.1)
	elseif npc.type == 113 or npc.type == 114 then
		npc.defense = npc.defense + 6
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		npc.damage = math.floor(npc.damage * 1.5)
	elseif npc.type == 115 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		if npc.playersCount > 1 then
			npc.knockBackResist = npc.knockBackResist * (1 - num6)
		end
		npc.defense = npc.defense + 6
	elseif npc.type == 116 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		if npc.playersCount > 1 then
			npc.knockBackResist = npc.knockBackResist * (1 - num6)
		end
	elseif npc.type == 117 or npc.type == 118 or npc.type == 119 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.8)
	elseif npc.type >= 134 and npc.type <= 136 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * num5)
		if npc.type == 134 then
			npc.damage = npc.damage *2
		else
			npc.damage = math.floor(npc.damage * 0.85)
		end
	elseif npc.type == 139 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * (num5 * 2.0 + 1.0) / 3.0)
		npc.damage = math.floor(npc.damage * 0.8)
	elseif npc.type >= 127 and npc.type <= 131 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * num5)
		npc.damage = math.floor(npc.damage * 0.85)
	elseif npc.type == 125 or npc.type == 126 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * num5)
		npc.damage = math.floor(npc.damage * 0.85)
	elseif npc.type == 262 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.7 * num5)
		npc.damage = math.floor(npc.damage * 1.15)
	elseif npc.type >= 245 and npc.type <= 249 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * num5)
		npc.damage = math.floor(npc.damage * 0.8)
	elseif npc.type == 370 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.6 * num5)
		npc.damage = math.floor(npc.damage * 0.7)
	elseif npc.type == 371 or npc.type == 372 or npc.type == 373 then
		if npc.type ~= 371 then
			npc.lifeMax = math.floor(npc.lifeMax * 0.75)
		end
		npc.damage = math.floor(npc.damage * 0.75)
	elseif npc.type == 439 or npc.type == 440 or npc.type >= 454 and npc.type <= 459 or npc.type == 522 or npc.type == 523 then
		if npc.type ~= 522 then
			npc.lifeMax = math.floor(npc.lifeMax * 0.625 * num5)
		end
		npc.damage = math.floor(npc.damage * 0.75)
	elseif npc.type == 397 or npc.type == 396 or npc.type == 398 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * num5)
		npc.damage = math.floor(npc.damage * 0.75)
	elseif npc.type == 551 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75 * num5)
		npc.damage = math.floor(npc.damage * 0.65)
	elseif npc.type >= 305 and npc.type <= 315 or npc.type == 326 or npc.type == 329 or npc.type == 330 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75)
		npc.damage = math.floor(npc.damage * 0.75)
	elseif npc.type == 325 or npc.type == 327 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.65)
		npc.damage = math.floor(npc.damage * 0.75)
	elseif npc.type >= 338 and npc.type <= 343 or npc.type >= 347 and npc.type <= 350 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.75)
		npc.damage = math.floor(npc.damage * 0.75)
	elseif npc.type >= 344 and npc.type <= 346 then
		npc.lifeMax = math.floor(npc.lifeMax * 0.65)
		npc.damage = math.floor(npc.damage * 0.75)
	end
end

-- mode: 0=normal, 1=expert, 2=expert hardmode, 3=expert post-plantera
function setDefault(npcid, mode, playersCount)
	local npc = {
		type = npcid,
		expertMode = (mode > 0),
		hardMode = (mode > 1),
		downedPlantBoss = (mode > 2),
		playersCount = playersCount,
		buffImmune = {[31] = true},
		buffImmuneAll = false,
		rarity = 0,
		netID = 0,
		dontCountMe = false,
		npcSlots = 1,
		townNPC = false,
		friendly = false,
		boss = false,
		knockBackResist = 1,
		scale = 1,
		value = 0,
	}

	db[npcid](npc)

	npc.netID = npc.type

	if npc.buffImmune[20] then
		npc.buffImmune[70] = true
	end
	if npc.buffImmune[39] then
		npc.buffImmune[153] = true
	end

	if npc.expertMode then
		scaleStats(npc)
	end

	return npc
end

local function setDefaultsFromNetId(npcid, mode, playersCount)
	local flag = false
	local id = FromNetId(npcid)
	local npc = setDefault(id, mode, playersCount)
	flag = db[npcid](npc)
	npc.netID = npcid
	if flag and npc.expertMode then
		scaleStats(npc)
	end
	return npc
end


local function NPC(npcid, count)
	local count = count or 1
	if npcid < 0 then
		return setDefaultsFromNetId(npcid, 0, count), setDefaultsFromNetId(npcid, 1, count), setDefaultsFromNetId(npcid, 2, count), setDefaultsFromNetId(npcid, 3, count)
	else
		return setDefault(npcid, 0, count), setDefault(npcid, 1, count), setDefault(npcid, 2, count), setDefault(npcid, 3, count)
	end
end

local getArg = function(frame, key)
	local value = frame.args[key]
	if not value then
		return nil
	end
	value = mw.text.trim(value)
	if value == '' then
		return nil
	else
		return value
	end
end

local p = {
	getInfo = function (frame)
		local npcid = tonumber(getArg(frame, 'id') or 0)
		local prefix = getArg(frame, 'prefix') or '_npcinfo_'
		local count = tonumber(getArg(frame, 'players') or 1)

		-- 76/146/408 not used.
		if npcid < -65 or npcid > 579 or npcid == 0 or npcid == 76 or npcid == 146 or npcid == 408 then
			return
		end

		local normal, expert, hardmode, postplantera = NPC(npcid, count)
		local fields = {"aiStyle", "boss", "buffImmuneAll", "damage", "defense", "dontCountMe", "friendly", "knockBackResist", "lifeMax", "netID", "npcSlots", "playersCount", "rarity", "scale", "townNPC", "type", "value"}
		local args = {}
		for i,v in ipairs(fields) do
			table.insert(args, prefix .. v)
			table.insert(args, normal[v])
		end
		fields = {'damage', 'defense', 'lifeMax', 'knockBackResist', 'value'}
		for i,v in ipairs(fields) do
			table.insert(args, prefix .. v .. '_expert')
			table.insert(args, expert[v])
			table.insert(args, prefix .. v .. '_hardmode')
			table.insert(args, hardmode[v])
			table.insert(args, prefix .. v .. '_postplantera')
			table.insert(args, postplantera[v])
		end
		local imm = {}
		for k,v in pairs(normal.buffImmune) do
			if v then
				table.insert(imm, k)
			end
		end
		table.sort(imm)
		table.insert(args, prefix .. 'buffImmune')
		table.insert(args, table.concat(imm, ', '))

		table.insert(args, prefix .. 'internalName')
		table.insert(args, internal_names[npcid])
		
		local critter = (npcid == 46 or npcid == 148 or npcid == 149 or npcid == 230 or npcid == 299 or npcid == 300 or npcid == 303 or npcid == 337 or npcid == 361 or npcid == 362 or npcid == 364 or npcid == 366 or npcid == 367 or npcid == 443 or npcid == 445 or npcid == 447 or npcid == 538 or npcid == 539 or npcid == 540)
		table.insert(args, prefix .. 'townCritter')
		table.insert(args, critter)
		critter = critter or (npcid == 356 or npcid == 444 or npcid == 55 or npcid == 74 or npcid == 297 or npcid == 298 or npcid == 355 or npcid == 357 or npcid == 358 or npcid == 359 or npcid == 360 or npcid == 363 or npcid == 365 or npcid == 374 or npcid == 375 or npcid == 377 or npcid == 442 or npcid == 446 or npcid == 448 or npcid == 484 or npcid == 485 or npcid == 486 or npcid == 487)
		table.insert(args, prefix .. 'critter')
		table.insert(args, critter)

		table.insert(args, prefix .. 'projectileNPC')
		table.insert(args, (npcid == 25 or npcid == 30 or npcid == 33 or npcid == 112 or npcid == 261 or npcid == 265 or npcid == 371 or npcid == 516 or npcid == 519 or npcid == 522))

		frame:callParserFunction{ name = '#dplvar:set', args = args }
	end,

	clear = function (frame)
		local prefix = getArg(frame, 'prefix') or '_npcinfo_'

		local fields = {"aiStyle", "boss", "buffImmuneAll", "damage", "defense", "dontCountMe", "friendly", "knockBackResist", "lifeMax", "netID", "npcSlots", "playersCount", "rarity", "scale", "townNPC", "type", "value", "townCritter", "critter", "projectileNPC"}
		local args = {}
		for i,v in ipairs(fields) do
			table.insert(args, prefix .. v)
			table.insert(args, '')
		end
		fields = {'damage', 'defense', 'lifeMax', 'knockBackResist', 'value'}
		for i,v in ipairs(fields) do
			table.insert(args, prefix .. v .. '_expert')
			table.insert(args, '')
			table.insert(args, prefix .. v .. '_hardmode')
			table.insert(args, '')
			table.insert(args, prefix .. v .. '_postplantera')
			table.insert(args, '')
		end
		table.insert(args, prefix .. 'buffImmune')
		table.insert(args, '')

		frame:callParserFunction{ name = '#dplvar:set', args = args }
	end,
}

p.getinfo = p.getInfo
p.GetInfo = p.getInfo

return p