gfddf
This commit is contained in:
parent
e2825f5adc
commit
2763267f87
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ def pay_rent(v):
|
||||||
@app.post("/steal")
|
@app.post("/steal")
|
||||||
@auth_required
|
@auth_required
|
||||||
def steal(v):
|
def steal(v):
|
||||||
if int(time.time()) - v.created_utc > 604800:
|
if int(time.time()) - v.created_utc < 604800:
|
||||||
return "You must have an account older than 1 week in order to stealing."
|
return "You must have an account older than 1 week in order to stealing."
|
||||||
if v.coins > 200:
|
if v.coins < 100:
|
||||||
return "You must have more than 200 coins in order to attempt stealing."
|
return "You must have more than 100 coins in order to attempt stealing."
|
||||||
if random.randint(1, 10) < 8:
|
if random.randint(1, 10) < 8:
|
||||||
v.coins += 2000
|
v.coins += 2000
|
||||||
v.steal_utc = int(time.time())
|
v.steal_utc = int(time.time())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue