summaryrefslogtreecommitdiff
path: root/src/elements/plut.cpp
blob: 7c51b2d91809a700866e0ab0dd2a8221df0a74c3 (plain)
1
2
3
4
5
6
7
8
9
#include "simulation/Element.h"

int update_PLUT(UPDATE_FUNC_ARGS) {
	if (1>rand()%100 && ((int)(5.0f*sim->pv[y/CELL][x/CELL]))>(rand()%1000))
	{
		sim->create_part(i, x, y, PT_NEUT);
	}
	return 0;
}