一次合成碎片上限处理
parent
37bb6046df
commit
a00a5f4597
|
|
@ -1,3 +1,3 @@
|
||||||
Id BornItem SpeedFormula InitialEnergy EnergyRecoverSpeed ActionPowerRormula Speed HeroNumlimit EquipNumlimit WorldTalking BornPosition AdventureRefresh NatureName
|
Id BornItem SpeedFormula InitialEnergy EnergyRecoverSpeed ActionPowerRormula Speed HeroNumlimit EquipNumlimit WorldTalking BornPosition AdventureRefresh NatureName ItemCompoundLimit HeroCompoundLimit
|
||||||
int mut,int#int,2 mut,float#float,1 int mut,int#int,1 mut,int#int,1 mut,int#int,1 int int int mut,int#int,1 int string
|
int mut,int#int,2 mut,float#float,1 int mut,int#int,1 mut,int#int,1 mut,int#int,1 int int int mut,int#int,1 int string int int
|
||||||
1 10046#1|2#80 0#0#0.3164#0 80 1#6 0#0#1#0 70#100 999 9999 1 08#19 60 数值策划专场
|
1 10046#1|2#80 0#0#0.3164#0 80 1#6 0#0#1#0 70#100 999 9999 1 08#19 60 数值策划专场 99 20
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ public class SGameSetting implements BaseConfig {
|
||||||
|
|
||||||
private int itemCompoundLimit;
|
private int itemCompoundLimit;
|
||||||
|
|
||||||
|
private int heroCompoundLimit;
|
||||||
|
|
||||||
|
|
||||||
private static SGameSetting gameSetting;
|
private static SGameSetting gameSetting;
|
||||||
|
|
||||||
|
|
@ -93,6 +95,10 @@ public class SGameSetting implements BaseConfig {
|
||||||
return itemCompoundLimit;
|
return itemCompoundLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getHeroCompoundLimit() {
|
||||||
|
return heroCompoundLimit;
|
||||||
|
}
|
||||||
|
|
||||||
public float calSpeed(float speed, int breakId){
|
public float calSpeed(float speed, int breakId){
|
||||||
if(breakId == 0){
|
if(breakId == 0){
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -900,7 +900,7 @@ public class HeroLogic {
|
||||||
SItem sItem = SItem.getsItemMap().get(itemId);
|
SItem sItem = SItem.getsItemMap().get(itemId);
|
||||||
int composeNum = itemNum/sItem.getUsePerCount();
|
int composeNum = itemNum/sItem.getUsePerCount();
|
||||||
SGameSetting gameSetting = SGameSetting.getGameSetting();
|
SGameSetting gameSetting = SGameSetting.getGameSetting();
|
||||||
if (composeNum <= 0 || composeNum >= gameSetting.getItemCompoundLimit()){
|
if (composeNum <= 0 || composeNum > gameSetting.getHeroCompoundLimit()){
|
||||||
MessageUtil.sendErrorResponse(iSession,0,msgId,"");
|
MessageUtil.sendErrorResponse(iSession,0,msgId,"");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue