full early game polished up, flavor text now properly capitalizes names
This commit is contained in:
@@ -12,8 +12,14 @@ def dice_roll(min=0, max=100, modifiers=[]):
|
||||
|
||||
return result
|
||||
|
||||
@core.app.route("/act/steal/<resource>", methods=["POST"])
|
||||
def steal_resource(resource):
|
||||
@core.app.route("/act/steal/<resource>/<target>", methods=["POST"])
|
||||
def steal_resource(resource, target):
|
||||
return flask.Response(json.dumps({
|
||||
"success": (dice_roll() >= 50)
|
||||
}), status=200, content_type="application/json")
|
||||
|
||||
@core.app.route("/act/recruit", methods=["POST"])
|
||||
def recruit():
|
||||
return flask.Response(json.dumps({
|
||||
"success": (dice_roll() >= 65)
|
||||
}), status=200, content_type="application/json")
|
Reference in New Issue
Block a user