Modding Mangband question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheHairyOne
    Apprentice
    • Mar 2016
    • 50

    Modding Mangband question

    Anyone know where in the source code it checks if a UNIQUE has been killed before and then decides if loot should drop. I need to disable this check until I can fix the code to properly handle UNIQUE respawns in my variant.

    EDIT: Heck...where in the code is loot dropping handled in general. Ie, you kill a monster....now what does it do to generate the loot?
    Last edited by TheHairyOne; May 1, 2016, 18:07.
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    #2
    In xtra2.c, check mon_take_hit():

    Code:
        /* Killing an unique multiple times is cheezy! */
        bool cheeze = ((r_ptr->flags1 & RF1_UNIQUE) && p_ptr->r_killed[m_ptr->r_idx]);
    Just change that to "FALSE" and uniques will give xp and drop loot every time.
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

    Comment

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