diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-27 21:21:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-27 21:21:55 -0300 |
commit | eda27bba64eabe741ffa47c008231a0aab3b902d (patch) | |
tree | 981e45a107a123086fbae72487758db363faf60f /npc/items | |
parent | 1bac65c9c8f1828515ddd7b4b95f3e06fb005381 (diff) | |
download | serverdata-eda27bba64eabe741ffa47c008231a0aab3b902d.tar.gz serverdata-eda27bba64eabe741ffa47c008231a0aab3b902d.tar.bz2 serverdata-eda27bba64eabe741ffa47c008231a0aab3b902d.tar.xz serverdata-eda27bba64eabe741ffa47c008231a0aab3b902d.zip |
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.
Diffstat (limited to 'npc/items')
-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?"); |