blob: 9f74bfb2922c1ace66a4689f0c081b92b13f6b96 [file] [log] [blame]
Andreued8e1f92019-09-18 22:26:04 +02001if (mort) {
2 // User is dead
3 document.write("Venga niño, pitjor que el Condom, MORT.");
4} else {
5 let dead = false;
6 let killed = false;
7
8 if (requested != 0) {
9 // Check for requests
10 if(requested == 1) dead = confirm("El teu assassí ha dit que t'ha matat, és veritat?");
11 if(requested == 2) killed = confirm("En/na " + victimnom + " ha dit que l'has matat, és veritat?");
12
13 // Confirm/deny request
14 if (dead) send_request(userid, 3); // confirm death
15 else if (killed) send_request(victimid, 3); // confirm kill
16 else send_request(userid, 4); // deny kill/death
17 }
18}