Mercurial > mm7
comparison Player.h @ 1014:a704435d3285
comtinue player cleaning
author | Gloval |
---|---|
date | Sun, 19 May 2013 20:38:49 +0400 |
parents | 9e823ad5eaa6 |
children | 32ec62bbaa2c |
comparison
equal
deleted
inserted
replaced
1012:9e823ad5eaa6 | 1014:a704435d3285 |
---|---|
540 bool CanFitItem(unsigned int uSlot, unsigned int uItemID); | 540 bool CanFitItem(unsigned int uSlot, unsigned int uItemID); |
541 unsigned int FindFreeInventorySlot(); | 541 unsigned int FindFreeInventorySlot(); |
542 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID); | 542 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID); |
543 int HasSkill(unsigned int uSkillType); | 543 int HasSkill(unsigned int uSkillType); |
544 int WearItem(unsigned int uItemID); | 544 int WearItem(unsigned int uItemID); |
545 int AddItem(unsigned int uSlot, unsigned int uItemID); | 545 int AddItem(int uSlot, unsigned int uItemID); |
546 int AddItem2(unsigned int uSlot, ItemGen *Src); | 546 int AddItem2(int uSlot, ItemGen *Src); |
547 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src); | 547 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src); |
548 bool _49298B(ItemGen *a2, int a3, int a4); | 548 int PutItemArInventoryIndex(ItemGen *item, int item_id, int uSlot); |
549 void RemoveItemAtInventoryIndex(unsigned int uSlot); | 549 void RemoveItemAtInventoryIndex(unsigned int uSlot); |
550 bool CanAct(); | 550 bool CanAct(); |
551 bool CanSteal(); | 551 bool CanSteal(); |
552 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID); | 552 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID); |
553 int SetCondition(unsigned int uConditionIdx, int a3); | 553 int SetCondition(unsigned int uConditionIdx, int a3); |
566 int GetBuyingPrice(unsigned int uRealValue, float price_multiplier); | 566 int GetBuyingPrice(unsigned int uRealValue, float price_multiplier); |
567 int GetPriceSell(int uRealValue, float price_multiplier); | 567 int GetPriceSell(int uRealValue, float price_multiplier); |
568 int _4B807C(float a2); | 568 int _4B807C(float a2); |
569 int _4B8040_condition_time(unsigned int uCondition); | 569 int _4B8040_condition_time(unsigned int uCondition); |
570 bool _43EEF3(); | 570 bool _43EEF3(); |
571 void SalesProcess(unsigned int a2, int a3, int _2devent_idx);//0x4BE2DD | 571 void SalesProcess(unsigned int inventory_idnx, int item_index, int _2devent_idx);//0x4BE2DD |
572 bool Recover(signed int a2); | 572 bool Recover(signed int a2); |
573 bool CanCastSpell(unsigned int uRequiredMana); | 573 bool CanCastSpell(unsigned int uRequiredMana); |
574 | 574 |
575 inline bool Weak() {return pConditions[Condition::Condition_Weak] != 0;} | 575 inline bool Weak() {return pConditions[Condition::Condition_Weak] != 0;} |
576 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;} | 576 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;} |
604 __int64 pConditions[20]; | 604 __int64 pConditions[20]; |
605 unsigned __int64 uExperience; | 605 unsigned __int64 uExperience; |
606 char pName[16]; | 606 char pName[16]; |
607 PLAYER_SEX uSex; | 607 PLAYER_SEX uSex; |
608 PLAYER_CLASS_TYPE classType; | 608 PLAYER_CLASS_TYPE classType; |
609 unsigned __int8 uFace; | 609 unsigned __int8 uCurrentFace; |
610 char field_BB; | 610 char field_BB; |
611 unsigned __int16 uMight; | 611 unsigned __int16 uMight; |
612 unsigned __int16 uMightBonus; | 612 unsigned __int16 uMightBonus; |
613 unsigned __int16 uIntelligence; | 613 unsigned __int16 uIntelligence; |
614 unsigned __int16 uIntelligenceBonus; | 614 unsigned __int16 uIntelligenceBonus; |
691 ItemGen pEquippedItems[12]; | 691 ItemGen pEquippedItems[12]; |
692 }; | 692 }; |
693 ItemGen pOwnItems[138]; | 693 ItemGen pOwnItems[138]; |
694 }; | 694 }; |
695 | 695 |
696 | 696 int pInventoryIndices[126]; |
697 int pInventoryIndices[126]; | |
698 __int16 sResFireBase; | 697 __int16 sResFireBase; |
699 __int16 sResAirBase; | 698 __int16 sResAirBase; |
700 __int16 sResWaterBase; | 699 __int16 sResWaterBase; |
701 __int16 sResEarthBase; | 700 __int16 sResEarthBase; |
702 __int16 field_177C; | 701 __int16 field_177C; |
717 __int16 sResBodyBonus; | 716 __int16 sResBodyBonus; |
718 __int16 sResLightBonus; | 717 __int16 sResLightBonus; |
719 __int16 sResDarkBonus; | 718 __int16 sResDarkBonus; |
720 SpellBuff pPlayerBuffs[24]; | 719 SpellBuff pPlayerBuffs[24]; |
721 unsigned int uVoiceID; | 720 unsigned int uVoiceID; |
722 int field_1924; | 721 int uPrevVoiceID; |
723 int field_1928; | 722 int uPrevFace; |
724 int field_192C; | 723 int field_192C; |
725 int field_1930; | 724 int field_1930; |
726 unsigned __int16 uTimeToRecovery; | 725 unsigned __int16 uTimeToRecovery; |
727 char field_1936; | 726 char field_1936; |
728 char field_1937; | 727 char field_1937; |