Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landmine event causes custom map objects to have increased spawnrate #16

Closed
EvaisaDev opened this issue Dec 7, 2023 · 1 comment
Closed

Comments

@EvaisaDev
Copy link

EvaisaDev commented Dec 7, 2023

This line of code

if ((turretComponent != null && turret) || (landmineComponent != null && landmine) || (turretComponent == null && landmineComponent == null))
{
	unit.numberToSpawn = curve;
}

Means that custom objects, which do not have a turret component or a landmine component, get increased spawnrate during landmine events.
This is sub optimal, as it is causing the teleporter traps from my mod to spawn all over the place, when they are supposed to have a max spawn count of 4.
You should remove this part || (turretComponent == null && landmineComponent == null), not sure why that is even there.

@Venterok
Copy link
Owner

Venterok commented Dec 8, 2023

rofl, simple carelessness, I fixed it, I'll release an update in a couple of hours

@Venterok Venterok closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants