World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. исходные тексты.
|
enum | PLAYER_BUFFS {
PLAYER_BUFF_RESIST_AIR = 0,
PLAYER_BUFF_BLESS = 1,
PLAYER_BUFF_RESIST_BODY = 2,
PLAYER_BUFF_RESIST_EARTH = 3,
PLAYER_BUFF_FATE = 4,
PLAYER_BUFF_RESIST_FIRE = 5,
PLAYER_BUFF_HAMMERHANDS = 6,
PLAYER_BUFF_HASTE = 7,
PLAYER_BUFF_HEROISM = 8,
PLAYER_BUFF_RESIST_MIND = 9,
PLAYER_BUFF_PAIN_REFLECTION = 10,
PLAYER_BUFF_PRESERVATION = 11,
PLAYER_BUFF_REGENERATION = 12,
PLAYER_BUFF_SHIELD = 13,
PLAYER_BUFF_STONESKIN = 14,
PLAYER_BUFF_ACCURACY = 15,
PLAYER_BUFF_ENDURANCE = 16,
PLAYER_BUFF_INTELLIGENCE = 17,
PLAYER_BUFF_LUCK = 18,
PLAYER_BUFF_STRENGTH = 19,
PLAYER_BUFF_WILLPOWER = 20,
PLAYER_BUFF_SPEED = 21,
PLAYER_BUFF_RESIST_WATER = 22,
PLAYER_BUFF_WATER_WALK = 23
} |
|
enum | PlayerSpeech {
SPEECH_1 = 1,
SPEECH_2 = 2,
SPEECH_3 = 3,
SPEECH_4 = 4,
SPEECH_5 = 5,
SPEECH_6 = 6,
SPEECH_7 = 7,
SPEECH_8 = 8,
SPEECH_9 = 9,
SPEECH_10 = 10,
SPEECH_11 = 11,
SPEECH_12 = 12,
SPEECH_CantRestHere = 13,
SPEECH_14 = 14,
SPEECH_NoRoom = 15,
SPEECH_DO_POTION_FINE = 16,
SPEECH_17 = 17,
SPEECH_18 = 18,
SPEECH_19 = 19,
SPEECH_20 = 20,
SPEECH_21 = 21,
SPEECH_GoodDay = 22,
SPEECH_GoodEvening = 23,
SPEECH_24 = 24,
SPEECH_25 = 25,
SPEECH_26 = 26,
SPEECH_27 = 27,
SPEECH_28 = 28,
SPEECH_29 = 29,
SPEECH_30 = 30,
SPEECH_31 = 31,
SPEECH_32 = 32,
SPEECH_33 = 33,
SPEECH_34 = 34,
SPEECH_35 = 35,
SPEECH_36 = 36,
SPEECH_37 = 37,
SPEECH_NotEnoughGold = 38,
SPEECH_39 = 39,
SPEECH_40 = 40,
SPEECH_41 = 41,
SPEECH_42 = 42,
SPEECH_43 = 43,
SPEECH_44 = 44,
SPEECH_45 = 45,
SPEECH_46 = 46,
SPEECH_47 = 47,
SPEECH_48 = 48,
SPEECH_49 = 49,
SPEECH_50 = 50,
SPEECH_51 = 51,
SPEECH_52 = 52,
SPEECH_53 = 53,
SPEECH_54 = 54,
SPEECH_55 = 55,
SPEECH_56 = 56,
SPEECH_57 = 57,
SPEECH_58 = 58,
SPEECH_59 = 59,
SPEECH_60 = 60,
SPEECH_61 = 61,
SPEECH_62 = 62,
SPEECH_63 = 63,
SPEECH_64 = 64,
SPEECH_Yell = 65,
SPEECH_Falling_scream = 66,
SPEECH_67 = 67,
SPEECH_68 = 68,
SPEECH_69 = 69,
SPEECH_70 = 70,
SPEECH_CarriageReady = 71,
SPEECH_SetSail = 72,
SPEECH_73 = 73,
SPEECH_74 = 74,
SPEECH_75 = 75,
SPEECH_76 = 76,
SPEECH_77 = 77,
SPEECH_78 = 78,
SPEECH_79 = 79,
SPEECH_80 = 80,
SPEECH_81 = 81,
SPEECH_82 = 82,
SPEECH_83 = 83,
SPEECH_84 = 84,
SPEECH_85 = 85,
SPEECH_86 = 86,
SPEECH_87 = 87,
SPEECH_88 = 88,
SPEECH_89 = 89,
SPEECH_90 = 90,
SPEECH_91 = 91,
SPEECH_92 = 92,
SPEECH_93 = 93,
SPEECH_94 = 94,
SPEECH_95 = 95,
SPEECH_96 = 96,
SPEECH_97 = 97,
SPEECH_98 = 98,
SPEECH_99 = 99,
SPEECH_100 = 100,
SPEECH_101 = 101,
SPEECH_PickMe = 102,
SPEECH_103 = 103,
SPEECH_IDENTIFY_MONSTER_WEAKER = 104,
SPEECH_IDENTIFY_MONSTER_STRONGER = 105,
SPEECH_IDENTIFY_MONSTER_106 = 106,
SPEECH_107 = 107,
SPEECH_108 = 108,
SPEECH_109 = 109,
SPEECH_110 = 110
} |
|
enum | CHARACTER_RACE { CHARACTER_RACE_HUMAN = 0,
CHARACTER_RACE_ELF = 1,
CHARACTER_RACE_GOBLIN = 2,
CHARACTER_RACE_DWARF = 3
} |
|
enum | PLAYER_SKILL_TYPE : signed __int8 {
PLAYER_SKILL_STAFF = 0,
PLAYER_SKILL_SWORD = 1,
PLAYER_SKILL_DAGGER = 2,
PLAYER_SKILL_AXE = 3,
PLAYER_SKILL_SPEAR = 4,
PLAYER_SKILL_BOW = 5,
PLAYER_SKILL_MACE = 6,
PLAYER_SKILL_BLASTER = 7,
PLAYER_SKILL_SHIELD = 8,
PLAYER_SKILL_LEATHER = 9,
PLAYER_SKILL_CHAIN = 10,
PLAYER_SKILL_PLATE = 11,
PLAYER_SKILL_FIRE = 12,
PLAYER_SKILL_AIR = 13,
PLAYER_SKILL_WATER = 14,
PLAYER_SKILL_EARTH = 15,
PLAYER_SKILL_SPIRIT = 16,
PLAYER_SKILL_MIND = 17,
PLAYER_SKILL_BODY = 18,
PLAYER_SKILL_LIGHT = 19,
PLAYER_SKILL_DARK = 20,
PLAYER_SKILL_ITEM_ID = 21,
PLAYER_SKILL_MERCHANT = 22,
PLAYER_SKILL_REPAIR = 23,
PLAYER_SKILL_BODYBUILDING = 24,
PLAYER_SKILL_MEDITATION = 25,
PLAYER_SKILL_PERCEPTION = 26,
PLAYER_SKILL_DIPLOMACY = 27,
PLAYER_SKILL_TIEVERY = 28,
PLAYER_SKILL_TRAP_DISARM = 29,
PLAYER_SKILL_DODGE = 30,
PLAYER_SKILL_UNARMED = 31,
PLAYER_SKILL_MONSTER_ID = 32,
PLAYER_SKILL_ARMSMASTER = 33,
PLAYER_SKILL_STEALING = 34,
PLAYER_SKILL_ALCHEMY = 35,
PLAYER_SKILL_LEARNING = 36,
PLAYER_SKILL_CLUB = 37,
PLAYER_SKILL_MISC = 38,
PLAYER_SKILL_INVALID = -1
} |
|
enum | PLAYER_CLASS_TYPE : unsigned __int8 {
PLAYER_CLASS_KNIGHT = 0,
PLAYER_CLASS_CHEVALIER = 1,
PLAYER_CLASS_CHAMPION = 2,
PLAYER_CLASS_BLACK_KNIGHT = 3,
PLAYER_CLASS_THEIF = 4,
PLAYER_CLASS_ROGUE = 5,
PLAYER_CLASS_SPY = 6,
PLAYER_CLASS_ASSASSIN = 7,
PLAYER_CLASS_MONK = 8,
PLAYER_CLASS_INITIATE = 9,
PLAYER_CLASS_MASTER = 10,
PLAYER_CLASS_NINJA = 11,
PLAYER_CLASS_PALADIN = 12,
PLAYER_CLASS_CRUSADER = 13,
PLAYER_CLASS_HERO = 14,
PLAYER_CLASS_VILLIAN = 15,
PLAYER_CLASS_ARCHER = 16,
PLAYER_CLASS_WARRIOR_MAGE = 17,
PLAYER_CLASS_MASTER_ARCHER = 18,
PLAYER_CLASS_SNIPER = 19,
PLAYER_CLASS_RANGER = 20,
PLAYER_CLASS_HUNTER = 21,
PLAYER_CLASS_RANGER_LORD = 22,
PLAYER_CLASS_BOUNTY_HUNTER = 23,
PLAYER_CLASS_CLERIC = 24,
PLAYER_CLASS_PRIEST = 25,
PLAYER_CLASS_PRIEST_OF_SUN = 26,
PLAYER_CLASS_PRIEST_OF_MOON = 27,
PLAYER_CLASS_DRUID = 28,
PLAYER_CLASS_GREAT_DRUID = 29,
PLAYER_CLASS_ARCH_DRUID = 30,
PLAYER_CLASS_WARLOCK = 31,
PLAYER_CLASS_SORCERER = 32,
PLAYER_CLASS_WIZARD = 33,
PLAYER_CLASS_ARCHMAGE = 34,
PLAYER_CLASS_LICH = 35
} |
|
enum | CHARACTER_EXPRESSION_ID : unsigned __int16 {
CHARACTER_EXPRESSION_INVALID = 0,
CHARACTER_EXPRESSION_1 = 1,
CHARACTER_EXPRESSION_CURSED = 2,
CHARACTER_EXPRESSION_WEAK = 3,
CHARACTER_EXPRESSION_SLEEP = 4,
CHARACTER_EXPRESSION_FEAR = 5,
CHARACTER_EXPRESSION_DRUNK = 6,
CHARACTER_EXPRESSION_INSANE = 7,
CHARACTER_EXPRESSION_POISONED = 8,
CHARACTER_EXPRESSION_DISEASED = 9,
CHARACTER_EXPRESSION_PARALYZED = 10,
CHARACTER_EXPRESSION_UNCONCIOUS = 11,
CHARACTER_EXPRESSION_PERTIFIED = 12,
CHARACTER_EXPRESSION_13 = 13,
CHARACTER_EXPRESSION_14 = 14,
CHARACTER_EXPRESSION_15 = 15,
CHARACTER_EXPRESSION_16 = 16,
CHARACTER_EXPRESSION_17 = 17,
CHARACTER_EXPRESSION_18 = 18,
CHARACTER_EXPRESSION_19 = 19,
CHARACTER_EXPRESSION_20 = 20,
CHARACTER_EXPRESSION_21 = 21,
CHARACTER_EXPRESSION_22 = 22,
CHARACTER_EXPRESSION_23 = 23,
CHARACTER_EXPRESSION_24 = 24,
CHARACTER_EXPRESSION_25 = 25,
CHARACTER_EXPRESSION_26 = 26,
CHARACTER_EXPRESSION_27 = 27,
CHARACTER_EXPRESSION_28 = 28,
CHARACTER_EXPRESSION_29 = 29,
CHARACTER_EXPRESSION_30 = 30,
CHARACTER_EXPRESSION_31 = 31,
CHARACTER_EXPRESSION_32 = 32,
CHARACTER_EXPRESSION_33 = 33,
CHARACTER_EXPRESSION_DMGRECVD_MINOR = 34,
CHARACTER_EXPRESSION_DMGRECVD_MODERATE = 35,
CHARACTER_EXPRESSION_DMGRECVD_MAJOR = 36,
CHARACTER_EXPRESSION_37 = 37,
CHARACTER_EXPRESSION_38 = 38,
CHARACTER_EXPRESSION_39 = 39,
CHARACTER_EXPRESSION_SCARED = 46,
CHARACTER_EXPRESSION_54 = 54,
CHARACTER_EXPRESSION_55 = 55,
CHARACTER_EXPRESSION_56 = 56,
CHARACTER_EXPRESSION_57 = 57,
CHARACTER_EXPRESSION_FALLING = 58,
CHARACTER_EXPRESSION_DEAD = 98,
CHARACTER_EXPRESSION_ERADICATED = 99
} |
|
enum | PLAYER_SEX : uint8_t { SEX_MALE = 0,
SEX_FEMALE = 1
} |
|
◆ PLAYER_BUFFS
Элементы перечислений |
---|
PLAYER_BUFF_RESIST_AIR | |
PLAYER_BUFF_BLESS | |
PLAYER_BUFF_RESIST_BODY | |
PLAYER_BUFF_RESIST_EARTH | |
PLAYER_BUFF_FATE | |
PLAYER_BUFF_RESIST_FIRE | |
PLAYER_BUFF_HAMMERHANDS | |
PLAYER_BUFF_HASTE | |
PLAYER_BUFF_HEROISM | |
PLAYER_BUFF_RESIST_MIND | |
PLAYER_BUFF_PAIN_REFLECTION | |
PLAYER_BUFF_PRESERVATION | |
PLAYER_BUFF_REGENERATION | |
PLAYER_BUFF_SHIELD | |
PLAYER_BUFF_STONESKIN | |
PLAYER_BUFF_ACCURACY | |
PLAYER_BUFF_ENDURANCE | |
PLAYER_BUFF_INTELLIGENCE | |
PLAYER_BUFF_LUCK | |
PLAYER_BUFF_STRENGTH | |
PLAYER_BUFF_WILLPOWER | |
PLAYER_BUFF_SPEED | |
PLAYER_BUFF_RESIST_WATER | |
PLAYER_BUFF_WATER_WALK | |
См. определение в файле Player.h строка 13
◆ PlayerSpeech
Элементы перечислений |
---|
SPEECH_1 | |
SPEECH_2 | |
SPEECH_3 | |
SPEECH_4 | |
SPEECH_5 | |
SPEECH_6 | |
SPEECH_7 | |
SPEECH_8 | |
SPEECH_9 | |
SPEECH_10 | |
SPEECH_11 | |
SPEECH_12 | |
SPEECH_CantRestHere | |
SPEECH_14 | |
SPEECH_NoRoom | |
SPEECH_DO_POTION_FINE | |
SPEECH_17 | |
SPEECH_18 | |
SPEECH_19 | |
SPEECH_20 | |
SPEECH_21 | |
SPEECH_GoodDay | |
SPEECH_GoodEvening | |
SPEECH_24 | |
SPEECH_25 | |
SPEECH_26 | |
SPEECH_27 | |
SPEECH_28 | |
SPEECH_29 | |
SPEECH_30 | |
SPEECH_31 | |
SPEECH_32 | |
SPEECH_33 | |
SPEECH_34 | |
SPEECH_35 | |
SPEECH_36 | |
SPEECH_37 | |
SPEECH_NotEnoughGold | |
SPEECH_39 | |
SPEECH_40 | |
SPEECH_41 | |
SPEECH_42 | |
SPEECH_43 | |
SPEECH_44 | |
SPEECH_45 | |
SPEECH_46 | |
SPEECH_47 | |
SPEECH_48 | |
SPEECH_49 | |
SPEECH_50 | |
SPEECH_51 | |
SPEECH_52 | |
SPEECH_53 | |
SPEECH_54 | |
SPEECH_55 | |
SPEECH_56 | |
SPEECH_57 | |
SPEECH_58 | |
SPEECH_59 | |
SPEECH_60 | |
SPEECH_61 | |
SPEECH_62 | |
SPEECH_63 | |
SPEECH_64 | |
SPEECH_Yell | |
SPEECH_Falling_scream | |
SPEECH_67 | |
SPEECH_68 | |
SPEECH_69 | |
SPEECH_70 | |
SPEECH_CarriageReady | |
SPEECH_SetSail | |
SPEECH_73 | |
SPEECH_74 | |
SPEECH_75 | |
SPEECH_76 | |
SPEECH_77 | |
SPEECH_78 | |
SPEECH_79 | |
SPEECH_80 | |
SPEECH_81 | |
SPEECH_82 | |
SPEECH_83 | |
SPEECH_84 | |
SPEECH_85 | |
SPEECH_86 | |
SPEECH_87 | |
SPEECH_88 | |
SPEECH_89 | |
SPEECH_90 | |
SPEECH_91 | |
SPEECH_92 | |
SPEECH_93 | |
SPEECH_94 | |
SPEECH_95 | |
SPEECH_96 | |
SPEECH_97 | |
SPEECH_98 | |
SPEECH_99 | |
SPEECH_100 | |
SPEECH_101 | |
SPEECH_PickMe | |
SPEECH_103 | |
SPEECH_IDENTIFY_MONSTER_WEAKER | |
SPEECH_IDENTIFY_MONSTER_STRONGER | |
SPEECH_IDENTIFY_MONSTER_106 | |
SPEECH_107 | |
SPEECH_108 | |
SPEECH_109 | |
SPEECH_110 | |
См. определение в файле Player.h строка 46
◆ CHARACTER_RACE
Элементы перечислений |
---|
CHARACTER_RACE_HUMAN | |
CHARACTER_RACE_ELF | |
CHARACTER_RACE_GOBLIN | |
CHARACTER_RACE_DWARF | |
См. определение в файле Player.h строка 160
◆ PLAYER_SKILL_TYPE
Элементы перечислений |
---|
PLAYER_SKILL_STAFF | |
PLAYER_SKILL_SWORD | |
PLAYER_SKILL_DAGGER | |
PLAYER_SKILL_AXE | |
PLAYER_SKILL_SPEAR | |
PLAYER_SKILL_BOW | |
PLAYER_SKILL_MACE | |
PLAYER_SKILL_BLASTER | |
PLAYER_SKILL_SHIELD | |
PLAYER_SKILL_LEATHER | |
PLAYER_SKILL_CHAIN | |
PLAYER_SKILL_PLATE | |
PLAYER_SKILL_FIRE | |
PLAYER_SKILL_AIR | |
PLAYER_SKILL_WATER | |
PLAYER_SKILL_EARTH | |
PLAYER_SKILL_SPIRIT | |
PLAYER_SKILL_MIND | |
PLAYER_SKILL_BODY | |
PLAYER_SKILL_LIGHT | |
PLAYER_SKILL_DARK | |
PLAYER_SKILL_ITEM_ID | |
PLAYER_SKILL_MERCHANT | |
PLAYER_SKILL_REPAIR | |
PLAYER_SKILL_BODYBUILDING | |
PLAYER_SKILL_MEDITATION | |
PLAYER_SKILL_PERCEPTION | |
PLAYER_SKILL_DIPLOMACY | |
PLAYER_SKILL_TIEVERY | |
PLAYER_SKILL_TRAP_DISARM | |
PLAYER_SKILL_DODGE | |
PLAYER_SKILL_UNARMED | |
PLAYER_SKILL_MONSTER_ID | |
PLAYER_SKILL_ARMSMASTER | |
PLAYER_SKILL_STEALING | |
PLAYER_SKILL_ALCHEMY | |
PLAYER_SKILL_LEARNING | |
PLAYER_SKILL_CLUB | |
PLAYER_SKILL_MISC | |
PLAYER_SKILL_INVALID | |
См. определение в файле Player.h строка 170
◆ PLAYER_CLASS_TYPE
Элементы перечислений |
---|
PLAYER_CLASS_KNIGHT | |
PLAYER_CLASS_CHEVALIER | |
PLAYER_CLASS_CHAMPION | |
PLAYER_CLASS_BLACK_KNIGHT | |
PLAYER_CLASS_THEIF | |
PLAYER_CLASS_ROGUE | |
PLAYER_CLASS_SPY | |
PLAYER_CLASS_ASSASSIN | |
PLAYER_CLASS_MONK | |
PLAYER_CLASS_INITIATE | |
PLAYER_CLASS_MASTER | |
PLAYER_CLASS_NINJA | |
PLAYER_CLASS_PALADIN | |
PLAYER_CLASS_CRUSADER | |
PLAYER_CLASS_HERO | |
PLAYER_CLASS_VILLIAN | |
PLAYER_CLASS_ARCHER | |
PLAYER_CLASS_WARRIOR_MAGE | |
PLAYER_CLASS_MASTER_ARCHER | |
PLAYER_CLASS_SNIPER | |
PLAYER_CLASS_RANGER | |
PLAYER_CLASS_HUNTER | |
PLAYER_CLASS_RANGER_LORD | |
PLAYER_CLASS_BOUNTY_HUNTER | |
PLAYER_CLASS_CLERIC | |
PLAYER_CLASS_PRIEST | |
PLAYER_CLASS_PRIEST_OF_SUN | |
PLAYER_CLASS_PRIEST_OF_MOON | |
PLAYER_CLASS_DRUID | |
PLAYER_CLASS_GREAT_DRUID | |
PLAYER_CLASS_ARCH_DRUID | |
PLAYER_CLASS_WARLOCK | |
PLAYER_CLASS_SORCERER | |
PLAYER_CLASS_WIZARD | |
PLAYER_CLASS_ARCHMAGE | |
PLAYER_CLASS_LICH | |
См. определение в файле Player.h строка 215
◆ CHARACTER_EXPRESSION_ID
Элементы перечислений |
---|
CHARACTER_EXPRESSION_INVALID | |
CHARACTER_EXPRESSION_1 | |
CHARACTER_EXPRESSION_CURSED | |
CHARACTER_EXPRESSION_WEAK | |
CHARACTER_EXPRESSION_SLEEP | |
CHARACTER_EXPRESSION_FEAR | |
CHARACTER_EXPRESSION_DRUNK | |
CHARACTER_EXPRESSION_INSANE | |
CHARACTER_EXPRESSION_POISONED | |
CHARACTER_EXPRESSION_DISEASED | |
CHARACTER_EXPRESSION_PARALYZED | |
CHARACTER_EXPRESSION_UNCONCIOUS | |
CHARACTER_EXPRESSION_PERTIFIED | |
CHARACTER_EXPRESSION_13 | |
CHARACTER_EXPRESSION_14 | |
CHARACTER_EXPRESSION_15 | |
CHARACTER_EXPRESSION_16 | |
CHARACTER_EXPRESSION_17 | |
CHARACTER_EXPRESSION_18 | |
CHARACTER_EXPRESSION_19 | |
CHARACTER_EXPRESSION_20 | |
CHARACTER_EXPRESSION_21 | |
CHARACTER_EXPRESSION_22 | |
CHARACTER_EXPRESSION_23 | |
CHARACTER_EXPRESSION_24 | |
CHARACTER_EXPRESSION_25 | |
CHARACTER_EXPRESSION_26 | |
CHARACTER_EXPRESSION_27 | |
CHARACTER_EXPRESSION_28 | |
CHARACTER_EXPRESSION_29 | |
CHARACTER_EXPRESSION_30 | |
CHARACTER_EXPRESSION_31 | |
CHARACTER_EXPRESSION_32 | |
CHARACTER_EXPRESSION_33 | |
CHARACTER_EXPRESSION_DMGRECVD_MINOR | |
CHARACTER_EXPRESSION_DMGRECVD_MODERATE | |
CHARACTER_EXPRESSION_DMGRECVD_MAJOR | |
CHARACTER_EXPRESSION_37 | |
CHARACTER_EXPRESSION_38 | |
CHARACTER_EXPRESSION_39 | |
CHARACTER_EXPRESSION_SCARED | |
CHARACTER_EXPRESSION_54 | |
CHARACTER_EXPRESSION_55 | |
CHARACTER_EXPRESSION_56 | |
CHARACTER_EXPRESSION_57 | |
CHARACTER_EXPRESSION_FALLING | |
CHARACTER_EXPRESSION_DEAD | |
CHARACTER_EXPRESSION_ERADICATED | |
См. определение в файле Player.h строка 341
◆ PLAYER_SEX
Элементы перечислений |
---|
SEX_MALE | |
SEX_FEMALE | |
См. определение в файле Player.h строка 399
◆ DamagePlayerFromMonster()
void DamagePlayerFromMonster |
( |
unsigned int |
uObjID, |
|
|
int |
a2, |
|
|
struct Vec3_int_ * |
pPos, |
|
|
signed int |
a4 |
|
) |
| |
См. определение в файле Player.cpp строка 6928
6933 signed int recvdMagicDmg;
6935 int healthBeforeRecvdDamage;
6936 unsigned int uActorID;
6938 uActorID = PID_ID(uObjID);
6939 int pidtype = PID_TYPE(uObjID);
6947 actorPtr = &
pActors[uActorID];
6948 healthBeforeRecvdDamage = playerPtr->
sHealth;
6949 if (PID_TYPE(uObjID) != 3 || !actorPtr->
ActorHitOrMiss(playerPtr))
6962 if (!equippedArmor || equippedArmor->
IsBroken() ||
6965 int randVal = rand() % 4;
6980 Error(
"Unexpected sound value");
6983 int randVal = rand() % 4;
6998 Error(
"Unexpected sound value");
7006 dmgToReceive /= spellPower;
7010 switch (dmgSource) {
7038 int actorState = actorPtr->
uAIState;
7039 if (actorState !=
Dying && actorState !=
Dead) {
7043 if (reflectedDamage >= 0) {
7053 !
engine->config->NoBloodsplats()) {
7061 (
float)splatRadius, 0, 0);
7072 if (rand() % 100 < 20)
7080 if (!
engine->config->NoDamage() &&
7096 if (yellThreshold < playerPtr->sHealth &&
7097 yellThreshold >= healthBeforeRecvdDamage &&
7107 if (uActorType == 2) {
7112 int activePlayerCounter = 0;
7113 for (
int i = 1; i <= 4; i++) {
7115 v72[activePlayerCounter] = i;
7116 activePlayerCounter++;
7119 if (activePlayerCounter) {
7122 ->
pPlayers[v72[rand() % activePlayerCounter] -
7146 }
else if (uActorType == 3) {
7151 unsigned __int16 spriteType = v37->
uType;
7153 if (v37->
uType == 545) {
7163 }
else if (spriteType == 555 || spriteType == 510 ||
7164 spriteType == 500 || spriteType == 515 ||
7165 spriteType == 505 || spriteType == 530 ||
7166 spriteType == 525 || spriteType == 520 ||
7167 spriteType == 535 || spriteType == 540) {
7199 if (spellPower > 0) dmgToReceive /= spellPower;
7202 switch (dmgSource) {
7230 unsigned __int16 actorState = actorPtr->
uAIState;
7231 if (actorState !=
Dying && actorState !=
Dead) {
7235 if (recvdMagicDmg >= 0) {
7242 !
engine->config->NoBloodsplats()) {
7250 (
float)splatRadius, 0, 0);
7261 if (rand() % 100 < 20)
7273 !
engine->config->NoDamage() &&
Перекрестные ссылки _43AFE3_calc_spell_damage(), Actor::_43B3E0_CalcDamage(), _4D864C_force_sw_render_rules, __debugbreak(), _A750D8_player_speech_timer, SpellBuff::Active(), ACTOR_BUFF_SHRINK, Actor::ActorHitOrMiss(), DecalBuilder::AddBloodsplat(), Actor::AggroSurroundingPeasants(), Actor::AI_Stun(), Actor::ApplyFineForKillingPeasant(), MonsterInfo::bQuestMonster, ViewingParams::bRedrawGameUI, Party::bTurnBasedModeOn, Actor::CalcMagicalDamageToActor(), Dead, decal_builder, Actor::Die(), Dying, engine, EQUIP_ARMOUR, EQUIP_SHIELD, EQUIP_SINGLE_HANDED, EQUIP_TWO_HANDED, MonsterInfo::field_3C_some_special_attack, flt_6BE3A4_debug_recmod1, Localization::FormatString(), GameUI_StatusBar_OnEvent(), Player::GetActualEndurance(), Player::GetActualSkillLevel(), Player::GetActualSkillMastery(), Player::GetArmorItem(), ItemGen::GetItemEquipType(), Player::GetMainHandItem(), Player::GetMaxHealth(), Player::GetOffHandItem(), Player::GetParameterBonus(), ItemGen::GetPlayerSkillType(), Party::GivePartyExp(), Player::HasEnchantedItemEquipped(), Player::HasItemEquipped(), Log::Info(), ItemGen::IsBroken(), ITEM_ARTIFACT_ELFBANE, ITEM_ARTIFACT_GOVERNORS_ARMOR, ITEM_RELIC_KELEBRIM, localization, logger, OBJECT_Player, Actor::pActorBuffs, pActors, pAudioPlayer, SpellStats::pInfos, MonsterStats::pInfos, PLAYER_BUFF_PAIN_REFLECTION, PLAYER_BUFF_SHIELD, PLAYER_SKILL_CHAIN, PLAYER_SKILL_PLATE, PLAYER_SKILL_SHIELD, PLAYER_SKILL_UNARMED, PlayerSpeechID, AudioPlayer::PlaySound(), Player::PlaySound(), Actor::pMonsterInfo, pMonsterStats, Player::pName, pParty, Player::pPlayerBuffs, pPlayers, Party::pPlayers, pSpellStats, pSpriteObjects, Player::ReceiveDamage(), Player::ReceiveSpecialAttackEffect(), Actor::sCurrentHP, Player::SetRecoveryTime(), Player::sHealth, SPEECH_44, SPEECH_48, SPEECH_51, SPEECH_6, SPELL_BOW_ARROW, SpriteObject::spell_caster_pid, SpriteObject::spell_id, SpriteObject::spell_level, SpriteObject::spell_skill, stru_50C198, Actor::uActorRadius, Actor::uAIState, MonsterInfo::uAttack1Type, MonsterInfo::uAttack2Type, MonsterInfo::uExp, MonsterInfo::uHP, MonsterInfo::uID, ItemGen::uItemID, MonsterInfo::uLevel, SpellBuff::uPower, SpellInfo::uSchool, uSpeakingCharacter, MonsterInfo::uSpecialAttackLevel, MonsterInfo::uSpecialAttackType, MonsterInfo::uSpell1ID, MonsterInfo::uSpell2ID, SpriteObject::uType, viewparams, Actor::vPosition и stru319::which_player_to_attack().
Используется в area_of_effect__damage_evaluate() и sub_43A97E().
◆ IsDwarfPresentInParty()
bool IsDwarfPresentInParty |
( |
bool |
b | ) |
|
◆ ShouldLoadTexturesForRaceAndGender()
bool ShouldLoadTexturesForRaceAndGender |
( |
unsigned int |
_this | ) |
|
◆ PlayerCreation_GetUnspentAttributePointCount()
int PlayerCreation_GetUnspentAttributePointCount |
( |
| ) |
|
◆ CycleCharacter()
int CycleCharacter |
( |
bool |
backwards | ) |
|
◆ SkillToMastery()
unsigned int SkillToMastery |
( |
unsigned int |
skill_value | ) |
|
◆ pPlayers
См. определение в файле Player.cpp строка 46
Используется в stru262_TurnBased::_406457(), Actor::_427102_IsOkToCastSpell(), CastSpellInfoHelpers::_427E01_cast_spell(), _494035_timed_effects__water_walking_damage__etc(), _4B254D_SkillMasteryTeacher(), Actor::AI_SpellAttack(), AlchemyMagicShopWares(), Actor::ApplyFineForKillingPeasant(), ArmorShopWares(), BankDialog(), BLV_ProcessPartyActions(), CharacterUI_DrawPaperdoll(), CharacterUI_LoadPaperdollTextures(), CharacterUI_StatsTab_ShowHint(), ClickNPCTopic(), ContractSelectText(), Player::CreateItemInInventory(), CycleCharacter(), DamagePlayerFromMonster(), DrawSpellDescriptionPopup(), stru262_TurnBased::End(), EnterHouse(), Player::EquipBody(), Application::Game::EventLoop(), EventProcessor(), SpriteObject::ExplosionTraps(), FillAwardsData(), Application::Game::GameLoop(), GameUI_DrawItemInfo(), GameUI_DrawPortraits(), GameUI_InitializeDialogue(), GameUI_OnPlayerPortraitLeftClick(), GameUI_WritePointedObjectStatusString(), GetHouseGoodbyeSpeech(), ItemGen::GetIdentifiedName(), Player::GetPlayerIndex(), OutdoorLocation::GetTravelDestination(), Chest::GrabItem(), GuildDialog(), GUIWindow_Transition::GUIWindow_Transition(), GUIWindow::HouseDialogManager(), HouseUI_CheckIfPlayerCanInteract(), Inventory_ItemPopupAndAlchemy(), LoadSpellbook(), MonsterPopup_Draw(), ODM_ProcessPartyActions(), Engine::OnGameViewportClick(), WinApiWindow::OnOSMenu(), OnPaperdollLeftClick(), OnSelectNPCDialogueOption(), OnSelectShopDialogueOption(), Chest::Open(), GUIWindow_Spellbook::OpenSpellbook(), GUIWindow_Spellbook::OpenSpellbookPage(), PrepareToLoadBLV(), Keyboard::ProcessInputActions(), Chest::PutItemInChest(), Player::ReceiveSpecialAttackEffect(), Rest(), Player::SetCondition(), Player::SetRecoveryTime(), ShopDialogDisplayEquip(), ShopDialogIdentify(), ShopDialogLearn(), ShopDialogRepair(), ShopDialogSellEquip(), ShouldLoadTexturesForRaceAndGender(), ShowPopupShopItem(), stru262_TurnBased::Start(), stru262_TurnBased::StartTurn(), sub_4B1447_party_fine(), sub_4B6478(), TavernDialog(), TempleDialog(), TownHallDialog(), TrainingDialog(), TravelByTransport(), Mouse::UI_OnMouseLeftClick(), UI_OnMouseRightClick(), UIShop_Buy_Identify_Repair(), GUIWindow_Spellbook::Update(), GUIWindow_CharacterRecord::Update(), GUIWindow_Rest::Update(), GUIWindow_Chest::Update(), GUIWindow_Inventory_CastSpell::Update(), Actor::UpdateActorAI(), WeaponShopWares(), WetsuitOff(), WetsuitOn() и stru319::which_player_to_attack().
◆ PlayerSpeechID
int ReceiveSpecialAttackEffect(int attType, struct Actor *pActor)
@ CHARACTER_EXPRESSION_PERTIFIED
void SetRecoveryTime(signed int sRecoveryTime)
struct Vec3_short_ vPosition
@ PLAYER_SKILL_MONSTER_ID
@ CHARACTER_EXPRESSION_17
static void AI_Stun(unsigned int uActorID, signed int edx0, int arg0)
@ PLAYER_CLASS_PRIEST_OF_MOON
@ PLAYER_BUFF_PAIN_REFLECTION
@ CHARACTER_EXPRESSION_30
@ SPEECH_IDENTIFY_MONSTER_STRONGER
@ PLAYER_BUFF_RESIST_MIND
@ PLAYER_CLASS_RANGER_LORD
int GetActualSkillMastery(PLAYER_SKILL_TYPE uSkillType)
@ CHARACTER_EXPRESSION_SCARED
std::array< SpriteObject, MAX_SPRITE_OBJECTS > pSpriteObjects
struct MonsterStats * pMonsterStats
ITEM_EQUIP_TYPE GetItemEquipType()
@ CHARACTER_EXPRESSION_23
int ReceiveDamage(signed int amount, DAMAGE_TYPE dmg_type)
void AddBloodsplat(float x, float y, float z, float r, float g, float b, float radius, int a8, int a9)
@ CHARACTER_EXPRESSION_55
enum PlayerSpeech PlayerSpeechID
void PlaySound(SoundID eSoundID, int pid, unsigned int uNumRepeats, int x, int y, int a7)
@ CHARACTER_EXPRESSION_DMGRECVD_MAJOR
@ CHARACTER_EXPRESSION_16
std::shared_ptr< Engine > engine
@ CHARACTER_EXPRESSION_39
Localization * localization
int16_t field_3C_some_special_attack
@ CHARACTER_EXPRESSION_DEAD
@ CHARACTER_EXPRESSION_SLEEP
int CalcMagicalDamageToActor(DAMAGE_TYPE dmgType, int incomingDmg)
@ CHARACTER_EXPRESSION_INSANE
std::array< Player, 4 > pPlayers
@ CHARACTER_EXPRESSION_33
@ CHARACTER_EXPRESSION_DMGRECVD_MINOR
@ CHARACTER_EXPRESSION_CURSED
bool ActorHitOrMiss(Player *pPlayer)
static void Die(unsigned int uActorID)
@ CHARACTER_EXPRESSION_UNCONCIOUS
NZIArray< struct Player *, 5 > pPlayers
@ PLAYER_BUFF_RESIST_FIRE
ItemGen * GetMainHandItem()
@ SPEECH_IDENTIFY_MONSTER_WEAKER
@ PLAYER_CLASS_ARCH_DRUID
@ CHARACTER_EXPRESSION_13
@ CHARACTER_EXPRESSION_22
static void ApplyFineForKillingPeasant(unsigned int uActorID)
@ PLAYER_SKILL_BODYBUILDING
int which_player_to_attack(struct Actor *pActor)
@ PLAYER_SKILL_PERCEPTION
@ CHARACTER_EXPRESSION_FALLING
@ CHARACTER_EXPRESSION_29
@ CHARACTER_EXPRESSION_38
@ CHARACTER_EXPRESSION_25
@ CHARACTER_EXPRESSION_28
@ CHARACTER_EXPRESSION_WEAK
@ CHARACTER_EXPRESSION_19
@ CHARACTER_EXPRESSION_PARALYZED
void Info(const wchar_t *pFormat,...)
struct ViewingParams * viewparams
@ CHARACTER_EXPRESSION_26
@ PLAYER_CLASS_PRIEST_OF_SUN
@ CHARACTER_EXPRESSION_14
@ PLAYER_SKILL_MEDITATION
unsigned char GetPlayerSkillType()
std::array< Actor, 500 > pActors
@ CHARACTER_EXPRESSION_INVALID
@ CHARACTER_EXPRESSION_56
@ PLAYER_SKILL_TRAP_DISARM
@ CHARACTER_EXPRESSION_DMGRECVD_MODERATE
SPECIAL_ATTACK_TYPE uSpecialAttackType
uint8_t uSpecialAttackLevel
@ CHARACTER_EXPRESSION_32
@ CHARACTER_EXPRESSION_31
@ PLAYER_BUFF_INTELLIGENCE
int GetParameterBonus(int player_parameter)
@ SPEECH_IDENTIFY_MONSTER_106
struct SpellStats * pSpellStats
@ PLAYER_CLASS_MASTER_ARCHER
void GivePartyExp(unsigned int pEXPNum)
@ PLAYER_CLASS_BOUNTY_HUNTER
@ PLAYER_CLASS_BLACK_KNIGHT
char _4D864C_force_sw_render_rules
ItemGen * GetOffHandItem()
@ CHARACTER_EXPRESSION_27
@ CHARACTER_EXPRESSION_DISEASED
static DecalBuilder * decal_builder
static void AggroSurroundingPeasants(unsigned int uActorID, int a2)
bool HasEnchantedItemEquipped(int uEnchantment)
@ PLAYER_BUFF_RESIST_EARTH
@ CHARACTER_EXPRESSION_ERADICATED
float flt_6BE3A4_debug_recmod1
@ CHARACTER_EXPRESSION_18
unsigned int uActiveCharacter
String FormatString(unsigned int index,...) const
@ CHARACTER_EXPRESSION_57
@ PLAYER_CLASS_WARRIOR_MAGE
void __cdecl __debugbreak(void)
int _43B3E0_CalcDamage(signed int dmgSource)
@ PLAYER_BUFF_RESIST_BODY
@ CHARACTER_EXPRESSION_37
@ CHARACTER_EXPRESSION_15
void GameUI_StatusBar_OnEvent(const String &str, unsigned int num_seconds)
@ PLAYER_BUFF_REGENERATION
void PlaySound(PlayerSpeech speech, int a3)
@ CHARACTER_EXPRESSION_54
@ PLAYER_BUFF_RESIST_WATER
AudioPlayer * pAudioPlayer
int GetActualSkillLevel(PLAYER_SKILL_TYPE uSkillType)
@ CHARACTER_EXPRESSION_POISONED
bool HasItemEquipped(ITEM_EQUIP_TYPE uEquipIndex)
@ CHARACTER_EXPRESSION_24
@ PLAYER_BUFF_HAMMERHANDS
unsigned char uDroppedStep
@ PLAYER_SKILL_ARMSMASTER
@ CHARACTER_EXPRESSION_21
int64_t _A750D8_player_speech_timer
struct MonsterInfo pMonsterInfo
@ CHARACTER_EXPRESSION_20
@ PLAYER_BUFF_PRESERVATION
@ CHARACTER_EXPRESSION_DRUNK
@ CHARACTER_EXPRESSION_FEAR
@ ITEM_ARTIFACT_GOVERNORS_ARMOR
std::array< SpellBuff, 24 > pPlayerBuffs
@ PLAYER_CLASS_GREAT_DRUID
PlayerCreation_AttributeProps StatTable[4][7]
int _43AFE3_calc_spell_damage(int spellId, int spellLevel, signed int skillMastery, int currentHp)
struct SpellBuff pActorBuffs[22]