mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-29 06:51:12 -05:00
Jeopardy: add numHints variable to template.hint
This commit is contained in:
parent
112e184152
commit
23443ee6bd
@ -633,7 +633,7 @@ class Jeopardy(callbacks.Plugin):
|
|||||||
len(str(self.timeout))
|
len(str(self.timeout))
|
||||||
)
|
)
|
||||||
reply = self.hint_template.render(
|
reply = self.hint_template.render(
|
||||||
hint=self.currentHint, time=timeLeft, points=points, hintNum = self.hints
|
hint=self.currentHint, time=timeLeft, points=points, hintNum = self.hints, numHints = self.numHints
|
||||||
)
|
)
|
||||||
if self.showHints or self.showTime:
|
if self.showHints or self.showTime:
|
||||||
|
|
||||||
@ -645,7 +645,7 @@ class Jeopardy(callbacks.Plugin):
|
|||||||
schedule.addEvent(event, eventTime, "event_%s" % self.channel)
|
schedule.addEvent(event, eventTime, "event_%s" % self.channel)
|
||||||
else:
|
else:
|
||||||
reply = self.hint_template.render(
|
reply = self.hint_template.render(
|
||||||
hint=self.currentHint, time=None, points=points, hintNum = self.hints
|
hint=self.currentHint, time=None, points=points, hintNum = self.hints, numHints = self.numHints
|
||||||
)
|
)
|
||||||
self.reply(reply)
|
self.reply(reply)
|
||||||
self.hints += 1
|
self.hints += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user