Commit 083956b2 authored by Localtoast's avatar Localtoast 💬

started the battle system

parent 972087e4
......@@ -194,6 +194,14 @@ func runHackTrace(user string, target string, initializedActors []libs.ActorS) s
// return "NO"
return "OK"
}
func battleTrace() {
//TODO battle system
seed := time.Now().UnixNano()
rand.Seed(seed)
//This is seeded at the start of every battle,
//Though another option is seeding it at server boot
//A wizcommand to re-seed will help with randomization
}
func runBattleTrace(user string, target string, initializedActors []libs.ActorS) string {
userList := strings.Split(user, ":")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment