![]() |
#1 |
Apprentice
Join Date: Mar 2016
Posts: 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 at 19:07. |
![]() |
![]() |
![]() |
#2 |
Prophet
Join Date: Apr 2008
Posts: 2,832
![]() |
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]);
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant! |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Come over to Mangband | Arj | Vanilla | 46 | November 29, 2018 10:40 |
How do I heal my friest in Mangband 1.1.2? | Soul | Variants | 5 | April 12, 2016 11:17 |
MAngband 1.1.2 client | PowerWyrm | Variants | 0 | January 13, 2016 20:10 |
Modding for beginner? | Zambaku | Development | 3 | June 11, 2010 17:58 |
[MAngband] Problem reaching mangband.org | PowerWyrm | Variants | 3 | April 4, 2008 13:38 |