* Cleaned some remaining Exile 3 dialogs (Ishad Nha)
* Added a way to force kill the party with the Kill node (if ex1b is set to 2, then force kill. Editor node text updated.) * Implemented Home, Page Up/Down and End for diagonal movement (a side effect is that the Keypad diagonal movement is now working with either Numlock on or off). That should help with keyboard missing numkeypad. Chokboyz git-svn-id: http://openexile.googlecode.com/svn/trunk@137 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -17,23 +17,30 @@
|
||||
void pc_record_type::kill(short type)
|
||||
{
|
||||
short i = 24;
|
||||
bool dummy, no_save = false;
|
||||
bool dummy, no_save = false, no_luck = false;
|
||||
location item_loc;
|
||||
|
||||
if (type >= 10)
|
||||
if (type >= 20)
|
||||
{
|
||||
type -= 10;
|
||||
no_save = true;
|
||||
}
|
||||
if(type >= 10)
|
||||
{
|
||||
type -= 10;
|
||||
no_luck = true;
|
||||
}
|
||||
|
||||
if(no_save == false){
|
||||
if (type != 4)
|
||||
i = hasAbilEquip(48); //check if has life saving items
|
||||
else
|
||||
i = hasAbilEquip(49); //check if has protection vs petrification items
|
||||
}
|
||||
|
||||
short which_pc = getNum();
|
||||
|
||||
if ((no_save == false) && (type != 0) && (skills[SKILL_LUCK] > 0) &&
|
||||
if ((no_luck == false) && (type != 0) && (skills[SKILL_LUCK] > 0) &&
|
||||
(get_ran(1,0,100) < hit_chance[skills[SKILL_LUCK]])) {
|
||||
add_string_to_buf(" But you luck out! ");
|
||||
cur_health = 0;
|
||||
|
Reference in New Issue
Block a user