コード例 #1
0
ファイル: Actions.cs プロジェクト: Jgeyen/devshop-bot
        private void UpgradeWorker(WorkerTypes type)
        {
            _store.GoToStore();
            var storeItemType = type switch
            {
                WorkerTypes.dev => StoreItems.UpskillDeveloper,
                WorkerTypes.test => StoreItems.UpskillTester,
                WorkerTypes.ba => StoreItems.UpskillBA,
                WorkerTypes.founder => StoreItems.UpskillDeveloper
            };

            _store.PurchaseStoreItem(storeItemType);
            _store.GoToKanban();
            _board.SelectPurchasedStoreItem(type);
            _workers.GetLowestSkillWorker(type)?.SelectWithWait(TimeSpan.FromSeconds(10));
            _state.UpdateWorkerInformation();
        }