Added unlock themes

also added missing room to unlock all roms
This commit is contained in:
rakion99 committed 2017-03-06 19:14:59 -06:00
1 parent fa4fc2e208
commit 783611dbb4
2 files changed
+15 -1

No files matched your search

+4
View File
@@ -167,6 +167,10 @@ Copyright (C) 2017
<label>Remove Dwellers Waiting</label><br />
<button type="button" class="btn btn-primary" ng-click="removedwellersWaiting()">Activate</button>
</div>
<div class="col-sm-4">
<label>Unlock Themes</label><br />
<button type="button" class="btn btn-primary" ng-click="unlockthemes()">Activate</button>
</div>
</div>
<div class="form-group row">
+11 -1
View File
@@ -391,6 +391,15 @@ app.controller('dwellerController', function ($scope) {
$scope.removedwellersWaiting = function () {
$scope.save.dwellerSpawner.dwellersWaiting = [];
};
$scope.unlockthemes = function () {
var sum2 = Object.keys($scope.save.survivalW.collectedThemes.themeList).length;
for(i=0; i<sum2; i++)
{
$scope.save.survivalW.collectedThemes.themeList[i].extraData.partsCollectedCount = 9;
$scope.save.survivalW.collectedThemes.themeList[i].extraData.IsNew = true;
}
};
$scope.colortofos = colortofos;
@@ -415,7 +424,8 @@ app.controller('dwellerController', function ($scope) {
"PowerPlantUnlock",
"WaterroomUnlock",
"HydroponicUnlock",
"NukacolaUnlock"];
"NukacolaUnlock",
"DesignFactoryUnlock"];
};
$scope.unlockrecipes = function () {