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,7 +15,8 @@ public class PropExcel extends GameResource {
|
|||||||
|
|
||||||
private transient boolean recoverHp;
|
private transient boolean recoverHp;
|
||||||
private transient boolean recoverMp;
|
private transient boolean recoverMp;
|
||||||
|
private transient boolean isDoor;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return ID;
|
return ID;
|
||||||
@ -29,6 +30,8 @@ public class PropExcel extends GameResource {
|
|||||||
this.recoverMp = true;
|
this.recoverMp = true;
|
||||||
} else if (getJsonPath().contains("HPRecoverBox")) {
|
} else if (getJsonPath().contains("HPRecoverBox")) {
|
||||||
this.recoverHp = true;
|
this.recoverHp = true;
|
||||||
|
} else if (getJsonPath().contains("_Door_")) {
|
||||||
|
this.isDoor = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +67,9 @@ public class SceneEntityLoader {
|
|||||||
// Skip tutorial simulated universe
|
// Skip tutorial simulated universe
|
||||||
return null;
|
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) {
|
} else if (prop.getExcel().getPropType() == PropType.PROP_SPRING) {
|
||||||
// Cache teleport anchors
|
// Cache teleport anchors
|
||||||
scene.getHealingSprings().add(prop);
|
scene.getHealingSprings().add(prop);
|
||||||
|
@ -28,6 +28,7 @@ public class EntityProp implements GameEntity {
|
|||||||
private final Position pos;
|
private final Position pos;
|
||||||
private final Position rot;
|
private final Position rot;
|
||||||
|
|
||||||
|
// Prop extra info
|
||||||
@Setter private PropRogueData rogueData;
|
@Setter private PropRogueData rogueData;
|
||||||
|
|
||||||
public EntityProp(Scene scene, PropExcel excel, GroupInfo group, PropInfo propInfo) {
|
public EntityProp(Scene scene, PropExcel excel, GroupInfo group, PropInfo propInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user