a curse.
@@ -55,7 +78,7 @@
unleash the horsemen
-
+
you'll need the help of the horsemen of the apocalypse to dispel the curse.
lead Chaos to victory in the battle of the ancients, or the War from the shadow isles to victory on the rift, and you'll gain their support.
@@ -64,7 +87,7 @@
carve the ritual pumpkin
-
+
prepare a pumpkin, and empty its inside.
carve something on its exterior then put a light inside of it.
when dusk has come, take a picture, and
post it to the owl captain.
@@ -74,7 +97,7 @@
circle the sound
-
+
find the 2038th sound of halloween.
then, follow the circle pattern.
@@ -84,7 +107,7 @@
uproot the evil
-
+
listen to the sounds in here.
do you hear the evil that stole your voice?
answer it.
@@ -97,7 +120,7 @@
remove the ghosts
-
+
during the ritual something strange might happen.
in that case, the ghosts probably will be to blame.
to be safe, i would remove them...
@@ -108,8 +131,8 @@
conquer the mansion
-
- a mansion has appeared.
+
+
a mansion has appeared.
prove yourself worthy, and find the words hidden deep inside.
only then i can trust you to completely perform the ritual.
@@ -121,28 +144,28 @@
-
+
{% elif loop.index == 8 %}
-
+
{% elif loop.index == 9 %}
-
+
{% elif loop.index == 10 %}
-
+
{% endif %}
diff --git a/webserver.py b/webserver.py
index 35555c27..2ba103d3 100644
--- a/webserver.py
+++ b/webserver.py
@@ -68,7 +68,7 @@ def page_main():
random_diario = db_session.query(db.Diario).order_by(db.func.random()).first()
next_events = db_session.query(db.Event).filter(db.Event.time > datetime.datetime.now()).order_by(
db.Event.time).all()
- halloween = db.Halloween.puzzle_status()
+ halloween = db.Halloween.puzzle_status()[1]
db_session.close()
return render_template("main.html", royals=royals, wiki_pages=wiki_pages, entry=random_diario,
next_events=next_events, g=fl_g, escape=escape, halloween=enumerate(halloween))
@@ -115,6 +115,7 @@ def page_loggedin():
db_session = db.Session()
user = db_session.query(db.Royal).filter_by(username=username).one_or_none()
db_session.close()
+ fl_session.permanent = True
if user is None:
abort(403)
return
@@ -334,7 +335,7 @@ def page_diario():
@app.route("/api/token")
-def page_token():
+def api_token():
username = request.form.get("username", "")
password = request.form.get("password", "")
db_session = db.Session()
@@ -361,19 +362,15 @@ def page_token():
return
-@app.route("/spooky", methods=["POST"])
-def page_spooky():
- if request.form.get("solution", "") != "1":
- return redirect("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
- user_id = fl_session.get("user_id")
- if not user_id:
- return redirect("https://www.youtube.com/watch?v=djV11Xbc914")
- db_session = db.Session()
- user = db_session.query(db.Royal).filter_by(id=user_id).one()
- halloween = db.Halloween(royal=user, first_trigger=datetime.datetime.now())
- db_session.add(halloween)
- db_session.commit()
- return redirect(url_for("page_main"))
+@app.route("/ses/identify")
+def ses_identify():
+ response = jsonify({
+ "username": fl_session.get("username"),
+ "id": fl_session.get("user_id")
+ })
+ response.headers["Access-Control-Allow-Origin"] = "https://owlcaptain.tk"
+ return response
+
@app.before_request