mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Ignore project files on commit, and fix the automap bug showing two
descriptions
This commit is contained in:
parent
5da67ddc6a
commit
fafd4ecd01
2 changed files with 238 additions and 164 deletions
71
.gitignore
vendored
71
.gitignore
vendored
|
@ -13,3 +13,74 @@ src/util/depend
|
||||||
build/*
|
build/*
|
||||||
!build/create_solution.bat
|
!build/create_solution.bat
|
||||||
!build/README.md
|
!build/README.md
|
||||||
|
|
||||||
|
# Do not commit files from players
|
||||||
|
lib/plrfiles/A-E/*
|
||||||
|
lib/plrfiles/F-J/*
|
||||||
|
lib/plrfiles/K-O/*
|
||||||
|
lib/plrfiles/P-T/*
|
||||||
|
lib/plrfiles/U-Z/*
|
||||||
|
lib/plrfiles/ZZZ/*
|
||||||
|
lib/plrfiles/index
|
||||||
|
|
||||||
|
# but do commit the placeholders
|
||||||
|
!lib/plrfiles/A-E/00
|
||||||
|
!lib/plrfiles/F-J/00
|
||||||
|
!lib/plrfiles/K-O/00
|
||||||
|
!lib/plrfiles/P-T/00
|
||||||
|
!lib/plrfiles/U-Z/00
|
||||||
|
!lib/plrfiles/ZZZ/00
|
||||||
|
|
||||||
|
# or vars
|
||||||
|
lib/plrvars/A-E/*
|
||||||
|
lib/plrvars/F-J/*
|
||||||
|
lib/plrvars/K-O/*
|
||||||
|
lib/plrvars/P-T/*
|
||||||
|
lib/plrvars/U-Z/*
|
||||||
|
lib/plrvars/ZZZ/*
|
||||||
|
lib/plrvars/index
|
||||||
|
|
||||||
|
# except the placeholders
|
||||||
|
!lib/plrvars/A-E/00
|
||||||
|
!lib/plrvars/F-J/00
|
||||||
|
!lib/plrvars/K-O/00
|
||||||
|
!lib/plrvars/P-T/00
|
||||||
|
!lib/plrvars/U-Z/00
|
||||||
|
!lib/plrvars/ZZZ/00
|
||||||
|
|
||||||
|
# or objects
|
||||||
|
lib/plrobjs/A-E/*
|
||||||
|
lib/plrobjs/F-J/*
|
||||||
|
lib/plrobjs/K-O/*
|
||||||
|
lib/plrobjs/P-T/*
|
||||||
|
lib/plrobjs/U-Z/*
|
||||||
|
lib/plrobjs/ZZZ/*
|
||||||
|
lib/plrobjs/index
|
||||||
|
|
||||||
|
# except the placeholders
|
||||||
|
!lib/plrobjs/A-E/00
|
||||||
|
!lib/plrobjs/F-J/00
|
||||||
|
!lib/plrobjs/K-O/00
|
||||||
|
!lib/plrobjs/P-T/00
|
||||||
|
!lib/plrobjs/U-Z/00
|
||||||
|
!lib/plrobjs/ZZZ/00
|
||||||
|
|
||||||
|
# also not autogenerated config file
|
||||||
|
/lib/etc/config
|
||||||
|
# or the list of last logins
|
||||||
|
/lib/etc/last
|
||||||
|
# or mail
|
||||||
|
lib/etc/plrmail
|
||||||
|
|
||||||
|
# test object files, etc
|
||||||
|
src/test/depend
|
||||||
|
src/test/*.o
|
||||||
|
src/test/testfile
|
||||||
|
|
||||||
|
|
||||||
|
# ide etc.
|
||||||
|
.vscode
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
|
||||||
|
.cproject
|
|
@ -521,15 +521,17 @@ void look_at_room(struct char_data *ch, int ignore_brief)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
send_to_char(ch, "%s", world[IN_ROOM(ch)].name);
|
send_to_char(ch, "%s", world[IN_ROOM(ch)].name);
|
||||||
|
|
||||||
send_to_char(ch, "%s\r\n", CCNRM(ch, C_NRM));
|
send_to_char(ch, "%s\r\n", CCNRM(ch, C_NRM));
|
||||||
|
|
||||||
if ((!IS_NPC(ch) && !PRF_FLAGGED(ch, PRF_BRIEF)) || ignore_brief ||
|
if ((!IS_NPC(ch) && !PRF_FLAGGED(ch, PRF_BRIEF)) || ignore_brief ||
|
||||||
ROOM_FLAGGED(IN_ROOM(ch), ROOM_DEATH)) {
|
ROOM_FLAGGED(IN_ROOM(ch), ROOM_DEATH)) {
|
||||||
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOMAP) && can_see_map(ch))
|
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOMAP) && can_see_map(ch))
|
||||||
str_and_map(world[target_room].description, ch, target_room);
|
str_and_map(world[target_room].description, ch, target_room);
|
||||||
|
else
|
||||||
|
send_to_char(ch, "%s", world[IN_ROOM(ch)].description);
|
||||||
}
|
}
|
||||||
|
|
||||||
send_to_char(ch, "%s", world[IN_ROOM(ch)].description);
|
|
||||||
|
|
||||||
/*autoexits */
|
/*autoexits */
|
||||||
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOEXIT))
|
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOEXIT))
|
||||||
|
@ -603,7 +605,8 @@ static void look_in_obj(struct char_data *ch, char *arg)
|
||||||
}
|
}
|
||||||
else if (GET_OBJ_VAL(obj,1)>GET_OBJ_VAL(obj,0))
|
else if (GET_OBJ_VAL(obj,1)>GET_OBJ_VAL(obj,0))
|
||||||
send_to_char(ch, "Its contents seem somewhat murky.\r\n"); /* BUG */
|
send_to_char(ch, "Its contents seem somewhat murky.\r\n"); /* BUG */
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
char buf2[MAX_STRING_LENGTH];
|
char buf2[MAX_STRING_LENGTH];
|
||||||
amt = (GET_OBJ_VAL(obj, 1) * 3) / GET_OBJ_VAL(obj, 0);
|
amt = (GET_OBJ_VAL(obj, 1) * 3) / GET_OBJ_VAL(obj, 0);
|
||||||
sprinttype(GET_OBJ_VAL(obj, 2), color_liquid, buf2, sizeof(buf2));
|
sprinttype(GET_OBJ_VAL(obj, 2), color_liquid, buf2, sizeof(buf2));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue