1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Change conditions

This commit is contained in:
Steffo 2020-09-29 18:07:10 +02:00
parent de1941bab4
commit 8f52c38dd4
3 changed files with 4 additions and 16 deletions

View file

@ -72,10 +72,6 @@ class FortuneCommand(rc.Command):
r = random.Random(x=h)
if author is not None and len(author.steam) >= 0 and author.steam[0].trionfistatus is not None:
author.steam[0].trionfistatus.x = datetime.datetime.now()
await ru.asyncify(session.commit)
message = r.sample(self._fortunes, 1)[0]
await data.reply(message)

View file

@ -28,15 +28,6 @@ class SpellCommand(rc.Command):
rows.append(f"Multiattacco: [b]×{dmg.repeat}[/b]")
rows.append("")
# Halloween 2020
possible_dmg = (dmg.dice_number * dmg.dice_type + dmg.constant) * dmg.repeat
if possible_dmg >= 250:
async with data.session_acm() as session:
author = await data.find_author(session=session, required=False)
if author is not None and author.halloween2020 is not None:
author.halloween2020.i = datetime.datetime.now()
await ru.asyncify(session.commit)
if spell.healing_component:
heal: rs.HealingComponent = spell.healing_component
constant_str: str = f"{heal.constant:+d}" if heal.constant != 0 else ""

View file

@ -18,8 +18,9 @@ trionfilist: List[TrionfoInfo] = [
roman="I",
name="Il Mago",
puzzle="L'ULTIMO GIORNO",
objective="Scopri una magia che possa fare più di 250 danni.",
check=NullCheck(),
objective="Gioca almeno mezz'ora a [url=https://store.steampowered.com/app/42910]Magicka[/url] "
"o [url=https://store.steampowered.com/app/238370]Magicka 2[/url].",
check=CheckPlayedSteamGame(42910) or CheckPlayedSteamGame(238370),
),
TrionfoInfo(
variable="ii",
@ -209,7 +210,7 @@ trionfilist: List[TrionfoInfo] = [
roman="XXI",
name="Il Mondo",
puzzle="""44°35'45.0"N 11°02'58.9"E""",
objective="Attraverso i Trionfi, il segreto ti sarà lentamente rivelato...",
objective="Attraverso i Trionfi, il segreto sarà rivelato...",
check=NullCheck(),
),
]