generated from Nemesis/Exemple
aff horloge apres +/-
This commit is contained in:
parent
da66f13a5b
commit
56fa5de25a
1 changed files with 3 additions and 3 deletions
|
@ -1008,7 +1008,7 @@ def cristal(room, event): # Affiche une réponse à une question posée
|
||||||
reponses(room, phrases)
|
reponses(room, phrases)
|
||||||
|
|
||||||
@not_myself
|
@not_myself
|
||||||
def aff_horloge(room, hor, valeur): # affichage des horloges
|
def aff_hor(room, hor, valeur): # affichage des horloges
|
||||||
if (int(valeur) == 0):
|
if (int(valeur) == 0):
|
||||||
msg(room,hor + " : " + chr(128320) + "\n")
|
msg(room,hor + " : " + chr(128320) + "\n")
|
||||||
elif (int(valeur) == 1):
|
elif (int(valeur) == 1):
|
||||||
|
@ -1043,7 +1043,7 @@ def horloge(room, event): # Gestion des horloges PBTA
|
||||||
# Liste des horloges du salon
|
# Liste des horloges du salon
|
||||||
for cle,valeur in clock.items():
|
for cle,valeur in clock.items():
|
||||||
if (cle[0] == room.room_id):
|
if (cle[0] == room.room_id):
|
||||||
aff_horloge(room, cle[1], valeur)
|
aff_hor(room, cle[1], valeur)
|
||||||
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])
|
||||||
|
@ -1065,7 +1065,7 @@ def horloge(room, event): # Gestion des horloges PBTA
|
||||||
if (nv < 0):
|
if (nv < 0):
|
||||||
nv = 0
|
nv = 0
|
||||||
clock[room.room_id, hor] = nv
|
clock[room.room_id, hor] = nv
|
||||||
aff_horloge(room, hor, nv)
|
aff_hor(room, hor, 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