Commit Graph

62 Commits

Author SHA1 Message Date
Loïc Hoguin
c957d9a8b9 Separate type definitions in their own header.
Also convert source files to utf8, update the copyright info and
other minor changes.
2011-02-27 23:13:09 +01:00
Loïc Hoguin
d9cde30b0b Remove the #level record. 2011-02-27 20:12:43 +01:00
Loïc Hoguin
c7cb5ab589 Remove the unused #users.se. 2011-02-27 19:49:27 +01:00
Loïc Hoguin
dc26bb82f7 Remove the unused #users.classlevels. 2011-02-27 19:46:37 +01:00
Loïc Hoguin
d8906226a5 Remove the unused #users.playtime. 2011-02-27 19:44:05 +01:00
Loïc Hoguin
730f47d837 Remove the unused #users.time. 2011-02-27 19:42:27 +01:00
Loïc Hoguin
a1bf3e43f3 Remove #characters and merge the data into #users directly. 2011-02-27 19:14:03 +01:00
Loïc Hoguin
86bb5c81b3 Rename the client state record #state into #client for clarity. 2011-02-26 17:00:41 +01:00
Loïc Hoguin
344b88eec4 egs_accounts: Add tmp_gid/0. Remove the table/record counters. 2011-02-20 02:42:40 +01:00
Loïc Hoguin
69a07dfad2 egs_accounts: Remove mnesia for accounts handling. Convert to a gen_server. 2011-02-20 02:01:16 +01:00
Loïc Hoguin
57e4e91187 Remove all references to the unused psu_object record/table. 2011-02-20 01:15:05 +01:00
Loïc Hoguin
b728731830 Properly handle the LID per player and per zone. Remove related hacks. 2011-02-19 19:45:50 +01:00
Loïc Hoguin
e7246271ad users: Remove the setid property. Sets are fully handled by the zone now. 2011-02-19 16:58:09 +01:00
Loïc Hoguin
326b356d02 egs_zones: Add enter and leave functions for players entering/leaving the zone. 2011-02-18 02:52:25 +01:00
Loïc Hoguin
fdfd49179f Remove psu_instance; to be replaced with egs_quests and egs_zones. 2011-02-13 19:26:08 +01:00
Loïc Hoguin
0989664035 Cleanup area loading code. Remove myroom, mission and spaceport support. 2011-02-13 18:06:25 +01:00
Loïc Hoguin
a484de77e0 egs_users: Rename id into gid inside the users record. 2011-02-13 00:35:05 +01:00
Loïc Hoguin
098ad5243a Get rid of psu_area; use a normal tuple instead (for now). 2011-02-12 23:28:56 +01:00
Loïc Hoguin
05149483c8 Use a normal tuple instead of a record for the pos values. 2011-02-12 20:12:48 +01:00
Loïc Hoguin
4dcaa79371 Add types to the users record and convert egs_users into a functions module.
The egs_user_model module was renamed into egs_users.
The egs_user_model record was renamed into users.
2011-02-12 19:58:53 +01:00
Loïc Hoguin
bd4a296b0a records: Define types for state and accounts. 2011-02-12 15:53:55 +01:00
Loïc Hoguin
c91880be1f Introduce egs_universes for universe handling. Review and move send_021e and send_0222 to psu_proto. 2010-10-21 17:00:30 +02:00
Loïc Hoguin
b4123b7433 Introduce egs_npc_db for NPC database handling. 2010-10-11 17:16:07 +02:00
Loïc Hoguin
db610bb066 Introduce egs_accounts for accounts handling. 2010-10-11 03:20:20 +02:00
Loïc Hoguin
641371fe4b egs_char_select: Save the character slot in the state for later use. 2010-10-09 01:04:03 +02:00
Loïc Hoguin
6cf2c77823 Introduce egs_items_db for items database management. 2010-10-08 17:30:24 +02:00
Loïc Hoguin
a79ad78309 egs_game: Initial, probably buggy, implementation of npc_shop_buy. 2010-09-30 00:32:32 +02:00
Loïc Hoguin
1189753858 egs_user_model: Save the ShopID when entering a shop, remove it when leaving. 2010-09-29 19:02:20 +02:00
Loïc Hoguin
492b485cd9 Add default values to items and egs_user_model records. 2010-09-27 23:52:03 +02:00
Loïc Hoguin
74c491380d psu_proto: Handle that auto incremented area-related number properly. 2010-09-25 16:51:07 +02:00
Loïc Hoguin
e8a2312794 Make the state the same for all modules. The state contains socket, gid and lid. 2010-09-20 02:41:03 +02:00
Loïc Hoguin
3c90c8e4bc items: Initial weapons handling. Added 3 swords with various differences. 2010-09-12 23:27:28 +02:00
Loïc Hoguin
2899a32ea1 Change the license from GPLv3 to Affero GPL, which is based on GPLv3. 2010-09-04 00:09:06 +02:00
Loïc Hoguin
b7d3c1634f Added many NPC characters. Fixed movement for NPCs other than Lou. 2010-08-27 02:03:58 +02:00
Loïc Hoguin
46fabad441 egs_user_model: Remove the unused counterid introduced earlier today. 2010-08-21 18:42:23 +02:00
Loïc Hoguin
3ee62e81e8 psu_proto: Move counter_enter to events. Handle prev_area correctly. Handle CounterID correctly. 2010-08-21 16:53:35 +02:00
Loïc Hoguin
18a86f9c6b Initial party and NPC support. Lou only so far. Many bugs expected. 2010-08-16 18:31:01 +02:00
Loïc Hoguin
26ed4cbf54 Remove egs_db. Rename the ids table to counters. Update it directly. 2010-07-31 21:32:08 +02:00
Loïc Hoguin
761f053ade psu_game: Don't try to load a set file that doesn't exist. 2010-07-24 12:51:51 +02:00
Loïc Hoguin
473f7f1ae6 Added psu_instance, a process to handle missions and more later. 2010-07-23 21:46:03 +02:00
Loïc Hoguin
bc66480d8e Move the db user code into its own gen_server, egs_user_model. 2010-07-19 02:11:31 +02:00
Loïc Hoguin
db3a10188b psu_missions: Handle warps. Correctly handle coords, direction. Add Dark Satellite.
Currently only Dark Satellite B1 and B2 work.
There might be a regression about the sit state of others when connecting.
2010-07-16 16:25:31 +02:00
Loïc Hoguin
5f4a1f8877 game: Fix 3rd Unsafe Passage C block 2 and 3! 2010-07-10 21:34:59 +02:00
Loïc Hoguin
43d2516d02 psu_missions: Initial objects and proper missions handling. See below.
* Create objects in the memory database.
* Enemies aren't created in the database yet.
* Player now has its HP working correctly.
* Boxes are now destroyed.
* Temporarily set the initial spawn point to the LL counter.
2010-07-09 18:59:14 +02:00
Loïc Hoguin
86d50bb2c7 characters: Fix issues when loading idle characters. 2010-07-02 23:12:46 +02:00
Loïc Hoguin
1ea1009a37 game: Initial support for character stats and other information. 2010-07-01 21:26:26 +02:00
Loïc Hoguin
94ccf04986 records: Add new data structures for accounts and characters handling. 2010-07-01 04:02:31 +02:00
Loïc Hoguin
14c9ab7666 psu_characters: Parse and validate character options. 2010-06-30 18:02:00 +02:00
Loïc Hoguin
c4e2dccb97 psu_appearance: Parse and validate character creation appearance data. 2010-06-30 02:52:53 +02:00
Loïc Hoguin
a0442e1139 game: Correctly handle mission aborting. Warp the player OUT. 2010-06-11 00:34:55 +02:00