diff options
Diffstat (limited to 'npc/items/shovel.txt')
-rw-r--r-- | npc/items/shovel.txt | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 63480fb98..b0a45b4f1 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -104,8 +104,12 @@ function script shovel_scatter { } if (@ShovelLastUsed + max(5, .@playertick) > .@tick) { - mes ""; - mesc lg("You are exhausted, you should rest a bit."); + if (!GSET_SHOVEL_AUTODIG) { + mes ""; + mesc lg("You are exhausted, you should rest a bit."); + } else { + dispbottom lg("You are exhausted, you should rest a bit."); + } return 1; } @ShovelLastUsed = .@tick; @@ -237,6 +241,15 @@ OnUse: close; } + // SHOVEL_AUTODIG - Skip menu and outright try to dig + if (GSET_SHOVEL_AUTODIG) { + if (PlayerIsTired()) + end; + if (!ShovelQuests()) + Dig(); + end; + } + narrator S_LAST_BLANK_LINE, l("You hold the shovel in your hands. What are you going to do?"); |