generated from Nemesis/Exemple
Correction des icônes d'horloge
This commit is contained in:
parent
bb6d471783
commit
4a6291bc89
1 changed files with 9 additions and 8 deletions
17
asmodee.py
17
asmodee.py
|
@ -1,3 +1,4 @@
|
||||||
|
# coding: utf8
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import copy
|
import copy
|
||||||
|
@ -673,25 +674,25 @@ def horloge(room, event):
|
||||||
for cle,valeur in clock.items():
|
for cle,valeur in clock.items():
|
||||||
if (cle[0] == room.room_id):
|
if (cle[0] == room.room_id):
|
||||||
if (int(valeur) == 0):
|
if (int(valeur) == 0):
|
||||||
room.send_text(cle[1] + " : \u1F540 \n")
|
room.send_text(cle[1] + " : " + chr(128320) + "\n")
|
||||||
elif (int(valeur) == 1):
|
elif (int(valeur) == 1):
|
||||||
room.send_text(cle[1] + " : \u1F552 \n")
|
room.send_text(cle[1] + " : " + chr(128338) + "\n")
|
||||||
elif (int(valeur) == 2):
|
elif (int(valeur) == 2):
|
||||||
room.send_text(cle[1] + " : \u1F555 \n")
|
room.send_text(cle[1] + " : " + chr(128341) + "\n")
|
||||||
elif (int(valeur) == 3):
|
elif (int(valeur) == 3):
|
||||||
room.send_text(cle[1] + " : \u1F558 \n")
|
room.send_text(cle[1] + " : " + chr(128344) + "\n")
|
||||||
elif (int(valeur) == 4):
|
elif (int(valeur) == 4):
|
||||||
room.send_text(cle[1] + " : \u1F559 \n")
|
room.send_text(cle[1] + " : " + chr(128345) + "\n")
|
||||||
elif (int(valeur) == 5):
|
elif (int(valeur) == 5):
|
||||||
room.send_text(cle[1] + " : \u1F55A \n")
|
room.send_text(cle[1] + " : " + chr(128346) + "\n")
|
||||||
elif (int(valeur) == 6):
|
elif (int(valeur) == 6):
|
||||||
room.send_text(cle[1] + " : \u1F55B \n")
|
room.send_text(cle[1] + " : " + chr(128347) + "\n")
|
||||||
else:
|
else:
|
||||||
room.send_text(cle[1] + " : " + valeur + " \n")
|
room.send_text(cle[1] + " : " + valeur + " \n")
|
||||||
elif (len(args) >= 2 and args[len(args)-1].isnumeric()):
|
elif (len(args) >= 2 and args[len(args)-1].isnumeric()):
|
||||||
# Place le niveau de l'horloge entre 0 et 6
|
# Place le niveau de l'horloge entre 0 et 6
|
||||||
nv = int(args[len(args)-1])
|
nv = int(args[len(args)-1])
|
||||||
clock[room.room_id, args[0:-1]] = nv
|
clock[room.room_id, ' '.join(args[0:-1])] = nv
|
||||||
elif (len(args) >= 2 and args[0] == "del"):
|
elif (len(args) >= 2 and args[0] == "del"):
|
||||||
# Supprime une horloge
|
# Supprime une horloge
|
||||||
args.pop(0)
|
args.pop(0)
|
||||||
|
|
Loading…
Reference in a new issue