generated from python-discord/code-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from DavidLlanio/Davr
Davr
- Loading branch information
Showing
10 changed files
with
600 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Spiked Mail of | ||
Dreadnought Armor of | ||
Enchanted Plate of | ||
Infernal Breastplate of | ||
Blessed Chestguard of | ||
Shadowed Vest of | ||
Glorious Cuirass of | ||
Mystic Tunic of | ||
Ancient Body Armor of | ||
Vengeful Hauberk of | ||
Fiery Brigandine of | ||
Radiant Battle Plate of | ||
Savage Chestplate of | ||
Haunted Mail of | ||
Noble Surcoat of | ||
Demonic Jerkin of | ||
Celestial Armor of | ||
Ferocious Scale Mail of | ||
Arcane Bodyguard of | ||
Malevolent Harness of | ||
Gleaming Armor of | ||
Divine Chestpiece of | ||
Spectral Vestment of | ||
Barbaric Breastplate of | ||
Eternal Plate Mail of | ||
Wicked Hauberk of | ||
Primal War Armor of | ||
Shimmering Bodyguard of | ||
Infernal Cuirass of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Windstriders of | ||
Obsidian Greaves of | ||
Shadowstep Boots of | ||
Enchanted Footwear of | ||
Ironclad Boots of | ||
Blessed Sandals of | ||
Infernal Stompers of | ||
Swiftwalker Boots of | ||
Cursed Sole of | ||
Glorious High Boots of | ||
Ethereal Slippers of | ||
Demonic Footguards of | ||
Fiery Booties of | ||
Radiant Travelers of | ||
Phantom Stalkers of | ||
Noble Treads of | ||
Rugged Hiking Boots of | ||
Arcane Walkers of | ||
Vengeful Kicks of | ||
Mystic Sole of | ||
Fierce War Boots of | ||
Celestial Footpads of | ||
Savage Stepper of | ||
Dreaded Ankle Boots of | ||
Eternal Wanderers of | ||
Shimmering Loafers of | ||
Wicked Greaves of | ||
Primal Striders of | ||
Frostforged Boots of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Cursed Visor of | ||
Holy Guardian Helmet of | ||
Enchanted Helm of | ||
Infernal Mask of | ||
Blessed Crown of | ||
Shadowed Cap of | ||
Glorious Protector Helmet of | ||
Mystic Hood of | ||
Ancient Headgear of | ||
Vengeful Helm of | ||
Fiery Visor of | ||
Radiant Guardian Helmet of | ||
Savage Helm of | ||
Haunted Mask of | ||
Noble Crown of | ||
Demonic Cap of | ||
Celestial Protector Helmet of | ||
Ferocious Hood of | ||
Arcane Headgear of | ||
Malevolent Helm of | ||
Gleaming Visor of | ||
Divine Guardian Helmet of | ||
Spectral Helm of | ||
Barbaric Mask of | ||
Eternal Crown of | ||
Wicked Cap of | ||
Primal Protector Helmet of | ||
Shimmering Hood of | ||
Infernal Headgear of | ||
Hidden Veil of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Cursed Eye of | ||
Holy Pendant of | ||
Enchanted Amulet of | ||
Infernal Necklace of | ||
Blessed Charm of | ||
Shadowed Locket of | ||
Glorious Medallion of | ||
Mystic Talisman of | ||
Ancient Brooch of | ||
Vengeful Ring of | ||
Fiery Bracelet of | ||
Radiant Band of | ||
Savage Chain of | ||
Haunted Trinket of | ||
Noble Circlet of | ||
Demonic Sigil of | ||
Celestial Ornament of | ||
Ferocious Token of | ||
Arcane Relic of | ||
Malevolent Jewel of | ||
Gleaming Bauble of | ||
Divine Emblem of | ||
Spectral Crest of | ||
Barbaric Pin of | ||
Eternal Seal of | ||
Wicked Gem of | ||
Primal Adornment of | ||
Shimmering Jewel of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from .generator import BufferItem | ||
from .item_generator import Item | ||
|
||
|
||
class Character: | ||
"""Class for keeping track of character information""" | ||
|
||
def __init__(self): | ||
self.name: str = "" | ||
self.sex: str = "" | ||
self.race: str = "" | ||
self.class_: str = "" | ||
self.coins: int = 0 | ||
self.equipped_helmet: Item = None | ||
self.equipped_armor: Item = None | ||
self.equipped_boots: Item = None | ||
self.equipped_necklace: Item = None | ||
self.equipped_weapon: Item = None | ||
self.inventory: list[Item] = [] | ||
self.buffer: list[BufferItem] = [] | ||
self.quest_log: list[str] = [] | ||
self.ranking_points: int = 0 | ||
|
||
def equip_best(self): | ||
for item in self.inventory: | ||
item_t = item.type_ | ||
if ( | ||
item_t == "Weapon" | ||
and item.enumerate_rarity() | ||
> self.equipped_weapon.enumerate_rarity() | ||
): | ||
self.equipped_weapon = item | ||
elif ( | ||
item_t == "Helmet" | ||
and item.enumerate_rarity() | ||
> self.equipped_helmet.enumerate_rarity() | ||
): | ||
self.equipped_helmet = item | ||
elif ( | ||
item_t == "Armor" | ||
and item.enumerate_rarity() | ||
> self.equipped_armor.enumerate_rarity() | ||
): | ||
self.equipped_armor = item | ||
elif ( | ||
item_t == "Boots" | ||
and item.enumerate_rarity() | ||
> self.equipped_boots.enumerate_rarity() | ||
): | ||
self.equipped_boots = item | ||
elif ( | ||
item_t == "Necklace" | ||
and item.enumerate_rarity() | ||
> self.equipped_necklace.enumerate_rarity() | ||
): | ||
self.equipped_necklace = item |
Oops, something went wrong.