Saerus
Skeletron Prime
Yup. SpawnedFromStatue is a function that returns bool. The ones that start with lower case are directly accessed fields.I have to ask... with somewhat limited knowledge on programming... the spawned from statue portion of the code is capitalized... while most others such as npc.friendly and npc.lifeMax or npc.boss begin with a lowercase or contain only lowercase, yet SpawnedFromStatue is entirely capital. Is it supposed to be that way? I have not dabbled much in C# nor tmodloaders programming, but I am curious in regards to this.
[doublepost=1483679073,1483678888][/doublepost]
Confirmed. Statue monsters give experience in multiplayer but not singleplayer. This is likely a tModLoader bug and not something that this mod can fix.If that's the case, then I'm afraid I can't stop it.
The experience is contained within the above so if you are getting experience then the npc.SpawnedFromStatue flags are not set correctly and my hands are tied.
Edit: did a trace and confirmed that, in GlobalNPC.CheckDead, SpawnedFromStatue returns true in singleplayer and false in multiplayer.
Edit2: SpawnedFromStatue works when called from NPCLoot so statue monsters won't drop Monster Orbs. Unfortunately, the experience bits cannot be moved into that method for several reasons.
Last edited: