Giter Club home page Giter Club logo

temtem's Introduction

TemTem

An open-source TemTem code library

Purpose

I put a detailed explanation of why I created this library here.

Previously no code was available, and formulas and mechanics were often tricky to track down, lacking information, and sometimes I couldn't find them online at all.

My hope is that an open-source library of TemTem code should allow anyone who wants to create something TemTem-related can do so much more easily, and be much more confident that their code will output the correct result.

Language

Python3.8 was chosen for a number of reasons:

  • It's an easy language to learn and that's the first language many people are taught, making this more accessible.
  • It's practically pseudocode, so if you want to use another OO language it should be pretty simple to translate over.
  • It's the most fun to use, and the language I'm most used to using.

Completeness

  • Import / Export TemTems from the text format
  • Correct stat calculation, including boosts
  • Static data for all tems and attacks, which can be read into python
  • Damage calculation, excluding weird things like Traits, Items, or Hyperkinetic Strike
  • Statuses (mostly done, but a few things left to handle)
  • Handling stamina (mostly done)
  • Most move effects e.g. boosting stats (shouldn't take much effort)
  • Handling Traits
  • Handling Items
  • Actually simulating a whole battle - there's a few more things that need to be coded for this, e.g. attack targeting, move priority, move hold, what happens to tems that are switched out, etc.

Data

Most of the mechanics details are taken from the temtem wiki, with some details taken from my own research or discussion on discord, with results from these often then being uploaded to the wiki.

Temtem and Move data were initially taken from the wiki, but are now being taken largely from maael's api.

Sets data is taken from temtemstrat.

Contributing

Please feel free to add to this codebase! If you'd like to work on one of the above points, or have an idea you'd like to build, please feel free to talk to me about it, or even just start working on it!

Pull requests are also welcome! It would be great if you could confirm that pytest and flake8 pass. Adding your own tests would also be helpful!

Licensing and Credits

All code is copyright (c) DoW 2020, and licensed under GPL 2.0.

Thanks to the wiki contributors, various discord users, Maael, and the guys at temtemstrat for the various information they made publically available, that was used here.

temtem's People

Contributors

dependabot[bot] avatar dow-gray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.