Add newline to combatant response for curl

This commit is contained in:
2016-03-31 13:14:29 +02:00
parent 11e9e0d2a2
commit 793d47914d
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ function makeSoldier(req, res, set) {
res.status(200); res.status(200);
res.header("Content-Type", "text/plain; charset=utf-8"); res.header("Content-Type", "text/plain; charset=utf-8");
res.end(text); res.end(text + '\n');
} else { } else {
res.status(200); res.status(200);
res.header("Content-Type", "application/json; charset=utf-8"); res.header("Content-Type", "application/json; charset=utf-8");
+5 -5
View File
@@ -19,18 +19,18 @@
}, },
"weapons": { "weapons": {
"primary": { "primary": {
"M-23 Katana": {"chance": 0.75, "ammo": 5, "type": "Shotgun"}, "M-23 Katana": {"chance": 0.85, "ammo": 5, "type": "Shotgun"},
"M-22 Eviscerator": {"chance": 0.10, "ammo": 3, "type": "Shotgun"}, "M-22 Eviscerator": {"chance": 0.10, "ammo": 3, "type": "Shotgun"},
"M-27 Scimitar": {"chance": 0.25, "ammo": 8, "type": "Shotgun"}, "M-27 Scimitar": {"chance": 0.25, "ammo": 8, "type": "Shotgun"},
"M-8 Avenger": {"chance": 0.90, "ammo": 30, "type": "Assault Rifle"}, "M-8 Avenger": {"chance": 0.70, "ammo": 30, "type": "Assault Rifle"},
"M-15 Vindicator": {"chance": 0.60, "ammo": 24, "type": "Assault Rifle"}, "M-15 Vindicator": {"chance": 0.70, "ammo": 24, "type": "Assault Rifle"},
"Striker Assault Rifle": {"chance": 0.05, "ammo": 12, "type": "Assault Rifle"}, "Striker Assault Rifle": {"chance": 0.05, "ammo": 12, "type": "Assault Rifle"},
"M-97 Viper": {"chance": 0.25, "ammo": 6, "type": "Sniper Rifle"}, "M-97 Viper": {"chance": 0.25, "ammo": 6, "type": "Sniper Rifle"},
"M-92 Mantis": {"chance": 0.30, "ammo": 1, "type": "Sniper Rifle"}, "M-92 Mantis": {"chance": 0.30, "ammo": 1, "type": "Sniper Rifle"},
"Kishock Harpoon Gun": {"chance": 0.05, "ammo": 1, "type": "Sniper Rifle"}, "Kishock Harpoon Gun": {"chance": 0.05, "ammo": 1, "type": "Sniper Rifle"},
"Blood Pack Punisher": {"chance": 0.10, "ammo": 40, "type": "Submachine Gun"}, "Blood Pack Punisher": {"chance": 0.10, "ammo": 40, "type": "Submachine Gun"},
"M-4 Shuriken": {"chance": 0.90, "ammo": 36, "type": "Submachine Gun"}, "M-4 Shuriken": {"chance": 0.75, "ammo": 36, "type": "Submachine Gun"},
"M-9 Tempest": {"chance": 0.25, "ammo": 50, "type": "Submachine Gun"}, "M-9 Tempest": {"chance": 0.30, "ammo": 50, "type": "Submachine Gun"},
"M-12 Locust": {"chance": 0.75, "ammo": 20, "type": "Submachine Gun"} "M-12 Locust": {"chance": 0.75, "ammo": 20, "type": "Submachine Gun"}
}, },
"secondary": { "secondary": {