Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions scripts/fletchit.lic
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
game: Gemstone
tags: crafting, fletching, arrows, bolts
required: Lich >= 5.4.1
version: 2.2.0
version: 2.2.1
source: https://github.com/elanthia-online/lich-5-scripts

changelog:
2.2.1 (2026-05-11):
Add additional TRASH response messaging
2.2.0 (2026-03-05):
Significantly expanded capabilities of handling "trash" shafts when in learning mode.
Learning mode no longer requires glue, fletchings, paint, or paintsticks.
Expand Down Expand Up @@ -219,7 +221,7 @@ module FletchIt
# Current version of the script
#
# @note This should be updated whenever significant changes are made
VERSION = "2.2.0" unless defined?(FletchIt::Config::VERSION)
VERSION = "2.2.1" unless defined?(FletchIt::Config::VERSION)

# Default configuration values for new characters
#
Expand Down Expand Up @@ -693,7 +695,7 @@ module FletchIt
paintstick2: true
}

# In learning mode, we only need wood no glue, fletchings, paint, or paintsticks
# In learning mode, we only need wood - no glue, fletchings, paint, or paintsticks
if settings[:learning]
needs[:glue] = false
needs[:fletchings] = false
Expand Down Expand Up @@ -1254,16 +1256,16 @@ module FletchIt
# @see set_trash_can_status
def self.finalize_arrow(settings)
FletchIt.debug_log("finalize_arrow called with learning: #{settings[:learning]}")
# For learning mode try trash can first, fall back to drop
# For learning mode - try trash can first, fall back to drop
if settings[:learning]
waitrt?
room_id = Room.current.id
cached = trash_can_available?(room_id)

if cached.nil?
# Unknown room test for trash can
result = dothistimeout "trash my shaft", 3, /you feel pleased with yourself|You need to find a trash receptacle/
cached = result =~ /you feel pleased with yourself/ ? true : false
# Unknown room - test for trash can
result = dothistimeout "trash my shaft", 3, /you feel pleased with yourself|you feel a moment of personal pride|You need to find a trash receptacle/
cached = result =~ /you feel pleased with yourself|you feel a moment of personal pride/ ? true : false
set_trash_can_status(room_id, cached)
elsif cached
fput "trash my shaft"
Expand Down
Loading