灵兽系统消息添加
parent
1fa383a2ed
commit
4f3c4fc8fb
|
|
@ -3136,6 +3136,12 @@ public class HeroLogic{
|
|||
if(pokemonManager.getPokemonTeamMap().containsValue(pokemonId)){
|
||||
Poster.getPoster().dispatchEvent(new UserMainTeamForceEvent(session.getUid()));
|
||||
}
|
||||
if(animal.getQuality() >= SSpecialConfig.getIntegerValue(SSpecialConfig.ANIMAL_BROADCAST_QUALITY)) { //策划资质改成星级
|
||||
String message = SErrorCodeEerverConfig.getI18NMessage("animal_starup_broadcast_content", new Object[]{user.getPlayerInfoManager().getNickName(),animal.getName(),pokemon.getStar()});
|
||||
if (!message.isEmpty()){
|
||||
ChatLogic.getInstance().sendSysChatMessage(message,Global.LUCKY_LUCK,0,0,0,0,0,0);
|
||||
}
|
||||
}
|
||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.POKEMON_ADVANCED_RESPONSE_VALUE,null,true);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1597,6 +1597,13 @@ public class ItemUtil {
|
|||
user.getPokemonManager().addPokemonGot(pokemon.getTmpId());
|
||||
}
|
||||
dropBuilder.addPokemon(CBean2Proto.getPokemon(pokemon));
|
||||
SSpiritAnimal animal = STableManager.getConfig(SSpiritAnimal.class).get(entry.getKey());
|
||||
if (animal.getQuality() >= SSpecialConfig.getIntegerValue(SSpecialConfig.ANIMAL_BROADCAST_QUALITY)&&reason!=BIReason.COMPOS_HERO_REWARD) { //策划资质改成星级
|
||||
String message = SErrorCodeEerverConfig.getI18NMessage("animal_get_broadcast_content", new Object[]{user.getPlayerInfoManager().getNickName(), animal.getName()});
|
||||
if (!message.isEmpty()){
|
||||
ChatLogic.getInstance().sendSysChatMessage(message,Global.LUCKY_LUCK,0,0,0,0,0,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ public class SSpecialConfig implements BaseConfig {
|
|||
|
||||
public static final String DISCOUNT_MAIN = "discount_main";//关卡礼包
|
||||
|
||||
public static final String ANIMAL_BROADCAST_QUALITY = "animal_broadcast_quality";
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ public class SSpiritAnimal implements BaseConfig {
|
|||
|
||||
private int id;
|
||||
|
||||
private String name;
|
||||
|
||||
private int piecesId;
|
||||
|
||||
private int piecesCount;
|
||||
|
|
@ -118,5 +120,7 @@ public class SSpiritAnimal implements BaseConfig {
|
|||
return returnCost;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue