Example #1
0
 public String FightTypeToString(NewPlayerObject obj)
 {
     if (obj.FightType == ServerDefine.FightType.NWARRIOR_DROP_EQUIP)
     {
         return(DataMgr.GetWeaponData(obj.Shape).Name + " +" + obj.DropOPCom.WeaponInfo.SIProp.Grade.ToString());
     }
     else if (obj.FightType == ServerDefine.FightType.NWARRIOR_DROP_RELIC)
     {
         return(DataMgr.GetRelicData(obj.DropOPCom.RelicSid).Name);
     }
     else if (obj.FightType == ServerDefine.FightType.NWARRIOR_NPC_SMITH)
     {
         return("工匠");
     }
     else if (obj.FightType == ServerDefine.FightType.NWARRIOR_NPC_SHOP)
     {
         return("商人");
     }
     else if (obj.FightType == ServerDefine.FightType.WARRIOR_OBSTACLE_NORMAL && (obj.Shape == 4406 || obj.Shape == 4419 || obj.Shape == 4427))
     {
         return("秘境");
     }
     else if (obj.FightType == ServerDefine.FightType.NWARRIOR_NPC_EVENT)
     {
         return("宝箱");
     }
     else if (obj.FightType == ServerDefine.FightType.NWARRIOR_NPC_ITEMBOX)
     {
         return("宝箱");
     }
     return("unk");
 }