master_huanxiang
PC-202302260912\Administrator 2023-07-14 15:40:07 +08:00
parent 5bf9973b86
commit bd0217e13b
2 changed files with 7 additions and 6 deletions

View File

@ -523,12 +523,7 @@ public class HeroLogic {
// 查找物品
SItem sItem = SItem.getsItemMap().get(item[0]);
// 非英雄奖励直接返回
if (sItem.getItemType() != GlobalItemType.CARD) {
return item;
}
// 非五星英雄
SCHero scHero = SCHero.getsCHero().get(item[0]);
if (scHero == null || scHero.getStar() < 5) {
if (sItem.getXinyuan() != 1) {
return item;
}

View File

@ -35,6 +35,8 @@ public class SItem implements BaseConfig {
private int useLevel;
private String name;
private int xinyuan;
@Override
public void init() throws Exception {
sItemMap = STableManager.getConfig(SItem.class);
@ -132,4 +134,8 @@ public class SItem implements BaseConfig {
public int getUseLevel() {
return useLevel;
}
public int getXinyuan() {
return xinyuan;
}
}