Added max happiness all, unlock all rooms, unlock all recipes, skin and hair color

This commit is contained in:
rakion99
2016-07-18 19:51:24 -05:00
parent 1276f5df94
commit 91fdcfca6f
4 changed files with 2229 additions and 10 deletions
-5
View File
@@ -64,11 +64,6 @@ a.tab:focus {
margin-left: 0;
margin-right: 0;
}
.row.rockbtn {
margin-top: 80px;
margin-left: 0;
margin-right: 350px;
}
.box {
margin-top: 30px;
+42 -5
View File
@@ -59,10 +59,18 @@
<input type="number" class="form-control" name="starterPack" ng-model="starterPackCount">
</div>
<div class="row rockbtn">
</div>
<div class="form-group row">
<div class="col-sm-4">
<button type="button" class="btn btn-primary pull-right" ng-click="removeRocks()">Remove Rocks</button>
</div>
<div class="col-sm-4">
<button type="button" class="btn btn-primary pull-right" ng-click="unlockrooms()">Unlock All Rooms</button>
</div>
<div class="col-sm-4">
<button type="button" class="btn btn-primary pull-right" ng-click="unlockrecipes()">Unlock All Recipes</button>
</div>
</div>
<div class="form-group row">
@@ -118,10 +126,15 @@
</div>
<div class="row box" ng-show="section == 'dwellers'">
<div class="dwellers list-group col-sm-4">
<div class="row save">
<div class="form-group row">
<div class="col-sm-4">
<button type="button" class="btn btn-primary pull-right" ng-click="maxSpecialAll()">Max Stats All</button>
</div>
<div class="col-sm-4">
<button type="button" class="btn btn-primary pull-right" ng-click="maxhappinessAll()">Max Happiness All</button>
</div>
</div>
<div class="dwellers list-group col-sm-4">
<a ng-repeat="d in save.dwellers.dwellers" ng-click="editDweller(d);" ng-class="{ 'active': dweller == d }" class="list-group-item">{{ d.name }} {{ d.lastName }}</a>
</div>
@@ -171,6 +184,16 @@
<label>Level</label>
<input type="number" class="form-control" name="level" ng-model="dweller.experience.currentLevel">
</div>
<div class="col-sm-4">
<label>Skin Color</label>
<input type="number" class="form-control" name="skincolor" ng-model="dweller.skinColor">
</div>
<div class="col-sm-4">
<label>Hair Color</label>
<input type="number" class="form-control" name="hairColor" ng-model="dweller.hairColor">
</div>
</div>
<div class="form-group row">
@@ -185,6 +208,8 @@
<div class="row save">
<button type="button" class="btn btn-primary pull-right" ng-click="maxSpecial()">Max Stats</button>
</div>
<br>
<br>
</form>
</div>
@@ -210,7 +235,18 @@
<br><center><label><font color="red">Updated by rakion99</font></label></center>
<div class="presets">
<br><center><b>EXTRAS</b></center>
<br><label title="Savefile names can only be 'Vault1.sav', 'Vault2.sav' or 'Vault3.sav'">Savefile Name: </label> <input type="text" name="presetSaveName" id="presetSaveName" placeholder="Vault1.sav" value="Vault1.sav" ><hr>
<br><center><b>Color Picker</b></center>
<form>
<p>
Hex Color:
<input name="color1" class="jscolor" value="0000FF">
Copy this to the Dweller color:
<span class='value1' ng-bind="colortofos()"></span>
</p>
<input type="submit" value="Update Color">
</form>
<br>
<br><label title="Savefile names can only be 'Vault1.sav', 'Vault2.sav' or 'Vault3.sav'">Savefile Name: </label> <input type="text" name="presetSaveName" id="presetSaveName" placeholder="Vault1.sav" value="Vault1.sav" ><br>
<button class="btn" onclick="preset('NewSave', document.getElementById('presetSaveName').value)">New Save</button>
<button class="btn" onclick="preset('Stats9999', document.getElementById('presetSaveName').value)">All 9999</button>
<button class="btn" onclick="preset('SuperDwellers', document.getElementById('presetSaveName').value)">Super Dwellers</button>
@@ -230,6 +266,7 @@
<script src="js/aes.js"></script>
<script src="js/FileSaver.js"></script>
<script src="js/shelter.js"></script>
<script src="js/jscolor.js"></script>
</body>
</html>
+1844
View File
File diff suppressed because it is too large Load Diff
+343
View File
@@ -229,6 +229,12 @@ app.controller('dwellerController', function ($scope) {
$scope.dweller = dweller;
};
$scope.maxhappinessAll = function () {
var sum2 = Object.keys($scope.save.dwellers.dwellers).length;
for(i=0; i<sum2; i++)
$scope.save.dwellers.dwellers[i].happiness.happinessValue = 100;
};
$scope.maxSpecialAll = function () {
var sum2 = Object.keys($scope.save.dwellers.dwellers).length;
for(i=0; i<sum2; i++)
@@ -257,6 +263,343 @@ app.controller('dwellerController', function ($scope) {
$scope.download = function () {
encrypt($scope.fileName, $scope.save);
};
$scope.colortofos = function () {
var colorhex = document.getElementsByClassName("jscolor")[0].value;
var colorfos;
var x = colorhex.substring(0, 0) + "FF" + colorhex.substring(0);
colorfos = parseInt(x, 16);
$(".value1").html(colorfos);
};
$scope.unlockrooms = function () {
$scope.save.unlockableMgr.objectivesInProgress = [];
$scope.save.unlockableMgr.completed = [];
$scope.save.unlockableMgr.claimed = ["StorageUnlock",
"MedbayUnlock",
"SciencelabUnlock",
"OverseerUnlock",
"RadioStationUnlock",
"WeaponFactoryUnlock",
"GymUnlock",
"DojoUnlock",
"ArmoryUnlock",
"ClassUnlock",
"OutfitFactoryUnlock",
"CardioUnlock",
"BarUnlock",
"GameRoomUnlock",
"BarberShopUnlock",
"PowerPlantUnlock",
"WaterroomUnlock",
"HydroponicUnlock",
"NukacolaUnlock"];
};
$scope.unlockrecipes = function () {
$scope.save.survivalW.recipes =[
"Shotgun_Rusty",
"Railgun",
"LaserPistol_Focused",
"PlasmaThrower_Boosted",
"PlasmaThrower_Overcharged",
"PipePistol_LittleBrother",
"CombatShotgun_Hardened",
"Flamer_Rusty",
"LaserRifle_Tuned",
"HuntingRifle_OlPainless",
"PlasmaRifle_Focused",
"PipeRifle",
"JunkJet_Tactical",
"InstitutePistol_Improved",
"BBGun_RedRocket",
"032Pistol_Hardened",
"InstitutePistol_Apotheosis",
"InstitutePistol_Scattered",
"InstituteRifle_Excited",
"PipeRifle_Long",
"GatlingLaser",
"PlasmaThrower_DragonsMaw",
"PlasmaRifle",
"AssaultRifle_Rusty",
"AlienBlaster_Destabilizer",
"Fatman_Guided",
"Melee_RaiderSword",
"SniperRifle_Hardened",
"Melee_BaseballBat",
"PlasmaRifle_MeanGreenMonster",
"032Pistol_WildBillsSidearm",
"GaussRifle",
"LaserRifle_WaserWifle",
"InstitutePistol_Scoped",
"Flamer_Pressurized",
"AssaultRifle_ArmorPiercing",
"Railgun_Rusty",
"Minigun_Hardened",
"InstituteRifle_VirgilsRifle",
"JunkJet_Electrified",
"Flamer_Hardened",
"GatlingLaser_Focused",
"Magnum_Hardened",
"Railgun_Railmaster",
"Melee_PoolCue",
"Minigun_Enhanced",
"GaussRifle_Rusty",
"JunkJet_RecoilCompensated",
"Pistol_LoneWanderer",
"MissilLauncher",
"LaserPistol",
"InstitutePistol_Incendiary",
"BBGun_ArmorPiercing",
"Rifle_ArmorPiercing",
"AssaultRifle_Enhanced",
"LaserRifle_Rusty",
"CombatShotgun",
"GatlingLaser_Tuned",
"SawedOffShotgun_Hardened",
"PlasmaThrower_Agitated",
"Magnum_Blackhawk",
"AssaultRifle_Infiltrator",
"PlasmaPistol_MPLXNovasurge",
"HuntingRifle_ArmorPiercing",
"Railgun_Enhanced",
"SniperRifle_Enhanced",
"GaussRifle_Accelerated",
"PlasmaThrower_Tactical",
"CombatShotgun_Rusty",
"PipeRifle_Bayoneted",
"GaussRifle_Hardened",
"PlasmaThrower",
"AlienBlaster_Focused",
"SawedOffShotgun_Kneecapper",
"Flamer_Enhanced",
"Railgun_Hardened",
"GaussRifle_Magnetro4000",
"PipePistol_Auto",
"SniperRifle_ArmorPiercing",
"PipeRifle_NightVision",
"MissilLauncher_Enhanced",
"PipeRifle_Calibrated",
"LaserMusket",
"Rifle_Hardened",
"Fatman_Enhanced",
"JunkJet",
"PlasmaRifle_Amplified",
"Minigun_Rusty",
"Melee_FireHydrantBat",
"GatlingLaser_Amplified",
"JunkJet_Flaming",
"Shotgun_DoubleBarrelled",
"LaserPistol_Amplified",
"AlienBlaster_Amplified",
"InstituteRifle_NightVision",
"SniperRifle_VictoryRifle",
"PlasmaPistol",
"Minigun_LeadBelcher",
"Melee_ButcherKnife",
"AssaultRifle",
"Shotgun_Hardened",
"MissilLauncher_Hardened",
"LaserRifle_Focused",
"AlienBlaster",
"Melee_Pickaxe",
"032Pistol_ArmorPiercing",
"SniperRifle",
"Pistol_ArmorPiercing",
"PlasmaPistol_Tuned",
"Melee_KitchenKnife",
"AssaultRifle_Hardened",
"Fatman_Hardened",
"Shotgun_FarmersDaughter",
"CombatShotgun_CharonsShotgun",
"AlienBlaster_Rusty",
"GatlingLaser_Vengeance",
"InstituteRifle_Long",
"JunkJet_TechniciansRevenge",
"LaserPistol_SmugglersEnd",
"Flamer_Burnmaster",
"SniperRifle_Rusty",
"InstituteRifle",
"MissilLauncher_MissLauncher",
"InstituteRifle_Targeting",
"Fatman_Rusty",
"Rifle_LincolnsRepeater",
"PipeRifle_BigSister",
"Fatman",
"GatlingLaser_Rusty",
"Fatman_Mirv",
"PlasmaPistol_Focused",
"Shotgun_Enhanced",
"PipePistol_Scoped",
"Minigun",
"InstitutePistol",
"ProfessorSpecial",
"PiperSpecial",
"AllNightware_Lucky",
"KnightSpecial",
"BowlingShirt",
"HunterGear_Bounty",
"BattleArmor_Sturdy",
"ColonelSpecial",
"UtilityJumpsuit_Sturdy",
"DooWopOutfit",
"PowerArmor_51f",
"PowerArmor_MkVI",
"PowerArmor_51d",
"PowerArmor_51a",
"BishopSpecial",
"FlightSuit_Advanced",
"SodaFountainDress",
"HandymanJumpsuit_Expert",
"HandymanJumpsuit_Advanced",
"GreaserSpecial",
"ThreedogSpecial",
"WastelandSurgeon_Doctor",
"PowerArmor_T45f",
"CromwellSpecial",
"PowerArmor_T45d",
"WandererArmor_Sturdy",
"LifeguardOutfit",
"WrestlerSpecial",
"EngineerSpecial",
"MilitaryJumpsuit_Officer",
"PrestonSpecial",
"HazmatSuit_Heavy",
"CombatArmor_Heavy",
"RaiderArmor_Sturdy",
"SlasherSpecial",
"AlistairSpecial",
"SurvivorSpecial",
"AllNightware_Naughty",
"InstituteJumper_Advanced",
"SurgeonSpecial",
"MayorSpecial",
"RiotGear_Sturdy",
"ScifiSpecial",
"MetalArmor_Sturdy",
"BOSUniform",
"SynthArmor_Heavy",
"Vest",
"BittercupSpecial",
"SoldierSpecial",
"UtilityJumpsuit_Heavy",
"HunterGear_Mutant",
"AbrahamSpecial",
"EulogyJonesSpecial",
"PowerArmor_MkIV",
"BaseballUniform",
"PowerArmor_T60a",
"PowerArmor_T60d",
"FormalWear_Lucky",
"PowerArmor_T60f",
"Swimsuit",
"LabCoat_Expert",
"LabCoat_Advanced",
"EmpressSpecial",
"LibrarianSpecial",
"KingSpecial",
"MilitaryJumpsuit_Commander",
"ScribeRobe",
"BOSUniform_Expert",
"LucasSpecial",
"PrinceSpecial",
"WandererArmor_Heavy",
"RadiationSuit_Expert",
"ScientistScrubs_Commander",
"HazmatSuit_Sturdy",
"MetalArmor_Heavy",
"ButchSpecial",
"ComedianSpecial",
"RaiderArmor_Heavy",
"FlightSuit_Expert",
"SportsfanSpecial",
"RothchildSpecial",
"LabCoat",
"BattleArmor",
"BattleArmor_Heavy",
"CombatArmor",
"CombatArmor_Sturdy",
"WandererArmor",
"RaiderArmor",
"WastelandSurgeon",
"HunterGear_Treasure",
"RiotGear",
"RiotGear_Heavy",
"SequinDress",
"WastelandSurgeon_Settler",
"HandymanJumpsuit",
"MechanicJumpsuit",
"InstituteJumper_Expert",
"UtilityJumpsuit",
"AllNightware",
"WorkDress",
"MilitaryJumpsuit",
"FormalWear",
"FormalWear_Fancy",
"CheckeredShirt",
"SweaterVest",
"PowerArmor",
"PowerArmor_MkI",
"ScribeRobe_Initiate",
"ScribeRobe_Elder",
"RadiationSuit_Advanced",
"RadiationSuit",
"MoviefanSpecial",
"NinjaSuit",
"FlightSuit",
"HazmatSuit",
"BOSUniform_Advanced",
"ScientistScrubs_Officer",
"ScientistScrubs",
"PolkaDotDress",
"032Pistol",
"032Pistol_Enhanced",
"032Pistol_Rusty",
"AlienBlaster_Tuned",
"BBGun",
"BBGun_Enhanced",
"BBGun_Hardened",
"BBGun_Rusty",
"CombatShotgun_DoubleBarrelled",
"CombatShotgun_Enhanced",
"Flamer",
"GaussRifle_Enhanced",
"HuntingRifle",
"HuntingRifle_Enhanced",
"HuntingRifle_Hardened",
"HuntingRifle_Rusty",
"LaserPistol_Rusty",
"LaserPistol_Tuned",
"LaserRifle",
"LaserRifle_Amplified",
"Magnum",
"Magnum_ArmorPiercing",
"Magnum_Enhanced",
"Magnum_Rusty",
"Minigun_ArmorPiercing",
"MissilLauncher_Guided",
"MissilLauncher_Rusty",
"PipePistol",
"PipePistol_HairTrigger",
"PipePistol_Heavy",
"Pistol",
"Pistol_Enhanced",
"Pistol_Hardened",
"Pistol_Rusty",
"PlasmaPistol_Amplified",
"PlasmaPistol_Rusty",
"PlasmaRifle_Rusty",
"PlasmaRifle_Tuned",
"Railgun_Accelerated",
"Rifle",
"Rifle_Enhanced",
"Rifle_Rusty",
"SawedOffShotgun",
"SawedOffShotgun_DoubleBarrelled",
"SawedOffShotgun_Enhanced",
"SawedOffShotgun_Rusty",
"Shotgun"];
}
function extractCount() {