public override void OnActivate(int pinID) { if (pinID != 0 && pinID != 100) { return; } PlayerData player = MonoSingleton <GameManager> .Instance.Player; this.mItemParam = MonoSingleton <GameManager> .Instance.GetItemParam(GlobalVars.SelectedCreateItemID); if (!player.CheckItemCapacity(this.mItemParam, 1)) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(2); } else if (pinID == 0) { if (MonoSingleton <GameManager> .Instance.GetRecipeParam(this.mItemParam.recipe).cost > player.Gold) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(3); } else { CreateItemResult result_type = player.CheckCreateItem(this.mItemParam); if (result_type == CreateItemResult.NotEnough) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(4); } else if (result_type == CreateItemResult.CanCreateCommon) { int cost = 0; Dictionary <string, int> consumes = (Dictionary <string, int>)null; bool is_ikkatsu = false; NeedEquipItemList item_list = new NeedEquipItemList(); MonoSingleton <GameManager> .GetInstanceDirect().Player.CheckEnableCreateItem(this.mItemParam, ref is_ikkatsu, ref cost, ref consumes, item_list); UIUtility.ConfirmBox(LocalizedText.Get("sys.COMMON_EQUIP_CHECK_MADE", new object[1] { (object)item_list.GetCommonItemListString() }), (UIUtility.DialogResultEvent)(go => this.CallApiNormal(player, result_type)), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1, (string)null, (string)null); } else { this.CallApiNormal(player, result_type); } } } else { int cost = 0; Dictionary <string, int> consumes = (Dictionary <string, int>)null; bool is_ikkatsu = false; NeedEquipItemList need_euip_item = new NeedEquipItemList(); bool flag = player.CheckEnableCreateItem(this.mItemParam, ref is_ikkatsu, ref cost, ref consumes, need_euip_item); if (cost > player.Gold) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(3); } else if (!flag && !need_euip_item.IsEnoughCommon()) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(4); } else if (need_euip_item.IsEnoughCommon()) { UIUtility.ConfirmBox(LocalizedText.Get("sys.COMMON_EQUIP_CHECK_ONETAP", new object[1] { (object)need_euip_item.GetCommonItemListString() }), (UIUtility.DialogResultEvent)(go => this.CallApi(need_euip_item, player)), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1, (string)null, (string)null); } else { this.CallApi(need_euip_item, player); } } }
public override void OnActivate(int pinID) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type FlowNode_CreateItem.\u003COnActivate\u003Ec__AnonStorey2C8 activateCAnonStorey2C8 = new FlowNode_CreateItem.\u003COnActivate\u003Ec__AnonStorey2C8(); // ISSUE: reference to a compiler-generated field activateCAnonStorey2C8.\u003C\u003Ef__this = this; if (pinID != 0 && pinID != 100) { return; } // ISSUE: reference to a compiler-generated field activateCAnonStorey2C8.player = MonoSingleton <GameManager> .Instance.Player; this.mItemParam = MonoSingleton <GameManager> .Instance.GetItemParam(GlobalVars.SelectedCreateItemID); // ISSUE: reference to a compiler-generated field if (!activateCAnonStorey2C8.player.CheckItemCapacity(this.mItemParam, 1)) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(2); } else if (pinID == 0) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type FlowNode_CreateItem.\u003COnActivate\u003Ec__AnonStorey2C9 activateCAnonStorey2C9 = new FlowNode_CreateItem.\u003COnActivate\u003Ec__AnonStorey2C9(); // ISSUE: reference to a compiler-generated field activateCAnonStorey2C9.\u003C\u003Ef__ref\u0024712 = activateCAnonStorey2C8; // ISSUE: reference to a compiler-generated field activateCAnonStorey2C9.\u003C\u003Ef__this = this; // ISSUE: reference to a compiler-generated field if (MonoSingleton <GameManager> .Instance.GetRecipeParam(this.mItemParam.recipe).cost > activateCAnonStorey2C8.player.Gold) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(3); } else { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field activateCAnonStorey2C9.result_type = activateCAnonStorey2C8.player.CheckCreateItem(this.mItemParam); // ISSUE: reference to a compiler-generated field if (activateCAnonStorey2C9.result_type == CreateItemResult.NotEnough) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(4); } else { // ISSUE: reference to a compiler-generated field if (activateCAnonStorey2C9.result_type == CreateItemResult.CanCreateCommon) { int cost = 0; Dictionary <string, int> consumes = (Dictionary <string, int>)null; bool is_ikkatsu = false; NeedEquipItemList item_list = new NeedEquipItemList(); MonoSingleton <GameManager> .GetInstanceDirect().Player.CheckEnableCreateItem(this.mItemParam, ref is_ikkatsu, ref cost, ref consumes, item_list); // ISSUE: reference to a compiler-generated method UIUtility.ConfirmBox(LocalizedText.Get("sys.COMMON_EQUIP_CHECK_MADE", new object[1] { (object)item_list.GetCommonItemListString() }), new UIUtility.DialogResultEvent(activateCAnonStorey2C9.\u003C\u003Em__2A1), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1, (string)null, (string)null); } else { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field this.CallApiNormal(activateCAnonStorey2C8.player, activateCAnonStorey2C9.result_type); } } } } else { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type FlowNode_CreateItem.\u003COnActivate\u003Ec__AnonStorey2CA activateCAnonStorey2Ca = new FlowNode_CreateItem.\u003COnActivate\u003Ec__AnonStorey2CA(); // ISSUE: reference to a compiler-generated field activateCAnonStorey2Ca.\u003C\u003Ef__ref\u0024712 = activateCAnonStorey2C8; // ISSUE: reference to a compiler-generated field activateCAnonStorey2Ca.\u003C\u003Ef__this = this; int cost = 0; Dictionary <string, int> consumes = (Dictionary <string, int>)null; bool is_ikkatsu = false; // ISSUE: reference to a compiler-generated field activateCAnonStorey2Ca.need_euip_item = new NeedEquipItemList(); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field bool flag = activateCAnonStorey2C8.player.CheckEnableCreateItem(this.mItemParam, ref is_ikkatsu, ref cost, ref consumes, activateCAnonStorey2Ca.need_euip_item); // ISSUE: reference to a compiler-generated field if (cost > activateCAnonStorey2C8.player.Gold) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(3); } else { // ISSUE: reference to a compiler-generated field if (!flag && !activateCAnonStorey2Ca.need_euip_item.IsEnoughCommon()) { ((Behaviour)this).set_enabled(false); this.ActivateOutputLinks(4); } else { // ISSUE: reference to a compiler-generated field if (activateCAnonStorey2Ca.need_euip_item.IsEnoughCommon()) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method UIUtility.ConfirmBox(LocalizedText.Get("sys.COMMON_EQUIP_CHECK_ONETAP", new object[1] { (object)activateCAnonStorey2Ca.need_euip_item.GetCommonItemListString() }), new UIUtility.DialogResultEvent(activateCAnonStorey2Ca.\u003C\u003Em__2A2), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1, (string)null, (string)null); } else { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field this.CallApi(activateCAnonStorey2Ca.need_euip_item, activateCAnonStorey2C8.player); } } } } }