Mercurial > mm7
comparison Player.cpp @ 1346:1434b36f4bdb
Player::_43EEF3 renamed to NothingOrJustBlastersEquipped
author | Grumpy7 |
---|---|
date | Fri, 12 Jul 2013 23:07:14 +0200 |
parents | d9e4c0bbb2d2 |
children | 84db43e7db93 |
comparison
equal
deleted
inserted
replaced
1329:27a699abee51 | 1346:1434b36f4bdb |
---|---|
233 } | 233 } |
234 | 234 |
235 | 235 |
236 | 236 |
237 //----- (0043EEF3) -------------------------------------------------------- | 237 //----- (0043EEF3) -------------------------------------------------------- |
238 bool Player::_43EEF3() | 238 bool Player::NothingOrJustBlastersEquipped() |
239 { | 239 { |
240 signed int item_idx; // esi@1 | 240 signed int item_idx; // esi@1 |
241 signed int item_id; // esi@1 | 241 signed int item_id; // esi@1 |
242 for (int i=0; i<16;++i) | 242 for (int i = 0; i < 16; ++i) |
243 { | 243 { |
244 item_idx=pEquipment.pIndices[i]; | 244 item_idx = pEquipment.pIndices[i]; |
245 if (item_idx) | 245 if (item_idx) |
246 { | 246 { |
247 item_id=pOwnItems[item_idx-1].uItemID; | 247 item_id = pOwnItems[item_idx - 1].uItemID; |
248 if (item_id!=64 && item_id!= 65 ) //blaster& blaster rifle | 248 if ( item_id != 64 && item_id != 65 ) //blaster& blaster rifle |
249 return false; | 249 return false; |
250 } | 250 } |
251 } | 251 } |
252 return true; | 252 return true; |
253 } | 253 } |
254 | 254 |
255 | 255 |
256 | 256 |
257 | 257 |
258 //----- (004B8040) -------------------------------------------------------- | 258 //----- (004B8040) -------------------------------------------------------- |
422 | 422 |
423 if ( this->sHealth < GetMaxHealth() || this->sMana < GetMaxMana() ) | 423 if ( this->sHealth < GetMaxHealth() || this->sMana < GetMaxMana() ) |
424 { | 424 { |
425 return 1; | 425 return 1; |
426 } | 426 } |
427 else if (GetMajorConditionIdx() == Condition_Zombie) | |
428 { | |
429 if ((v2 == 78 || v2 == 81 || v2 == 82)) | |
430 { | |
431 return 1; | |
432 } | |
433 else | |
434 { | |
435 return 0; | |
436 } | |
437 } | |
427 else if (GetMajorConditionIdx() == Condition_Good) | 438 else if (GetMajorConditionIdx() == Condition_Good) |
428 { | |
429 return 0; | |
430 } | |
431 else if (GetMajorConditionIdx() == Condition_Zombie && (v2 == 78 || v2 == 81 || v2 == 82)) | |
432 { | 439 { |
433 return 0; | 440 return 0; |
434 } | 441 } |
435 else | 442 else |
436 { | 443 { |
982 return 0; | 989 return 0; |
983 } | 990 } |
984 if ( uItemID != 604 ) // | 991 if ( uItemID != 604 ) // |
985 // if (uItemID == 532) // item073 Эльфийская Кольчуга артефакт, эльф | 992 // if (uItemID == 532) // item073 Эльфийская Кольчуга артефакт, эльф |
986 return 1; | 993 return 1; |
987 v5 = _43EEF3() == 0; | 994 v5 = NothingOrJustBlastersEquipped() == 0; |
988 goto LABEL_23; | 995 goto LABEL_23; |
989 } | 996 } |
990 v2 = GetRace() == 3; // | 997 v2 = GetRace() == 3; // |
991 // if (uItemID == 533) // item113 Кованые Латные Рукавицы артефакт, гном | 998 // if (uItemID == 533) // item113 Кованые Латные Рукавицы артефакт, гном |
992 } | 999 } |