mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Change conditions
This commit is contained in:
parent
de1941bab4
commit
8f52c38dd4
3 changed files with 4 additions and 16 deletions
|
@ -72,10 +72,6 @@ class FortuneCommand(rc.Command):
|
||||||
|
|
||||||
r = random.Random(x=h)
|
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]
|
message = r.sample(self._fortunes, 1)[0]
|
||||||
await data.reply(message)
|
await data.reply(message)
|
||||||
|
|
||||||
|
|
|
@ -28,15 +28,6 @@ class SpellCommand(rc.Command):
|
||||||
rows.append(f"Multiattacco: [b]×{dmg.repeat}[/b]")
|
rows.append(f"Multiattacco: [b]×{dmg.repeat}[/b]")
|
||||||
rows.append("")
|
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:
|
if spell.healing_component:
|
||||||
heal: rs.HealingComponent = spell.healing_component
|
heal: rs.HealingComponent = spell.healing_component
|
||||||
constant_str: str = f"{heal.constant:+d}" if heal.constant != 0 else ""
|
constant_str: str = f"{heal.constant:+d}" if heal.constant != 0 else ""
|
||||||
|
|
|
@ -18,8 +18,9 @@ trionfilist: List[TrionfoInfo] = [
|
||||||
roman="I",
|
roman="I",
|
||||||
name="Il Mago",
|
name="Il Mago",
|
||||||
puzzle="L'ULTIMO GIORNO",
|
puzzle="L'ULTIMO GIORNO",
|
||||||
objective="Scopri una magia che possa fare più di 250 danni.",
|
objective="Gioca almeno mezz'ora a [url=https://store.steampowered.com/app/42910]Magicka[/url] "
|
||||||
check=NullCheck(),
|
"o [url=https://store.steampowered.com/app/238370]Magicka 2[/url].",
|
||||||
|
check=CheckPlayedSteamGame(42910) or CheckPlayedSteamGame(238370),
|
||||||
),
|
),
|
||||||
TrionfoInfo(
|
TrionfoInfo(
|
||||||
variable="ii",
|
variable="ii",
|
||||||
|
@ -209,7 +210,7 @@ trionfilist: List[TrionfoInfo] = [
|
||||||
roman="XXI",
|
roman="XXI",
|
||||||
name="Il Mondo",
|
name="Il Mondo",
|
||||||
puzzle="""44°35'45.0"N 11°02'58.9"E""",
|
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(),
|
check=NullCheck(),
|
||||||
),
|
),
|
||||||
]
|
]
|
Loading…
Reference in a new issue