v0.9.2: ethereal chains can no longer pull a rooted hero
This commit is contained in:
parent
640aa26fb9
commit
e4291d86ff
|
@ -304,6 +304,7 @@ items.artifacts.driedrose$ghosthero.desc=A frail looking ethereal figure with a
|
|||
##back to artifacts
|
||||
items.artifacts.etherealchains.name=ethereal chains
|
||||
items.artifacts.etherealchains.ac_cast=CAST
|
||||
items.artifacts.etherealchains.rooted=Your chains cannot pull you while you are rooted.
|
||||
items.artifacts.etherealchains.no_charge=Your chains do not have enough charge.
|
||||
items.artifacts.etherealchains.cursed=You can't use cursed chains.
|
||||
items.artifacts.etherealchains.does_nothing=That won't do anything.
|
||||
|
|
|
@ -189,9 +189,15 @@ public class EtherealChains extends Artifact {
|
|||
}));
|
||||
}
|
||||
|
||||
//pulls the hero along the chain to the collosionPos, if possible.
|
||||
//pulls the hero along the chain to the collisionPos, if possible.
|
||||
private void chainLocation( Ballistica chain, final Hero hero ){
|
||||
|
||||
|
||||
//don't pull if rooted
|
||||
if (hero.rooted){
|
||||
GLog.w( Messages.get(EtherealChains.class, "rooted") );
|
||||
return;
|
||||
}
|
||||
|
||||
//don't pull if the collision spot is in a wall
|
||||
if (Dungeon.level.solid[chain.collisionPos]){
|
||||
GLog.i( Messages.get(this, "inside_wall"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user