public void NebulaLevelup(int type)
{
if (this.whoAmI != Main.myPlayer)
return;
int time1 = 480;
for (int b = 0; b < 22; ++b)
{
if (this.buffType[b] >= type && this.buffType[b] < type + 3)
this.DelBuff(b);
}
switch (type)
{
case 173:
this.nebulaLevelLife = (int)MathHelper.Clamp((float)(this.nebulaLevelLife + 1), 0.0f, 3f);
this.AddBuff(type + this.nebulaLevelLife - 1, time1, true);
break;
case 176:
this.nebulaLevelMana = (int)MathHelper.Clamp((float)(this.nebulaLevelMana + 1), 0.0f, 3f);
this.AddBuff(type + this.nebulaLevelMana - 1, time1, true);
break;
case 179:
this.nebulaLevelDamage = (int)MathHelper.Clamp((float)(this.nebulaLevelDamage + 1), 0.0f, 3f);
this.AddBuff(type + this.nebulaLevelDamage - 1, time1, true);
break;
}
}