mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 10:40:13 +01:00
New house system, ASCII hcontrol file and hsedit house OLC
This commit is contained in:
parent
74c3d208b6
commit
3fa8ebe048
16 changed files with 2647 additions and 681 deletions
|
|
@ -18,8 +18,9 @@
|
|||
#include "ban.h" /* for SPECIAL(gen_board) */
|
||||
#include "boards.h"
|
||||
#include "mail.h"
|
||||
#include "house.h"
|
||||
|
||||
SPECIAL(questmaster);
|
||||
SPECIAL(questmaster);
|
||||
SPECIAL(shop_keeper);
|
||||
|
||||
/* local (file scope only) functions */
|
||||
|
|
@ -166,40 +167,42 @@ void assign_rooms(void)
|
|||
world[i].func = dump;
|
||||
}
|
||||
|
||||
struct spec_func_data {
|
||||
char *name;
|
||||
SPECIAL(*func);
|
||||
};
|
||||
struct spec_func_data {
|
||||
char *name;
|
||||
SPECIAL(*func);
|
||||
};
|
||||
|
||||
struct spec_func_data spec_func_list[] = {
|
||||
{"Mayor", mayor },
|
||||
{"Snake", snake },
|
||||
{"Thief", thief },
|
||||
{"Magic User", magic_user },
|
||||
{"Puff", puff },
|
||||
{"Fido", fido },
|
||||
{"Janitor", janitor },
|
||||
{"Cityguard", cityguard },
|
||||
{"Postmaster", postmaster },
|
||||
{"Receptionist", receptionist },
|
||||
{"Cryogenicist", cryogenicist},
|
||||
{"Bulletin Board", gen_board },
|
||||
{"Bank", bank },
|
||||
{"Pet Shop", pet_shops },
|
||||
{"Dump", dump },
|
||||
{"Guildmaster", guild },
|
||||
{"Guild Guard", guild_guard },
|
||||
{"Questmaster", questmaster },
|
||||
{"Shopkeeper", shop_keeper },
|
||||
{"\n", NULL}
|
||||
};
|
||||
struct spec_func_data spec_func_list[] = {
|
||||
{"Mayor", mayor },
|
||||
{"Snake", snake },
|
||||
{"Thief", thief },
|
||||
{"Magic User", magic_user },
|
||||
{"Puff", puff },
|
||||
{"Fido", fido },
|
||||
{"Janitor", janitor },
|
||||
{"Cityguard", cityguard },
|
||||
{"Postmaster", postmaster },
|
||||
{"Receptionist", receptionist },
|
||||
{"Cryogenicist", cryogenicist},
|
||||
{"Bulletin Board", gen_board },
|
||||
{"Bank", bank },
|
||||
{"Pet Shop", pet_shops },
|
||||
{"Dump", dump },
|
||||
{"Guildmaster", guild },
|
||||
{"Guild Guard", guild_guard },
|
||||
{"Questmaster", questmaster },
|
||||
{"Shopkeeper", shop_keeper },
|
||||
{"House-Receptionist", house_receptionist },
|
||||
{"House-Shopkeeper", house_shopkeeper },
|
||||
{"\n", NULL}
|
||||
};
|
||||
|
||||
const char *get_spec_func_name(SPECIAL(*func))
|
||||
{
|
||||
int i;
|
||||
for (i=0; *(spec_func_list[i].name) != '\n'; i++) {
|
||||
if (func == spec_func_list[i].func) return (spec_func_list[i].name);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
const char *get_spec_func_name(SPECIAL(*func))
|
||||
{
|
||||
int i;
|
||||
for (i=0; *(spec_func_list[i].name) != '\n'; i++) {
|
||||
if (func == spec_func_list[i].func) return (spec_func_list[i].name);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue