Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old May 1, 2016, 18:02   #1
TheHairyOne
Apprentice
 
Join Date: Mar 2016
Posts: 50
TheHairyOne is on a distinguished road
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 18:07.
TheHairyOne is offline   Reply With Quote
Old May 1, 2016, 20:27   #2
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,786
PowerWyrm is on a distinguished road
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 http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Come over to Mangband Arj Vanilla 46 November 29, 2018 09:40
How do I heal my friest in Mangband 1.1.2? Soul Variants 5 April 12, 2016 10:17
MAngband 1.1.2 client PowerWyrm Variants 0 January 13, 2016 19:10
Modding for beginner? Zambaku Development 3 June 11, 2010 16:58
[MAngband] Problem reaching mangband.org PowerWyrm Variants 3 April 4, 2008 12:38


All times are GMT +1. The time now is 09:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.