![]() |
#141 |
Adept
Join Date: Mar 2013
Posts: 102
![]() |
light purple for necromancy books, light green for nature books; changing prayer books to light blue. They do display properly on the ASCII map. (Light green ?, light purple ?.)
|
![]() |
![]() |
![]() |
#142 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,960
Donated: $60
![]() |
OK, I think you probably need to add some code to obj_desc_get_basename() in obj-desc.c - mimic what is done for TV_MAGIC_BOOK and TV_PRAYER_BOOK.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#143 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,454
Donated: $40
![]() |
Hmm. Looks like more data that belongs in object_base.txt
I'd forgotten all about that. Edit: The thing to do is to grep for cases for TV_MAGIC_BOOK and add new entries. This is not the only place, by a long shot. There are 10 places that need to be edited. Last edited by Pete Mack; April 17, 2017 at 17:34. |
![]() |
![]() |
![]() |
#144 | ||
Adept
Join Date: Mar 2013
Posts: 102
![]() |
Quote:
Quote:
case TV_MAGIC_BOOK: if (terse) return "& Book~ #"; else return "& Book~ of Magic Spells #"; case TV_PRAYER_BOOK: if (terse) return "& Book~ #"; else return "& Holy Book~ of Prayers #"; case TV_NATURE_BOOK: if (terse) return "& Book~ #"; else return "& Book~ of Nature Lore #"; case TV_NECROMANCY_BOOK: if (terse) return "& Book~ #"; else return "& Book~ of Necromancy #"; I already searched for TV_MAGIC_BOOK, Book, and even TV a while ago and added more code for each of the results. Except for wiz-stats.c which only has TV_MAGIC_BOOK and has a note saying that since prayer books have the same probability only one of the two needs to be tracked. I don't know if there would be anything there that needs editing. List of files changed: list-tvals.h, obj-desc.c, obj-randart.c, obj-tval.c, store.c, ui-knowledge.c, ui-options.c, wiz-spoil.c. Oh and list-magic-realms.h, object.txt, object_base.txt, store.txt, class.txt. Last edited by Elfin Jedi; April 18, 2017 at 05:39. |
||
![]() |
![]() |
![]() |
#145 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,454
Donated: $40
![]() |
If the issue is still happening, I suspect you'd do better to fire up the debugger. The one in MSVC is pretty easy to use. Put a breakpoint in the appropriate subroutine.
|
![]() |
![]() |
![]() |
#146 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,960
Donated: $60
![]() |
Agreed - that's what I'd be doing now. In fact, it is what I'm doing for my tragically buggy pathfinding algorithm...
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#147 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,454
Donated: $40
![]() |
Whoops, forgot which thread I was replying to. But even gdb is better than blind guesses
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[PosChengband] Making Realms Questions | riftor_77 | Development | 5 | August 4, 2014 12:24 |
Spellbooks as artifacts | TJS | Vanilla | 48 | July 29, 2010 05:12 |
Sangband and spell realms | Malak Darkhunter | Variants | 21 | March 18, 2009 04:03 |
Spellbooks | curinor | Variants | 3 | April 20, 2008 13:38 |
Spellbooks | curinor | Vanilla | 1 | April 19, 2008 22:07 |