Closed athrane closed 2 years ago
Implemented by WildfireEffect.splAoeEffectOp.
Discarded semantics for the item:
The predicate function will exclude an entity if it already has contagion, i.e. it doesn't doesn't spread to already contagious entities.
Implementation detail: The predicate function is defined as (please notice the nice AND):
Function<Ports, Predicate<LivingEntity>> fnGetPredicate = p -> hasLivingEntitiesDifferentIds(
applyV(fnGetTrueSource, p)).and(hasNotPotionEffect(CONTAGION_EFFECT.get()));
The predicate function will only exclude itself. Any effect (including Contagion) will effect spread to any entity. Even if it is already contagious.
The predicate function will only exclude itself. Any effect (including Contagion) will effect spread to any entity. Even if it is already contagious.
The predicate function will only exclude itself. Any effect (including Contagion) will effect spread to any entity. Even if it is already contagious.
Event more discarded semantics for the item:
The predicate function will exclude an entity if it already has contagion, i.e. it doesn't doesn't spread to already contagious entities.
Implementation detail: The predicate function is defined as (please notice the nice AND):
Function<Ports, Predicate<LivingEntity>> fnGetPredicate = p -> hasLivingEntitiesDifferentIds(
applyV(fnGetTrueSource, p)).and(hasNotPotionEffect(CONTAGION_EFFECT.get()));
The predicate function will only exclude itself. Any effect (including Contagion) will effect spread to any entity. Even if it is already contagious.
The predicate function will only exclude itself. Any effect (including Contagion) will effect spread to any entity. Even if it is already contagious.
Resolved with commit: f5bee22
Final (and simple)semantics for the item:
Contagion2 operator
CoreOp
The predicate function will exclude an entity if it already has contagion, i.e. it doesn't doesn't spread to already contagious entities.
Implementation detail: The predicate function is defined as (please notice the nice AND):
AoeEffectOp
ContagionEffect potion effect
CoreOp (for spread of potion effect)
The predicate function will only exclude itself. Any effect (including Contagion) will effect spread to any entity. Even if it is already contagious.
AoeEffectOp (for spread of potion effect)