PDA

View Full Version : ;narost quality of life fix



horibu
05-12-2017, 07:55 PM
So it was starting to get to me that the right-click "view map" listing of maps within NAROST were sorted by uppercase before lowercase. Example, imt-Reim was listed at the top of the imt maps. I was able to truely ignore case and allow all maps to be sorted by just modifying one line of code. Not sure if Tillmen wishes to push an update out or not, but if you wish to do it yourself edit the following.

NAROST.LIC line 93

BEFORE:
used_maps.sort!

AFTER:
used_maps.sort_by!(&:downcase)

BigWorm
05-12-2017, 11:04 PM
I also patched my version of narost to sort tags as well which makes it much easier to find the herb you are looking for in the list:



171c171
< room.tags.each { |tag|
---
> room.tags.sort.each { |tag|

SulienWaggles
05-13-2017, 01:41 AM
Ain't Ruby a grand language? ;)