@LabelIndex 421358
@StringIndex 0
class 1 rainbow_maker : default_maker {
parameter:
	int	CastleID = 0;

handler:
	EventHandler ON_START(i0,def0) {
		myself::RegisterAgitSiegeEventEx(CastleID);
		def0 = myself::GetSpawnDefine(0);
		if( myself::AtomicIncreaseTotal(def0,def0.total,1) ) {
			def0::Spawn2(def0.total,0,0);
		}
	}

	EventHandler ON_NPC_DELETED(deleted_def,i0,i1,maker0,reply) {
	}

	EventHandler ON_END_SIEGE_EVENT(def0,maker0,i0) {
		for(i0 = 1; i0 < myself.def_count; i0++) {
			def0 = myself::GetSpawnDefine(i0);
			if( myself::AtomicIncreaseTotal(def0,def0.total,1) ) {
				def0::Spawn2(def0.total,0,0);
			}
		}
	}

}
