chain effect (#10310)
MAN do i want to change "openfx" and "closefx" to "openEffect" and "closeEffect"
This commit is contained in:
@@ -26,6 +26,7 @@ public class Door extends Wall{
|
|||||||
public Effect openfx = Fx.dooropen;
|
public Effect openfx = Fx.dooropen;
|
||||||
public Effect closefx = Fx.doorclose;
|
public Effect closefx = Fx.doorclose;
|
||||||
public Sound doorSound = Sounds.door;
|
public Sound doorSound = Sounds.door;
|
||||||
|
public boolean chainEffect = false;
|
||||||
public @Load("@-open") TextureRegion openRegion;
|
public @Load("@-open") TextureRegion openRegion;
|
||||||
|
|
||||||
public Door(String name){
|
public Door(String name){
|
||||||
@@ -44,6 +45,7 @@ public class Door extends Wall{
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(chainEffect) entity.effect();
|
||||||
entity.open = open;
|
entity.open = open;
|
||||||
pathfinder.updateTile(entity.tile());
|
pathfinder.updateTile(entity.tile());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user