Giter Club home page Giter Club logo

fluffy-hero-maker's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fluffy-hero-maker's Issues

[bug] saving throw calculation off

Describe the bug
On a random character gen, this happened :

Stats:
Strength: 14
Dexterity: 14
Constitution: 14
Intelligence: 18
Wisdom: 9
Charisma: 13

Saving Throws:
Strength: 2
Dexterity: 2
Constitution: 1
Intelligence: 5
Wisdom: 1
Charisma: 1

Constitution should be 2 and wisdom -1 (maybe the minus just isn't showing up on the display for the wisdom, but constitution is definitely wrong)

Better background display

The description is written as one long line, it would be nicer if it was broken down with newlines.

3d6 generation gave a stat a 2

Your attributes are:
Strength: 6
Dexterity: 6
Constitution: 2
Intelligence: 8
Wisdom: 2
Charisma: 8
Something went wrong in the 3d6 roll.

Class features not displayed properly

Both when choosing the class
Appears as a {"name":"","description":""} string
and when displaying the recap about the character does not appear at all

Hit points not calculated

As of now, hit points are not calculated for the resulting character, even if the hit dice of the class and the constitution modifier are.

Add class information for spells

Spells are not all accessible to all classes

  • adding the information to the json files (and the spell_template.json)
  • adding the field in the spell table
  • adding the information in the display
  • querying the database for spells from a certain class
  • querying the database for spells from a certain class and a certain level

Add some tests

Having tests would help improve the overall quality of the generator, and would allow to have less regression bugs.

Add documentation

Mostly to improve readability it would be nice to have all functions commented and maybe also the classes.

Cannot currently choose class feature

For example the Fighter has a Fighting Style to choose at level 1, and it is currently in the json data, stored in the database (probably not ideally) but not yet taken into account in the character creation

Display bug of background

When displaying the Acolyte background a random 1: appears, apparently because there are no feature choices in this backround (some have them)

Consolidate json data

I'm pretty sure there are mistakes in the jsons, whether of grammatical errors or bad copy/paste.
Need to re check every one of them

  • srd_races
  • srd_classes
  • srd_backgrounds
  • srd_aberration
  • srd_celestial
  • srd_cantrips
  • srd_lvl_1
  • srd_lvl_9

(will add the other jsons when they are added to the code base)

[bug] Doesn't start on windows properly

As the FLASK_APP variable is not set to app/main_flask.py, it doesn't run properly.
(also need to check the initialization of the database if the flask app is run without running the cli_main before)

Better character save

Currently not all data are saved when the user accepts to save at the end of the creation

Add Spell SRD Data

  • Keep a structure of srd_lvl_[number].json for files

  • Cantrips

  • Lvl 1 spells

  • Lvl 2 spells

  • Lvl 3 spells

  • Lvl 4 spells

  • Lvl 5 spells

  • Lvl 6 spells

  • Lvl 7 spells

  • Lvl 8 spells

  • Lvl 9 spells

Add SRD Classes

  • Barbarian
  • Bard
  • Cleric
  • Druid
  • Fighter
  • Monk
  • Paladin
  • Ranger
  • Rogue
  • Sorcerer
  • Warlock
  • Wizard

Extra line after Racial Traits display

Just before the "Do you confirm this choice?" in race choice when picking Rock Gnome (no information after racial traits)
Does not do it for a Hill Dwarf (Weapon Proficiency displayed after racial traits, no extra newline

Generation option 5 is not available

Generation type: Rolling stats until the total bonuses is not higher than 7 and not lower than 3

If currently chosen, it will crash the program.

  File "/fluffy-hero-maker/cli_main.py", line 24, in <module>
    dnd_character_creation()
  File "/fluffy-hero-maker/dnd_character_creator.py", line 98, in dnd_character_creation
    dnd_character = Dnd5Character(character_name.strip(), int(generation), stats=attributes)
  File "/fluffy-hero-maker/characters/dnd5.py", line 29, in __init__
    "Strength": self.get_modifier("Strength"),
  File "/fluffy-hero-maker/characters/dnd5.py", line 214, in get_modifier
    return floor((self.attributes[attribute] - 10) / 2)
KeyError: 'Strength'```

Messy Dragonborn option

Draconic Ancestry
You have draconic ancestry. Choose one type of dragon from the Draconic Ancestry table. Your breath weapon and damage resistance are determined by the dragon type; as shown in the table.
Breath Weapon; Damage Resistance
[, ', B, l, a, c, k, '
Breath Weapon
You can use your action to exhale destructive energy. Your draconic ancestry determines the size; shape; and damage type of the exhalation. When you use your breath weapon; each creature in the area of the exhalation must make a saving throw; the type of which is determined by your draconic ancestry. The DC for this saving throw equals 8 + your Constitution modifier + your proficiency bonus. A creature takes 2d6 damage on a failed save; and half as much damage on a successful
Draconic Ancestry
', B, l, u, e, '
Damage Resistance
You have resistance to the damage type associated with your draconic ancestry.
Draconic Ancestry
', B, r, a, s, s, '
Race: Dragonborn

This needs fixing.

[bug] Monster json import bugging on traits and actions

Describe the bug
Imports of monsters fail on adding the actions and traits from the json files (they are dict)

To Reproduce
Steps to reproduce the behavior:

  1. Select the monster displayer
  2. Should break on population of the database

Expected behavior
Import should go well

Screenshots

    monsters = get_all_monsters_from_json()
  File "/home/freyja/dev/Fluffy-Hero-Maker/databases/dnd5_monster_db.py", line 98, in get_all_monsters_from_json
    ", ".join(monster["actions"]),
TypeError: sequence item 0: expected str instance, dict found

Environment (please complete the following information):

  • Ubuntu 19.04

Add Monster SRD Data

Adding them by using srd_[monster_type].json file names

  • Aberration
  • Beast
  • Celestial
  • Construct
  • Dragon
  • Elemental
  • Fey
  • Fiend
  • Giant
  • Humanoid
  • Monstrosity
  • Ooze
  • Plant
  • Undead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.