Skip to content

Commit

Permalink
combat-system-done
Browse files Browse the repository at this point in the history
  • Loading branch information
fatcatt013 committed Mar 24, 2022
1 parent f29418b commit b10e803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,17 @@ app.post("/init-user", (req, res) => {
const class_ = req.body.class;
const pfp = req.body.pfp;
const religion = req.body.religion;
const religionIndex = req.body.religionIndex;
const guild = "None";
const city = req.body.city;
const region = req.body.region;


console.log("ID: " + id);
db.query("INSERT INTO UserStats" +
" (level, exp, strength, stamina, dexterity, intelligence, luck, User_id, money)" +
" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)",
[level, exp, strength, stamina, dexterity, intelligence, luck, id, money],
" (level, exp, strength, stamina, dexterity, intelligence, luck, User_id, money, religionIndex)" +
" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
[level, exp, strength, stamina, dexterity, intelligence, luck, id, money, religionIndex],
(err) => {
if (err) {
console.log(err);
Expand Down

0 comments on commit b10e803

Please sign in to comment.