diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-02-04 10:44:10 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-02-04 10:44:10 +0100 |
commit | 655308482200fb624b51246b50aa6866750e9c78 (patch) | |
tree | 88beb8221f042d418cc12c2126a249c08b9b126c | |
parent | 41e92514ef709db9985696b941ca170064f4f74c (diff) |
Remove the "low on fuel" check for light sources when entering overland travel mode.
The code already doesn't require any light equipped and this can cause extremely unfair and out-of-the-blue deaths when the player's light source is cursed.
-rw-r--r-- | changes.txt | 3 | ||||
-rw-r--r-- | src/dungeon.c | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/changes.txt b/changes.txt index 4aeef8a7..97a5b78f 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,9 @@ T.o.M.E 2.3.8 (ah) - Change "molten glass wall" to use a different internal code to hopefully avoid clashes with modules such as Theme. +- Removed the check on low fuel on your light source when traveling. + It doesn't make sense since you can already travel without any light + equipped. T.o.M.E 2.3.7 (ah) diff --git a/src/dungeon.c b/src/dungeon.c index bcda2da1..fca12173 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -2885,11 +2885,10 @@ static void process_world(void) } /* The light is getting dim */ - else if (o_ptr->timeout < 100) + else if ((o_ptr->timeout < 100) && (o_ptr->timeout % 10 == 0)) { if (disturb_minor) disturb(0, 0); cmsg_print(TERM_YELLOW, "Your light is growing faint."); - drop_from_wild(); } } } @@ -3836,10 +3835,6 @@ static void process_command(void) { msg_print("To flee the ambush you have to reach the edge of the map."); } - else if (o_ptr->tval && (f4 & TR4_FUEL_LITE) && (o_ptr->timeout < 100)) - { - msg_print("Your light is too low on fuel for you to travel with it."); - } /* TODO: make the above stuff use this hook */ else if (!process_hooks(HOOK_FORBID_TRAVEL, "()")) { |