mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-18 16:24:36 +01:00
Improve handling recovery props
This commit is contained in:
@@ -26,9 +26,9 @@ public class PropExcel extends GameResource {
|
|||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
// Hacky way to determine if a prop will recover hp or mp
|
// Hacky way to determine if a prop will recover hp or mp
|
||||||
if (getJsonPath() != null && getJsonPath().length() > 0) {
|
if (getJsonPath() != null && getJsonPath().length() > 0) {
|
||||||
if (getJsonPath().contains("MPRecoverBox")) {
|
if (getJsonPath().contains("MPRecover") || getJsonPath().contains("MPBox")) {
|
||||||
this.recoverMp = true;
|
this.recoverMp = true;
|
||||||
} else if (getJsonPath().contains("HPRecoverBox")) {
|
} else if (getJsonPath().contains("HPRecover") || getJsonPath().contains("HPBox")) {
|
||||||
this.recoverHp = true;
|
this.recoverHp = true;
|
||||||
} else if (getJsonPath().contains("_Door_")) {
|
} else if (getJsonPath().contains("_Door_")) {
|
||||||
this.isDoor = true;
|
this.isDoor = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user