-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathshelter.html
163 lines (131 loc) · 6.67 KB
/
shelter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width, user-scalable=no">
<title>Fallout Shelter - Save Editor</title>
<meta name="description" content="Web app to edit Fallout Shelter save games. You can change dwellers SPECIAL, other stats and vault's resources.">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body ng-app="shelter" ng-controller="dwellerController">
<div class="container">
<div class="row box" ng-show="section == 'vault'">
<div class="col-sm-12 vault_info">
<form ng-show="fileName" name="vaultForm">
<div class="form-group" ng-class="{ 'has-error': vaultForm.vaultName.$invalid }">
<label>Name</label>
<input type="text" class="form-control" name="vaultName" placeholder="Vault Name" ng-model="save.vault.VaultName" ng-pattern="/^[0-9]{3}$/">
</div>
<div class="form-group row">
<div class="col-sm-4">
<label>Caps</label>
<input type="number" class="form-control" name="caps" ng-model="save.vault.storage.resources.Nuka">
</div>
<div class="col-sm-4">
<label>Lunch Boxes</label>
<input type="number" class="form-control" name="lunchbox" ng-model="lunchboxCount">
</div>
<div class="col-sm-4">
<label>Mr. Handies</label>
<input type="number" class="form-control" name="handy" ng-model="handyCount">
</div>
</div>
<div class="form-group row">
<div class="col-sm-4">
<label>Food</label>
<input type="number" class="form-control" name="caps" ng-model="save.vault.storage.resources.Food">
</div>
<div class="col-sm-4">
<label>Energy</label>
<input type="number" class="form-control" name="energy" ng-model="save.vault.storage.resources.Energy">
</div>
<div class="col-sm-4">
<label>Water</label>
<input type="number" class="form-control" name="water" ng-model="save.vault.storage.resources.Water">
</div>
</div>
<div class="form-group row">
<div class="col-sm-6">
<label>Stimpack</label>
<input type="number" class="form-control" name="stimpack" ng-model="save.vault.storage.resources.StimPack">
</div>
<div class="col-sm-6">
<label>RadAway</label>
<input type="number" class="form-control" name="radaway" ng-model="save.vault.storage.resources.RadAway">
</div>
</div>
</form>
</div>
</div>
<div class="row box" ng-show="section == 'dwellers'">
<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>
<div class="dweller_info col-sm-8" ng-hide="!dweller.name">
<a href="#" class="back_button glyphicon glyphicon-chevron-left" ng-click="closeDweller()">Back</a>
<form name="dwellerForm">
<div class="form-group row">
<div class="col-sm-4">
<label>First Name</label>
<input type="text" class="form-control" name="firstName" placeholder="First Name" ng-model="dweller.name">
</div>
<div class="col-sm-4">
<label>Last Name</label>
<input type="text" class="form-control" name="lastName" placeholder="Last Name" ng-model="dweller.lastName">
</div>
<div class="col-sm-4">
<label>Gender</label>
<select class="form-control" name="gender" ng-model="dweller.gender" ng-options="key*1 as value for (key,value) in { 1: 'Female', 2: 'Male' }"></select>
</div>
</div>
<div class="form-group row">
<div class="col-sm-4">
<label>Happiness</label>
<input type="number" class="form-control" name="happiness" ng-model="dweller.happiness.happinessValue">
</div>
<div class="col-sm-4">
<label>Health</label>
<input type="number" class="form-control" name="health" ng-model="dweller.health.healthValue">
</div>
<div class="col-sm-4">
<label>Radiation</label>
<input type="number" class="form-control" name="radiation" ng-model="dweller.health.radiationValue">
</div>
</div>
<div class="form-group row">
<div class="col-sm-1 stat" ng-repeat="stat in dweller.stats.stats">
<label ng-bind="statsName[$index]" class="center"></label>
<div class="bar" ng-class="'value' + stat.value"></div>
<input type="number" class="form-control" ng-model="stat.value" min="0" max="10">
</div>
</div>
<div class="row save">
<button type="button" class="btn btn-primary pull-right" ng-click="maxSpecial()">Max Stats</button>
</div>
</form>
</div>
</div>
<div class="row tabs">
<a href="#" class="tab">Fallout Shelter - Save Editor</a>
<a href="#shelter" ng-hide="!save.dwellers" class="tab" ng-click="section = 'vault'" ng-class="{ 'active': section == 'vault' }">Vault {{ save.vault.VaultName }}<small></small></a>
<a href="#dweller" ng-hide="!save.dwellers" class="tab" ng-click="section = 'dwellers'" ng-class="{ 'active': section == 'dwellers' }">Dwellers <small>({{ save.dwellers.dwellers.length }})</small></a>
</div>
<div class="row save">
<button class="btn btn-primary pull-right" ng-click="download()" ng-show="fileName">Save</button>
</div>
<div class="instructions">
Drag a save file here (e.g. Vault1.sav) <br />
or select one here <input type="file" id="sav_file" name="sav_file" />
</div>
</div>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/json2.min.js"></script>
<script src="js/aes.js"></script>
<script src="js/FileSaver.js"></script>
<script src="js/shelter.js"></script>
</body>
</html>