mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
custoM
This commit is contained in:
@@ -88,15 +88,27 @@ def generate_action_result(prompt, phrase):
|
||||
|
||||
|
||||
return action, action_result
|
||||
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def root():
|
||||
return render_template('index.html')
|
||||
seed = -1
|
||||
data = {'seed': seed}
|
||||
return render_template('index.html', data=data)
|
||||
|
||||
|
||||
@app.route('/<seed>')
|
||||
def rootseed(seed):
|
||||
if seed == "":
|
||||
seed = -1
|
||||
else:
|
||||
seed = int(seed)
|
||||
data = {'seed': seed}
|
||||
return render_template('index.html', data=data)
|
||||
|
||||
@app.route('/index.html')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
data = {'seed': -1}
|
||||
return render_template('index.html', data=data)
|
||||
|
||||
@app.route('/about.html')
|
||||
def about():
|
||||
|
||||
+8
-3
@@ -13,9 +13,14 @@ var should_blink = false
|
||||
var blinkCounter = 0
|
||||
var action_list = ["You attack", "You tell", "You use", "You go"]
|
||||
var prompt_num = 0
|
||||
var seed_max = 1000
|
||||
var seed_min = 0
|
||||
var seed = Math.floor(Math.random() * (+seed_max - +seed_min)) + +seed_min;
|
||||
var seed_max = 100
|
||||
var seed_min = 0;
|
||||
|
||||
if(seed == -1){
|
||||
var seed = Math.floor(Math.random() * (+seed_max - +seed_min)) + +seed_min;
|
||||
}
|
||||
|
||||
|
||||
//var seed = 999
|
||||
console.log("Seed is ", seed)
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
<head>
|
||||
<title>Dungeon</title>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var seed = {{ data.seed }}
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="static/style.css">
|
||||
</head>
|
||||
<div class="topnav">
|
||||
|
||||
Reference in New Issue
Block a user