GithubHelp home page GithubHelp logo

kovansky / dndencountercalculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.42 MB

Encounter & xp caluclator for Dungeons and Dragons 5e. Made with @webview webview (Go)

License: MIT License

Go 49.29% CSS 15.37% HTML 9.77% JavaScript 22.79% Inno Setup 2.79%

dndencountercalculator's People

Contributors

deepsourcebot avatar

Watchers

 avatar  avatar

dndencountercalculator's Issues

Let me introduce - muon

Let's try to rewrite this app from webview & lorca to muon.
If this is not going to work, we will try with go-astilectron.

Error throwing support

Enums:

  • ErrorType - easy (i.e. user input), medium (i.e. something went wrong), hard (i.e. internal error).

Models:

  • errorModel
    • Fields:
      • Error number
      • Error description
      • Error type - ErrorType.

Views:

  • Error view - integrated into controller.
    • Error icon
    • Error description & number
    • Error controls - ok/close.

Controllers:

  • Error controller
    • Opens error view
    • Error view controls logic

Party Selector

Methods:

  • saveData - save data in json file.
  • loadData - load data from json file.

Views:

  • PartyView (edit)
    • Party save/edit/delete

Controllers:

  • PartyController (edit)
    • Party save to disk

Monsters input

Constants:

  • XPCR - holds CR - XP value information.

Enums:

  • GroupType - singe, pair, group, mob, horde etc.

Models:

  • monsterModel
    • Fields:
      • Monster name (string)
      • Monster CR (int)
      • Monster XP value (int)
      • Amount (int)
      • Group XP value (int)
      • Count in CR modifier (bool)
    • Methods:
      • Update - calculates monster xp value and group xp value.
      • Calculate monster XP value
      • Calculate monster group XP value
  • enemiesModel
    • Fields:
      • Monsters - array of monsters.
      • Group count - amount of monsters.
      • Group type - GroupType enum.
      • Group XP value
      • Modifier - depends on group count.
    • Methods:
      • Update - calculates group count, group type, group XP value, group CR.
      • Add monster - runs update.
      • Remove monster - runs update.
      • Calculate group count - runs calculate group type.
      • Calculate group type
      • Calculate group XP value

Views:

  • Main view
    • Placeholder for party information and party thresholds
    • Monsters input
      • Add monster button
      • Amount field
      • Name field
      • CR field
      • "Calculate in CR modifier" field
      • Calculate button

Controllers:

  • Main view
    • Add new monster button logic
    • Calculate button logic
    • Pass data to display

Party input

Constants:

  • Thresholds - holds level - xp value information.

Models:

  • playerModel
    • Fields:
      • Player level
      • Player name
  • partyModel
    • Fields:
      • Party players
      • Average level
      • Party threshold
      • Party min-max difference
      • Per-level players number
    • Methods:
      • Update - calculates avg. level, thereshold, min-max difference, per-level players amount.
      • Add player - runs update.
      • Remove player - runs update.
      • Calculate threshold
      • Calculate min-max difference
      • Calculate avg. level
      • Calculate per-level players number

Views:

  • Party Input
    • Player name
    • Player level
    • Add new button
  • Calculate button
  • Party information display
    • Per-level players number
    • Avg. level
    • Thresholds
    • Min-max difference

Controllers:

  • Add new player button logic
  • Calculate button logic
  • Pass information to display

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.