makeopensource / Classic-RPG

A classic role-playing game with an engine.
GNU General Public License v3.0
7 stars 19 forks source link

V2.0 node based #71

Closed Sploder12 closed 2 years ago

Sploder12 commented 2 years ago

Proposed changes

Storing all node connections inside the Game requires unnecessary dictionary lookups and may make code harder to read. Proposes storing Node connections inside the nodes themselves.

Additionally includes type hints for all current code. Fixes bug that allows players to enter numbers outside bounds.

Types of changes

Checklist

Further comments

Type hints will be helpful for linting/auto-suggest/reasoning. I believe we should use them when possible moving forward.