mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-23 12:29:53 +00:00
Fix doors not working
This commit is contained in:
parent
be6c95004c
commit
6c8be5930b
@ -15,6 +15,7 @@ public class PropExcel extends GameResource {
|
||||
|
||||
private transient boolean recoverHp;
|
||||
private transient boolean recoverMp;
|
||||
private transient boolean isDoor;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
@ -29,6 +30,8 @@ public class PropExcel extends GameResource {
|
||||
this.recoverMp = true;
|
||||
} else if (getJsonPath().contains("HPRecoverBox")) {
|
||||
this.recoverHp = true;
|
||||
} else if (getJsonPath().contains("_Door_")) {
|
||||
this.isDoor = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,9 @@ public class SceneEntityLoader {
|
||||
// Skip tutorial simulated universe
|
||||
return null;
|
||||
}
|
||||
} else if (prop.getExcel().isDoor()) {
|
||||
// Hacky fix to always open doors
|
||||
prop.setState(PropState.Open, false);
|
||||
} else if (prop.getExcel().getPropType() == PropType.PROP_SPRING) {
|
||||
// Cache teleport anchors
|
||||
scene.getHealingSprings().add(prop);
|
||||
|
@ -28,6 +28,7 @@ public class EntityProp implements GameEntity {
|
||||
private final Position pos;
|
||||
private final Position rot;
|
||||
|
||||
// Prop extra info
|
||||
@Setter private PropRogueData rogueData;
|
||||
|
||||
public EntityProp(Scene scene, PropExcel excel, GroupInfo group, PropInfo propInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user