mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Document the new abilities of shield spells
This commit is contained in:
parent
5d31446c54
commit
e721568312
3 changed files with 18 additions and 8 deletions
|
@ -141,10 +141,10 @@ public class ShieldSpell extends AbstractSpell {
|
|||
valid &= !(entity instanceof PassiveEntity);
|
||||
}
|
||||
if (getTraits().get(Trait.BLOOD) > 0) {
|
||||
valid &= entity instanceof HostileEntity;
|
||||
valid &= !(entity instanceof HostileEntity);
|
||||
}
|
||||
if (getTraits().get(Trait.ICE) > 0) {
|
||||
valid &= entity instanceof PlayerEntity;
|
||||
valid &= !(entity instanceof PlayerEntity);
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
|
|
@ -176,6 +176,11 @@ public final class SpellType<T extends Spell> implements Affine, SpellPredicate<
|
|||
return this == EMPTY_KEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getTranslationKey();
|
||||
}
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
public static <T extends Spell> SpellType<T> register(String name, Affinity affinity, int color, boolean obtainable, Factory<T> factory) {
|
||||
return register(name, affinity, color, obtainable, SpellTraits.EMPTY, factory);
|
||||
|
|
|
@ -225,14 +225,19 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"title": "",
|
||||
"level": 0,
|
||||
"elements": []
|
||||
"title": "Protection II",
|
||||
"level": 4,
|
||||
"elements": [
|
||||
"By adding extra traits, I was able to slightly modify the shield to allow or deny certain parties into the effect range.",
|
||||
"+ add life trait --> all animals may enter\n+ add blood trait --> all monsters may enter\n+ add ice trait --> all ponies may enter"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "",
|
||||
"level": 0,
|
||||
"elements": []
|
||||
"title": "Protection III",
|
||||
"level": 5,
|
||||
"elements": [
|
||||
"+ add genorosity trait to attach the spell to a location rather than yourself"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Scrap: 9th Jum '12",
|
||||
|
|
Loading…
Reference in a new issue