jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

ENH: default balance constant #13

Closed jpcsupplies closed 8 years ago

jpcsupplies commented 9 years ago

to allow for adding a configuration facility later, the default balance should probably be a constant at the start somewhere so we can replace it later with a config setting from a file -

Eg - probably allow it to be set with an admin command. Although cannot be done until the admin detection enh is functional, i should at least set a constant somewhere until then.

ie const defaultbal=100;

then everywhere we create a new balance record refer to defaultbal instead of "100" so we can universally configure the default starting balance centrally..

in the case of a config file, this const could be populated from a value set by the server operator there.. although said config file should create itself first if it doesnt exist yet, populating default values anyway..

jpcsupplies commented 8 years ago

When did you find time to slip that one in lol... was there a tardis involved?

Good work! :+1: