Esempio n. 1
0
        void SpecialEvts(EventTable table, EventID _eventId, GameEvent evt)
        {
            UI.Resource.Resource resource      = evt.GetResource;
            ResourceTable        resourceTable = resource.GetResourceTable;

            switch (_eventId)
            {
            case EventID.NO18:            // 식인 사건
                resource.ApplyPopulation(-(int)resource.GetPopulationResource(0.3d));
                resource.ApplyFood((int)resource.GetFoodResource(0.1d));
                resource.ApplyLeaderShip(-4);
                ApplyEventUI(table);
                break;

            case EventID.NO19:            // 인신 공양
                resource.ApplyPopulation(-(int)resource.GetPopulationResource(0.5d));
                resource.ApplyFood((int)resource.GetFoodResource(0.1d));
                resource.ApplyLeaderShip(-4);
                ApplyEventUI(table);
                break;

            case EventID.NO20:            // 반란 발생
                SpecialBubble.Instance.SpawnSpecialBubble(SpecialBubbleType.REBELLION);
                ApplyEventUI(table);
                break;

            case EventID.NO21:            // 집단 시위
                SpecialBubble.Instance.SpawnSpecialBubble(SpecialBubbleType.DEMONSTRATE);
                ApplyEventUI(table);
                break;

            case EventID.NO22:            // 알 수 없는 종교
                resource.ApplyLeaderShip(-1);
                SpecialBubble.Instance.SpawnSpecialBubble(SpecialBubbleType.FALSE_RELIGION);
                ApplyEventUI(table);
                break;

            case EventID.NO23:            // 만족하는 복지
                resource.ApplyLeaderShip(2);
                ApplyEventUI(table);
                break;

            case EventID.NO24:            // 만성 피로
                table._nextEvent = false;
                evt.SubscribeThreeDayEvent(() => { resource.ApplyLeaderShip(-1); });
                evt.SubscribeTwoDayEvent(() => { resource.ApplyPopulation(-1); });
                ApplyEventUI(table);
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
        void NormalEvts(EventTable table, EventID _eventId, GameEvent evt)
        {
            UI.Resource.Resource resource      = evt.GetResource;
            ResourceTable        resourceTable = resource.GetResourceTable;

            switch (_eventId)
            {
            case EventID.NO3:         // 단풍잎 이야기
                resource.ApplyLeaderShip(1);
                ApplyEventUI(table);
                break;

            case EventID.NO4:         // 식량 배분
                resource.ApplyFood((int)resource.GetFoodResource(0.1d));
                ApplyEventUI(table);
                break;

            case EventID.NO5:         // 비상식량 발견
                resource.ApplyFood((int)resource.GetFoodResource(0.1d));
                ApplyEventUI(table);
                break;

            case EventID.NO6:         // 사고 발생
                resource.ApplyPopulation(-(int)resource.GetPopulationResource(0.1d));
                evt.switchCondition.SwitchON(SwitchID.NO2);
                ApplyEventUI(table);
                break;

            case EventID.NO7:             // 톱니바퀴 개발
                resource.ApplyFood((int)resource.GetFoodResource(0.1d));
                evt.switchCondition.SwitchON(SwitchID.NO1);
                ApplyEventUI(table);
                break;

            case EventID.NO8:             // 감독관 배치
                resource.ApplyLeaderShip(1);
                evt.switchCondition.SwitchON(SwitchID.NO3);
                ApplyEventUI(table);
                break;

            case EventID.NO9:             // 장비를 정지합니다
                GameEvent.Instance.WeekUploadTime = 2.0f;
                ApplyEventUI(table);
                break;

            case EventID.NO10:            // 부정 부패
                resource.ApplyFood(-(int)resource.GetFoodResource(0.2d));
                resource.ApplyLeaderShip(-2);
                ApplyEventUI(table);
                break;

            case EventID.NO11:            // 노후 부품 발견
                evt.switchCondition.SwitchOff(SwitchID.NO1);
                ApplyEventUI(table);
                break;

            case EventID.NO12:            // 식량 분쟁
                resource.ApplyFood(-(int)resource.GetFoodResource(0.3d));
                ApplyEventUI(table);
                break;

            case EventID.NO13:            // 식량 창고 개선
                resource.ApplyMaxFood(1);
                resource.ApplyPopulation(-(int)resource.GetFoodResource(0.2d));
                ApplyEventUI(table);
                break;

            case EventID.NO14:            // 어이쿠 손이 미끄러졌네
                resource.ApplyFood(-(int)resource.GetFoodResource(0.3d));
                resource.ApplyLeaderShip(-1);
                ApplyEventUI(table);
                break;

            case EventID.NO15:            // 재배 시설 강화
                resource.ApplyPopulation((int)resource.GetFoodResource(0.2d));
                resource.ApplyFood((int)resource.GetFoodResource(0.3d));
                ApplyEventUI(table);
                break;

            case EventID.NO16:            //베이비 붐 시대
                resource.ApplyPopulation((int)((double)evt.GetTrain.GetTrainAmount().GuestRoom *resource.GetFoodResource(0.1d)));
                ApplyEventUI(table);
                break;

            case EventID.NO17:            // 의문의 지도자
                resource.ApplyLeaderShip(-1);
                resource.ApplyFood((int)resource.GetFoodResource(0.2d));
                evt.switchCondition.SwitchON(SwitchID.NO4);
                ApplyEventUI(table);
                break;

            default:
                break;
            }
        }