Question regarding character view code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CJNyfalt
    Swordsman
    • May 2007
    • 289

    Question regarding character view code

    I want to tweak the character view code to allow for characters with infravision to see dungeon features without light, while still not allowing the character to read.

    Would changing:
    radius = p_ptr->cur_lite;
    to
    radius = MAX(p_ptr->cur_lite, p_ptr->see_infra);
    in update_view in cave.c do the job, or is there something I'm missing?
  • CJNyfalt
    Swordsman
    • May 2007
    • 289

    #2
    The answer is yes, something is missing.

    I needed to update the no_lite function no check for CAVE_GLOW instead of CAVE_SEEN when light radius is 0 or smaller.

    I hope that I got it right, and there's no other hidden gotcha.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎