From eda27bba64eabe741ffa47c008231a0aab3b902d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 27 May 2019 21:21:55 -0300 Subject: New shovel option (to make up with low bury rates) - Autodigging. Once you enable this with @ucp > Game Settings, you'll always try to dig. --- npc/items/shovel.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'npc/items') 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?"); -- cgit v1.2.3-60-g2f50