Opywang
Member
Hi I am wanting to control how many monster spawn per level like for an example.
Level 1 - 200 kills
Level 2 - 100 kills
Level 3 - 50 kills
Level 4 - 25 kills
Level 5 - 12 kills
I found something in championspawn.cs, but it isn't making sense, and I am not sure if that is the right place to do it.
Level 1 - 200 kills
Level 2 - 100 kills
Level 3 - 50 kills
Level 4 - 25 kills
Level 5 - 12 kills
I found something in championspawn.cs, but it isn't making sense, and I am not sure if that is the right place to do it.
Code:
// Only really needed once.
if (this.m_Kills > kills)
this.InvalidateProperties();
double n = this.m_Kills / (double)this.MaxKills;
int p = (int)(n * 100);
if (p >= 90)
this.AdvanceLevel();
else if (p > 0)
this.SetWhiteSkullCount(p / 20);
if (DateTime.UtcNow >= this.m_ExpireTime)
this.Expire();
this.Respawn();
}
Last edited: