Skip to content

Commit 4216902

Browse files
authored
feat: added 6 more abilities (#50)
2 parents 2aac57e + c4e2405 commit 4216902

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

app/services/game/ability.py

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,36 @@ class AbilityManager:
2525

2626
def __init__(self):
2727
self.abilities: Dict[str, Ability] = {
28-
"healio": Ability(sp_cost=10, mp_cost=20),
29-
"deletio": Ability(sp_cost=10, mp_cost=5),
30-
"syntaxio": Ability(sp_cost=10, mp_cost=5),
31-
"lightio": Ability(sp_cost=10, mp_cost=5),
32-
"hugio": Ability(sp_cost=10, mp_cost=5),
33-
"smallio": Ability(sp_cost=10, mp_cost=5),
28+
"healio": Ability(sp_cost=10, mp_cost=20), # Heal 20 HP
29+
"syntaxio": Ability(sp_cost=10, mp_cost=5), # Turn off syntax highlighting
30+
"lightio": Ability(
31+
sp_cost=10, mp_cost=5
32+
), # Force your opponent to code in light mode
33+
"hugio": Ability(
34+
sp_cost=10, mp_cost=5
35+
), # Make your opponent's code 2x bigger
36+
"smallio": Ability(
37+
sp_cost=10, mp_cost=5
38+
), # Make your opponent's code 2x smaller
39+
"deletio": Ability(
40+
sp_cost=10, mp_cost=5
41+
), # Delete a random line in your opponent's code
42+
"freezio": Ability(
43+
sp_cost=10, mp_cost=10
44+
), # Opponent will not be allowed to code
45+
"rickrollio": Ability(
46+
sp_cost=20, mp_cost=30
47+
), # You already know what this does
48+
"insertio": Ability(
49+
sp_cost=10, mp_cost=5
50+
), # Insert a random character inside your opponent's code
51+
"errorio": Ability(
52+
sp_cost=10, mp_cost=5
53+
), # Add a random error inside your opponent's code
54+
"peekio": Ability(sp_cost=10, mp_cost=10), # Peek your opponent's code
55+
"mistypio": Ability(
56+
sp_cost=10, mp_cost=20
57+
), # Every key will be mapped to a different key when typing
3458
}
3559

3660
async def handle_ability_message(

0 commit comments

Comments
 (0)