CODE:
public static short Hp_Reg_of_CASTLE;// 城堡回血設定
public static short Mp_Reg_of_CASTLE;// 城堡回魔設定
public static short Mp_Reg_of_CASTLE;// 城堡回魔設定
搜尋
Properties otherSettings = new Properties();
is = new FileInputStream(new File(OTHER_SETTINGS_CONFIG_FILE));
otherSettings.load(is);
is.close();
下面加入
CODE:
Hp_Reg_of_CASTLE = Short.parseShort(otherSettings.getProperty("HpRegofCASTLE", "7"));// 城堡回血設定
Mp_Reg_of_CASTLE = Short.parseShort(otherSettings.getProperty("MpRegofCASTLE", "3"));// 城堡回魔設定
Mp_Reg_of_CASTLE = Short.parseShort(otherSettings.getProperty("MpRegofCASTLE", "3"));// 城堡回魔設定
MpRegeneration.java
搜尋
baseMpr += Config.Mp_Reg_of_INN; // 旅館 回魔量
}
下面加入
CODE:
if ((_pc.getMapId() == 15) || (_pc.getMapId() == 29) ||
(_pc.getMapId() == 52) || (_pc.getMapId() == 64) ||
(_pc.getMapId() == 300)) {
baseMpr += Config.Mp_Reg_of_CASTLE;
}
(_pc.getMapId() == 52) || (_pc.getMapId() == 64) ||
(_pc.getMapId() == 300)) {
baseMpr += Config.Mp_Reg_of_CASTLE;
}
HpRegeneration.java
搜尋
bonus += Config.Hp_Reg_of_INN; // 旅館回血量
}
下面加入
CODE:
if ((_pc.getMapId() == 15) || (_pc.getMapId() == 29) ||
(_pc.getMapId() == 52) || (_pc.getMapId() == 64) ||
(_pc.getMapId() == 300)) {
bonus += Config.Hp_Reg_of_CASTLE;
}
(_pc.getMapId() == 52) || (_pc.getMapId() == 64) ||
(_pc.getMapId() == 300)) {
bonus += Config.Hp_Reg_of_CASTLE;
}
config\othersettings.properties
裡面加入
#=================================================================
# 城堡回血回魔設定
HpRegofCASTLE = 25
MpRegofCASTLE = 20
#=================================================================
文章出處:浪漫物語網路社區
文章作者:edward6934
沒有留言:
張貼留言