Special animid startup¶
This is the part of CheckSpecialID that deals with specific AnimIDs:
GoldenSeedling: setups thePrefabs/Particles/GoldStarsRizGrandpa: creates a line to render as a fishing rod's lineSeedlingKing: Adjusts theheightandinitialheightin battle and setups 4subentitywhich will be seedling rendered under himMidge: Setups 2 wings in theextraarray with their sprite set toSprites/Entities/MidgeCape: setups thePrefabs/Particles/Snowflakesif it's an ice variant orPrefabs/Particles/Flameif it's a fire one to the onlyextra. The fire variant is in effect only ifforefireis true OR that the current map is in Giant's Lair except for GiantLairFridgeInside. Finally, the fire variant has itsanimidoverriden to FireCapeWatcher: setup theextrato be 2 elements and setup the first one to bePrefabs/Objects/WatcherBook. The materials of the pages of the models is adjusted to the holosprite one ifhologramis true. Finally,nodigpartis overridden to trueKrawler: Very similar toCape, except theanimidto override on the fire variant isFireKrawlerand if it's the ice variant AND it is notinice, then the particle are stopped with playOnAwake turned offCursedSkull: Same thanKrawlerexcept theanimidoverridden on the fire variant is FireWardenAhoneynation: Therotatergets a SpriteBounce setup with 0.03 as the frequency and 9.0 as the speedWaspTwinA:basestateis set to Sad if they are following an entityNone: therigid's gravity is disabled on top of its constraint being set to freeze all. Additionally, theccolis disabledCoilyVine: the same thing thanNoneon top of overriding the check to load a prefab model for laterBeeBoss: thePrefabs/Particles/BeeBossBottomSmokefrom the root of the asset tree is setup as a child toshadowtransform.shadowtransform's local position is then set to 0BeeBot: ensures that the enemydata[battleid].data has one element which contains a random number being either 0 or 1. From there UpdateAnimSpecific is calledCrystalBerry:Prefabs/Objects/CrystalBerryfrom the root of the asset tree is added as model via AddModel with the offset coming fromendata'smodeloffset. Theanimidis overriden to 3 with aspinset on the y axis anditemset to trueSeedling: the speed is set to 2.5 if it was 0.0 or below on top of thenpcdata'sspeedmultiplierbeing set to 1.0 if it is presentAngryPlant:Prefabs/Objects/LeafSkirtfrom the root of the asset tree is setup as the onlyextras. This includes setting all child's shadowCastingMode to off and to set the correct materials ifhologramandcotunknown(the later being changing the color to pure black with 50% transparency)Turret:Prefabs/Objects/turretbasefrom the root of the asset tree is setup as the onlyextras.cotunknownchanges its material color to pure black with 50% transparencyWaspDriller: if npcdata.vectordata[0].y is -2.0, setup an item sprite as the onlyextrawhere the Items id is npcdata.vectordata[0].x and its flipX is trueZombeetle: Same as WaspDriller, but also setup theextras's angles and localscale on top