mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Whoops!
This commit is contained in:
parent
53c0f1aff8
commit
46e4d14bb0
2 changed files with 11 additions and 2 deletions
|
@ -86,6 +86,11 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster<Livin
|
||||||
return Caster.of(getMaster()).map(Caster::getLevel).orElse(LEVELS);
|
return Caster.of(getMaster()).map(Caster::getLevel).orElse(LEVELS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LevelStore getCorruption() {
|
||||||
|
return Caster.of(getMaster()).map(Caster::getCorruption).orElse(LEVELS);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Affinity getAffinity() {
|
public Affinity getAffinity() {
|
||||||
return getSpellSlot().get(true).map(Spell::getAffinity).orElse(Affinity.NEUTRAL);
|
return getSpellSlot().get(true).map(Spell::getAffinity).orElse(Affinity.NEUTRAL);
|
||||||
|
|
|
@ -9,8 +9,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
import com.minelittlepony.unicopia.Affinity;
|
import com.minelittlepony.unicopia.Affinity;
|
||||||
import com.minelittlepony.unicopia.Race;
|
import com.minelittlepony.unicopia.Race;
|
||||||
import com.minelittlepony.unicopia.WeaklyOwned;
|
import com.minelittlepony.unicopia.WeaklyOwned;
|
||||||
import com.minelittlepony.unicopia.ability.magic.Affine;
|
import com.minelittlepony.unicopia.ability.magic.*;
|
||||||
import com.minelittlepony.unicopia.ability.magic.Levelled;
|
|
||||||
import com.minelittlepony.unicopia.ability.magic.spell.Spell;
|
import com.minelittlepony.unicopia.ability.magic.spell.Spell;
|
||||||
import com.minelittlepony.unicopia.ability.magic.spell.effect.TargetSelecter;
|
import com.minelittlepony.unicopia.ability.magic.spell.effect.TargetSelecter;
|
||||||
import com.minelittlepony.unicopia.entity.ai.BreakHeartGoal;
|
import com.minelittlepony.unicopia.entity.ai.BreakHeartGoal;
|
||||||
|
@ -209,6 +208,11 @@ public class Creature extends Living<LivingEntity> implements WeaklyOwned<Living
|
||||||
return LEVELS;
|
return LEVELS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LevelStore getCorruption() {
|
||||||
|
return LEVELS;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean subtractEnergyCost(double amount) {
|
public boolean subtractEnergyCost(double amount) {
|
||||||
getMaster().damage(DamageSource.MAGIC, (int)amount/2);
|
getMaster().damage(DamageSource.MAGIC, (int)amount/2);
|
||||||
|
|
Loading…
Reference in a new issue