Add newline to combatant response for curl
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user