added DB reinit script

This commit is contained in:
Jonathan 2024-03-19 11:45:08 -05:00
parent 066ce2aaaa
commit 01a5e768ca
3 changed files with 16 additions and 1 deletions

View File

@ -25,6 +25,7 @@ local map = {
return "w"
end
end,
-- Map Populate / check if map exists
populate = function(self, map)
for h=1,10 do
for i=1,10 do
@ -44,6 +45,8 @@ local map = {
else
return true
end
end,
tileColor = function(self)
end
}
local tiles = {}

12
reset Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
echo "This will reset ALL data! Are you sure you want to proceed? [y/N]"
read input
if [ "$input" == "y" ]
then
rm database.sqlite3
./setup_db
echo "Reset completed, have a nice day."
else
echo "Reset cancelled."
fi

View File

@ -7,7 +7,7 @@
</head>
<body>
<h1>Peradventure</h1>
<h1 style="text-align: center; margin-top: 3rem;">Peradventure</h1>
<% content_for("inner") %>
</body>
</html>