for (int k = 0; k < Player.MaxBuffs; k++)
{
Main.LocalPlayer.DelBuff(k);
}
Since DelBuff() shuffles the remaining buff indexes down to fill the gap. Doing this only removes half of the buffs actually
I fixed it by directly setting buffTime and buffType
for (int k = 0; k < Player.MaxBuffs; k++)
{
Main.LocalPlayer.buffTime[k] = 0;
Main.LocalPlayer.buffType[k] = 0;
}
Advanced preset optimization
If your PC resolution is 1920x1080 and your ui scale is 100%, these two toolbars in Advanced preset overlap:
Considering that many people have the same resolution and ui scale settings as me, I made a slight change to fix this:
Clicking on a UI panel no longer spawns your selection
Before:
After:
Other spawner tools are fixed as well
ai2 option for projectile spawner
1.4.4 added Projectile.ai[2], which should be an option for projectile spawner.
Related issues
Implemented #57 partly (Added "Clear Buffs" tool to Advanced preset) Fixed #54
Fix buff despawner not removing all buffs
Previously,
DelBuff()
is used in buff despawner:Since
DelBuff()
shuffles the remaining buff indexes down to fill the gap. Doing this only removes half of the buffs actuallyI fixed it by directly setting
buffTime
andbuffType
Advanced preset optimization
If your PC resolution is 1920x1080 and your ui scale is 100%, these two toolbars in Advanced preset overlap:
Considering that many people have the same resolution and ui scale settings as me, I made a slight change to fix this:
![KWVH)D3HX(6V0Z_$B6YLZHH](https://user-images.githubusercontent.com/35227653/235615253-25d08a4d-ad7d-4c90-9fb3-decad328d250.png)
Clicking on a UI panel no longer spawns your selection
Before:
After:
![dotnet_QOMAsqQYj7](https://user-images.githubusercontent.com/35227653/235616038-c08c3397-497a-4f4a-931b-c1544be5903e.gif)
Other spawner tools are fixed as well
ai2
option for projectile spawner1.4.4 added![image](https://user-images.githubusercontent.com/35227653/235616412-245ab5d2-1a9e-4e52-9da5-b216b94aa3f2.png)
Projectile.ai[2]
, which should be an option for projectile spawner.