Gvin / CodeMagic

A small ASCII Roguelike RPG with magic based on physics + programming.
GNU General Public License v3.0
2 stars 1 forks source link

Implement New Mana System #65

Closed Gvin closed 5 years ago

Gvin commented 5 years ago

Cells should have ManaLevel, MaxManaLevel, NaturalManaRegeneration and DisturbanceLevel. ManaLevel cannot be higher than MaxManaLevel - DisturbanceLevel. ManaLevel is exchanged with neighbor cells (mana flow) with the specific max flow value. NaturalManaRegeneration should be added to ManaLevel of cell if it's current ManaLevel is greater than some specific level (if there is too small mana it will not self-replenish). If ManaLevel is less than some specific level (lower than self-regeneration level) DisturbanceLevel will be increased. If DisturbanceLevel is higher than some specific level the cell becomes dangerous resulting in Magic damage (depending on DisturbanceLevel) to all creatures, destroying spells (with specific chance) and etc.

Player should have mana storage with current mana level and "mana draw" power. When player's current mana level is less than his max mana storage he begins to "draw" mana from his current cell but only if the cell has any mana in it. This may result in DIsturbance creation and emptying cell's mana completely.

Add a gauge to player status panel displaying current mana and disturbance levels.

Gvin commented 5 years ago

Implemented