Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Traceback (most recent call last):
- File "d:\muddev\evennia\evennia\commands\cmdhandler.py", line 591, in _run_command
- ret = cmd.func()
- File ".\commands\combat_cmds.py", line 71, in func
- self.caller.combat.attack(target, damage_type, 'staves', 'swat')
- File "d:\muddev\hecate\world\combat_handler.py", line 118, in attack
- attacker_desc, target_desc, others_desc = build_skill_str.create_attack_desc(attacker, target,
- skillset, skill, damage_type, damage_tier, body_part, hit)
- File "d:\muddev\hecate\world\build_skill_str.py", line 21, in create_attack_desc
- a_name = prop_name(attacker)
- File "d:\muddev\hecate\world\generic_str.py", line 52, in proper_name
- name = char.key.cap
- AttributeError: 'str' object has no attribute 'cap'
- An untrapped error occurred.
- (Traceback was logged 19-08-16 07:22:22-04).
- """
- cap = 'capitalize'
- vowels = ['a', 'e', 'i', 'o', 'u']
- consonant_vowels = ['amazigh', 'euboean', 'eucharist', 'eumenides', 'eurasian', 'euro-american', 'europe',
- 'european', 'eusebius', 'oaxaca', 'ouija', 'ucalegon', 'uclaf', 'udale',
- 'udall', 'udy', 'ueberroth', 'uganda', 'uinita', 'ukase', 'ukie', 'ukraine', 'ukrainian', 'ullyses', 'unakas',
- 'uniate', 'unix', 'uranus', 'usanian', 'usonian', 'utah', 'utahn', 'utonian', 'esclop', 'eucalyptus', 'eucatastrophe',
- 'euchologion', 'euchre', 'euclidianness', 'eudaemon', 'eudemonia', 'eugarie', 'eugenesis', 'eugenics', 'eugenist',
- 'eugeny', 'euglena', 'eukaryote', 'eulachon', 'eulogy', 'eunoia', 'eunuch', 'euouae', 'euphemism', 'euphoria',
- 'euphoriant', 'eureka', 'euro', 'eustasy', 'eustress', 'eutectic', 'euth', 'euthanasia', 'eutripsia', 'ewe', 'ewer',
- 'latmul', 'once', 'oncer', 'one', 'onesie', 'ouabain', 'ubac', 'uberty', 'ubication', 'ubicity', 'ubiety', 'ubiquity',
- 'udometer', 'uey', 'ufo', 'ufologist', 'ufology', 'uke', 'ukelele', 'ukulele', 'ululate', 'ululation', 'unanimity',
- 'unanimous', 'unary', 'uni', 'unicameral', 'unicorn', 'unicycle', 'unidirection', 'unidirectional', 'unidirectionality',
- 'uniform', 'uniformitarianism', 'unify', 'unigeniture', 'union', 'unique', 'uniquity', 'unisex', 'unison', 'unit', 'unite',
- 'unity', 'univalence', 'univalent', 'universalism', 'universe', 'university', 'univocal', 'upas', 'upsilon', 'uraeus',
- 'ural', 'uranism', 'uranist', 'uranium', 'uranophobia', 'urea', 'ureter', 'ureteroureterostomy', 'urethra', 'uridine',
- 'urinal', 'urinalysis', 'urine', 'urology', 'uropygium', 'urus', 'usability', 'usage', 'use', 'user', 'using', 'usual',
- 'usufruct', 'usufruction', 'usufructuary', 'usurer', 'usuress', 'usurp', 'usurper', 'usurping', 'usury', 'ute', 'utensil',
- 'uterus', 'utile', 'utilitarian', 'utility', 'utopia', 'utopographer', 'utricle', 'uvarovite', 'uvas', 'uvea', 'uvula',
- 'uvular', 'zzxjoanw']
- def article(word):
- word.lower()
- if word[0] in vowels:
- article = 'an'
- elif word in consonant_vowels:
- article = 'a'
- else:
- article = 'a'
- return article
- def pronoun(char):
- if not char.attributes.has('figure'):
- possessive = 'its'
- singular_subject = 'it'
- singular_object = 'it'
- elif char.db.figure['gender'] == 'male':
- possessive = 'his'
- singular_subject = 'he'
- singular_object = 'him'
- elif char.db.figure['gender'] == 'female':
- possessive = 'hers'
- singular_subject = 'she'
- singular_object = 'her'
- return possessive, singular_subject, singular_object
- def proper_name(char):
- if not char.attributes.has('figure'):
- name = char.key
- elif char.db.figure['gender'] == 'male' or 'female':
- name = char.key.cap
- return name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement