chain effect (#10310)

MAN do i want to change "openfx" and "closefx" to "openEffect" and "closeEffect"
This commit is contained in:
Mythril382
2025-02-05 02:52:59 +08:00
committed by GitHub
parent a2f196a50e
commit 7f3134f0fc

View File

@@ -26,6 +26,7 @@ public class Door extends Wall{
public Effect openfx = Fx.dooropen;
public Effect closefx = Fx.doorclose;
public Sound doorSound = Sounds.door;
public boolean chainEffect = false;
public @Load("@-open") TextureRegion openRegion;
public Door(String name){
@@ -44,6 +45,7 @@ public class Door extends Wall{
continue;
}
if(chainEffect) entity.effect();
entity.open = open;
pathfinder.updateTile(entity.tile());
}