oo game_log will be removed once game_creature stuff is finished. i HAD to include game_log here because without it feedback is absolutely horrible and implementing without feedback is hard. so there.
Attached is first attempt at turning creature bootstrap into a hook to enable other modules to create creature definitions. creature instances live in database table game_creatures.
considering a lot of game_log *garbage* in the patch, pay attention to the two functions game_boostrap and game_load_parties(). both executed inside game_sandbox().
also discovered a bug. see line 154 after applying the patch.
here's some data for game_creatures table to create creature instances:
INSERT INTO `game_creatures` (`cid`, `uid`, `type`) VALUES
(1, 123, 'naga_swiftscale'),
(3, 456, 'naga_swiftscale');
feel free to add more creature instances, it works rather well for N creatures per player.
patch also remove a bunch of E_ALL notices.
Comment | File | Size | Author |
---|---|---|---|
game_creatures.patch | 17.59 KB | litwol |
Comments
Comment #1
litwol CreditAttribution: litwol commentednew work order:
12:02 Morbus: a) new admin settings page.
12:02 Morbus: b) list of all creatures on it.
12:02 Morbus: c) "choose which creatures you want new players to choose one of" (or some such)
12:03 Morbus: d) "play the game" -> checks for units, if none, show page of available starting creatures, info, "choose one".