Manipulation of how Hangman is counting score.

This commit is contained in:
BaerbelBox
2022-04-02 13:35:14 +02:00
parent 7cf65ef092
commit 3114866135
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -288,7 +288,5 @@ class HangmanObserver(PrivMsgObserverPrototype):
def giveExtraPointsInTime(self, nick): def giveExtraPointsInTime(self, nick):
delta = time.time()-self.time delta = time.time()-self.time
if delta <30:
self.addToScore(nick, 5)
if delta <60: if delta <60:
self.addToScore(nick, 5) self.addToScore(nick,int((60-delta)/6))
+1 -1
View File
@@ -25,7 +25,7 @@ class IntroductionObserver(PrivMsgObserverPrototype):
if not self.authenticated(nick, connection): if not self.authenticated(nick, connection):
connection.send_back("Für die Nutzung von .me ist es zwingend erforderlich, einen registrierten Nick zu " connection.send_back("Für die Nutzung von .me ist es zwingend erforderlich, einen registrierten Nick zu "
"haben sowie eingeloggt zu sein. Wie dies geht, erfährst du unter " "haben sowie eingeloggt zu sein. Wie dies geht, erfährst du unter "
"https://freenode.net/kb/answer/registration", data) "https://libera.chat/guides/registration", data)
return return
intro_provider = IntroductionProvider() intro_provider = IntroductionProvider()
msg = msg.split('.me')[1].strip() msg = msg.split('.me')[1].strip()