-
Notifications
You must be signed in to change notification settings - Fork 0
/
detsetInfo.txt
63 lines (58 loc) · 2.66 KB
/
detsetInfo.txt
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
this.getInfo = function () {
// format: atk def luc max_hp eptolvlup lvl type
if (entwicklung == 5 )
this.code = this.atk + " " + this.def + " " + this.luc + " " + this.max_hp + " " + this.eptolvlup + " " + this.lvl+ " " + this.type + " " + "GerdLiebtKekse";
else if (entwicklung == 4) {
this.code = this.atk + " " + this.def + " " + this.luc + " " + this.max_hp + " " + this.eptolvlup + " " + this.lvl + " " + this.type + " " + "KekseSindToll";
} else if (entwicklung == 3) {
this.code = this.atk + " " + this.def + " " + this.luc + " " + this.max_hp + " " + this.eptolvlup + " " + this.lvl + " " + this.type + " " + "AlleDieKekseMoegenSindToll";
} else if (entwicklung == 2) {
this.code = this.atk + " " + this.def + " " + this.luc + " " + this.max_hp + " " + this.eptolvlup + " " + this.lvl + " " + this.type + " " + "StockeMonKommSchlagSieAlle";
} else if (entwicklung == 1) {
this.code = this.atk + " " + this.def + " " + this.luc + " " + this.max_hp + " " + this.eptolvlup + " " + this.lvl + " " + this.type + " " + "AdventAdventEinStockMonSchlaegt";
}else {
this.code = this.atk + " " + this.def + " " + this.luc + " " + this.max_hp + " " + this.eptolvlup + " " + this.lvl + " " + this.type + " " + "StockStockWerIstDa";
}
prompt("Der Code",this.code );
// return this.type + ' LVL:' + this.lvl + 'Hungry:' + this.hungry + 'Sleepy:' + sleepy + 'Happy:' + happy + 'Dirty:' + dirty;
};
this.setInfo = function () {
var n = prompt("Dein Code:", "Hier kommt der Code hin");
var ss = n.split(" ");
var satk = ss[0];
var sdef = ss[1];
var sluc = ss[2];
var smax_hp = ss[3];
var septolvlup = ss[4];
var slvl = ss[5];
var stype = ss[6];
var n = ss[7];
this.atk = parseInt(satk);
this.def = parseInt(sdef);
this.luc = parseInt(sluc);
this.max_hp = parseInt(smax_hp);
this.eptolvlup = parseInt(septolvlup);
this.type = stype;
this.lvl = slvl;
if (n == "GerdLiebtKekse") {
entwicklung = 5;
this.lvl = slvl;
this.type = "0";
}
else if (n == "KekseSindToll")
{
entwicklung = 4;
}
else if (n == "AlleDieKekseMoegenSindToll") {
entwicklung = 3;
}
else if (n == "StockeMonKommSchlagSieAlle") {
entwicklung = 2;
}
else if (n == "AdventAdventEinStockMonSchlaegt") {
entwicklung = 1;
} else if (n == "StockStockWerIstDa")
{
entwicklung = 0;
}
};