Search in sources :

Example 1 with ParticleLiveForBuffDuration

use of am2.particles.ParticleLiveForBuffDuration in project ArsMagica2 by Mithion.

the class BuffList method addParticleToBuff.

public static boolean addParticleToBuff(AMParticle particle, EntityLiving ent, int priority, boolean exclusive, int buffID) {
    if (particlesForBuffID.get(buffID) >= maxParticlesPerBuff) {
        return false;
    }
    int count = particlesForBuffID.get(buffID);
    count++;
    particlesForBuffID.put(buffID, count);
    particle.AddParticleController(new ParticleLiveForBuffDuration(particle, ent, buffID, priority, exclusive));
    return true;
}
Also used : ParticleLiveForBuffDuration(am2.particles.ParticleLiveForBuffDuration)

Aggregations

ParticleLiveForBuffDuration (am2.particles.ParticleLiveForBuffDuration)1