예제 #1
0
        public void OnPrizeSelectMenuConsequence(MenuCallbackArgs args)
        {
            var prizeList = MBItemObject.GetAvailableTournamentPrizes();

            ShowPrizeSelectionMenu(prizeList, OnSelectPrize, OnDeSelectPrize);
            GameMenu.SwitchToMenu("town_arena");
        }
 static void Postfix(TournamentGame __instance, ref ItemObject __result)
 {
     {
         __result = MBItemObject.GetAvailableTournamentPrizes().GetRandomElement();
         return;
     }
 }
예제 #3
0
        private static InquiryElement CreateInquiryElementFromItem(MBItemObject item)
        {
            var itemModifier =
                string.IsNullOrWhiteSpace(item.StringId) ? null : MBMBObjectManager.GetObjectById <ItemModifier>(item.StringId);
            var equipmentElement = new EquipmentElement(item, itemModifier);
            var imageIdentifier  = new ImageIdentifier(
                equipmentElement.Item.StringId,
                ImageIdentifierType.Item,
                equipmentElement.GetModifiedItemName().ToString());

            return(new InquiryElement(
                       equipmentElement.Item.StringId,
                       equipmentElement.GetModifiedItemName().ToString(),
                       imageIdentifier,
                       true,
                       equipmentElement.ToString()
                       ));
        }