一次合成碎片上限处理

back_recharge
gaojie 2019-04-29 20:45:41 +08:00
parent 37bb6046df
commit a00a5f4597
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,3 @@
Id BornItem SpeedFormula InitialEnergy EnergyRecoverSpeed ActionPowerRormula Speed HeroNumlimit EquipNumlimit WorldTalking BornPosition AdventureRefresh NatureName
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
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 数值策划专场
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 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 数值策划专场 99 20

View File

@ -36,6 +36,8 @@ public class SGameSetting implements BaseConfig {
private int itemCompoundLimit;
private int heroCompoundLimit;
private static SGameSetting gameSetting;
@ -93,6 +95,10 @@ public class SGameSetting implements BaseConfig {
return itemCompoundLimit;
}
public int getHeroCompoundLimit() {
return heroCompoundLimit;
}
public float calSpeed(float speed, int breakId){
if(breakId == 0){
return 0;

View File

@ -900,7 +900,7 @@ public class HeroLogic {
SItem sItem = SItem.getsItemMap().get(itemId);
int composeNum = itemNum/sItem.getUsePerCount();
SGameSetting gameSetting = SGameSetting.getGameSetting();
if (composeNum <= 0 || composeNum >= gameSetting.getItemCompoundLimit()){
if (composeNum <= 0 || composeNum > gameSetting.getHeroCompoundLimit()){
MessageUtil.sendErrorResponse(iSession,0,msgId,"");
return;
}