![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
| INLINE int SraLogic::BuyHits | ( | int | totalRating | ) |
Translates the given total rating into an automatic number of hits This is only possible for *some* skill tests pg. 56
Definition at line 226 of file SraUtility.h.
References AUTO_SUCCESS_DIVISOR.
{
//no dice == no hits
if(totalRating <= 0)
return 0;
return totalRating/AUTO_SUCCESS_DIVISOR;
}
| INLINE float SraLogic::GetAcceptableLossPercentage | ( | ProfessionalRating | professionalRating | ) |
Gets the percentage of troops a given professional rating will lose before calling a group retreat
Definition at line 79 of file SraUtility.h.
References PROFESSIONALRATING_ACCEPTABLELOSSES_ELITE, PROFESSIONALRATING_ACCEPTABLELOSSES_SEMITRAINED, PROFESSIONALRATING_ACCEPTABLELOSSES_TRAINED, and PROFESSIONALRATING_ACCEPTABLELOSSES_UNTRAINED.
Referenced by IsAcceptableLoss().
{
switch(professionalRating)
{
case Untrained: return PROFESSIONALRATING_ACCEPTABLELOSSES_UNTRAINED;
case SemiTrained: return PROFESSIONALRATING_ACCEPTABLELOSSES_SEMITRAINED;
case Trained: return PROFESSIONALRATING_ACCEPTABLELOSSES_TRAINED;
case Elite: return PROFESSIONALRATING_ACCEPTABLELOSSES_ELITE;
}
return PROFESSIONALRATING_ACCEPTABLELOSSES_UNTRAINED;
}
| INLINE int SraLogic::GetAttributeAve | ( | Race | race, |
| Attribute | attribute | ||
| ) |
Get the average value for the given race and attribute NOTE: This is for the average character so Edge, Magic & Resonance returns MIN, Essence returns INITIAL
Definition at line 466 of file SraAttributeUtility.h.
References GetDwarfMaxStart(), GetDwarfMin(), GetElfMaxStart(), GetElfMin(), GetHumanMaxStart(), GetHumanMin(), GetOrkMaxStart(), GetOrkMin(), GetTrollMaxStart(), GetTrollMin(), INITIAL_ESS, MIN_EDGE, MIN_MAGIC, and MIN_RESONANCE.
{
if(attribute == Magic)
return MIN_MAGIC;
else if(attribute == Resonance)
return MIN_RESONANCE;
else if(attribute == Essence)
return INITIAL_ESS;
else if(attribute == Edge)
return MIN_EDGE;
switch(race)
{
case Human : return (GetHumanMaxStart(attribute) + GetHumanMin(attribute))/2;
case Ork : return (GetOrkMaxStart(attribute) + GetOrkMin(attribute))/2;
case Dwarf : return (GetDwarfMaxStart(attribute) + GetDwarfMin(attribute))/2;
case Elf : return (GetElfMaxStart(attribute) + GetElfMin(attribute))/2;
case Troll : return (GetTrollMaxStart(attribute) + GetTrollMin(attribute))/2;
}
return -1;
}
| INLINE int SraLogic::GetAttributeMax | ( | Race | race, |
| Attribute | attribute | ||
| ) |
Gets the maximum attribute rating for the given race & attribute
Definition at line 447 of file SraAttributeUtility.h.
References GetDwarfMax(), GetElfMax(), GetHumanMax(), GetOrkMax(), and GetTrollMax().
{
switch(race)
{
case Human : return GetHumanMax(attribute);
case Ork : return GetOrkMax(attribute);
case Dwarf : return GetDwarfMax(attribute);
case Elf : return GetElfMax(attribute);
case Troll : return GetTrollMax(attribute);
}
return -1;
}
| INLINE int SraLogic::GetAttributeMaxStart | ( | Race | race, |
| Attribute | attribute | ||
| ) |
Gets the starting maximum attribute rating for the given race & attribute
Definition at line 430 of file SraAttributeUtility.h.
References GetDwarfMaxStart(), GetElfMaxStart(), GetHumanMaxStart(), GetOrkMaxStart(), and GetTrollMaxStart().
{
switch(race)
{
case Human : return GetHumanMaxStart(attribute);
case Ork : return GetOrkMaxStart(attribute);
case Dwarf : return GetDwarfMaxStart(attribute);
case Elf : return GetElfMaxStart(attribute);
case Troll : return GetTrollMaxStart(attribute);
}
return -1;
}
| INLINE int SraLogic::GetAttributeMin | ( | Race | race, |
| Attribute | attribute | ||
| ) |
Gets the minimum attribute rating for the given race & attribute
Definition at line 413 of file SraAttributeUtility.h.
References GetDwarfMin(), GetElfMin(), GetHumanMin(), GetOrkMin(), and GetTrollMin().
{
switch(race)
{
case Human : return GetHumanMin(attribute);
case Ork : return GetOrkMin(attribute);
case Dwarf : return GetDwarfMin(attribute);
case Elf : return GetElfMin(attribute);
case Troll : return GetTrollMin(attribute);
}
return -1;
}
| INLINE int SraLogic::GetConcealabilityRating | ( | Concealability | conc | ) |
Gets the numeric adjustment for a given concealability This is applied to attempts by an observer to perceive items Lower is better
Definition at line 112 of file SraUtility.h.
References CONCEALABILITY_BIG, CONCEALABILITY_HUGE, CONCEALABILITY_LARGE, CONCEALABILITY_MEDIUM, CONCEALABILITY_MINISCULE, CONCEALABILITY_SMALL, and CONCEALABILITY_TINY.
{
switch(conc)
{
case Miniscule: return CONCEALABILITY_MINISCULE;
case Tiny: return CONCEALABILITY_TINY;
case Small: return CONCEALABILITY_SMALL;
case Medium: return CONCEALABILITY_MEDIUM;
case Big: return CONCEALABILITY_BIG;
case Large: return CONCEALABILITY_LARGE;
case Huge: return CONCEALABILITY_HUGE;
}
return 0;
}
| INLINE int SraLogic::GetCoverPenalty | ( | Cover | cover | ) |
Translates the Cover enumerated type into a penalty for attackers
Definition at line 64 of file SraUtility.h.
References RANGED_TARGET_GOOD_COVER, RANGED_TARGET_PARTIAL_COVER, and RANGED_TARGET_TOTAL_COVER.
{
switch(cover)
{
case PartialCover: return RANGED_TARGET_PARTIAL_COVER;
case GoodCover: return RANGED_TARGET_GOOD_COVER;
case TotalCover: return RANGED_TARGET_TOTAL_COVER;
default: return 0;
}
}
| INLINE int SraLogic::GetDwarfMax | ( | Attribute | attribute | ) |
Gets the maximum rating a Dwarf may have for a given attribute
Definition at line 230 of file SraAttributeUtility.h.
References DWARF_MAX_AGI, DWARF_MAX_BOD, DWARF_MAX_CHA, DWARF_MAX_INI, DWARF_MAX_INT, DWARF_MAX_LOG, DWARF_MAX_REA, DWARF_MAX_STR, DWARF_MAX_WIL, INITIAL_ESS, MAX_EDGE, MAX_MAGIC, and MAX_RESONANCE.
Referenced by GetAttributeMax().
{
switch(attribute)
{
case Body: return DWARF_MAX_BOD;
case Agility: return DWARF_MAX_AGI;
case Reaction: return DWARF_MAX_REA;
case Strength: return DWARF_MAX_STR;
case Charisma: return DWARF_MAX_CHA;
case Intuition: return DWARF_MAX_INT;
case Logic: return DWARF_MAX_LOG;
case Willpower: return DWARF_MAX_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return DWARF_MAX_INI;
case Edge : return MAX_EDGE;
case Magic : return MAX_MAGIC;
case Resonance : return MAX_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetDwarfMaxStart | ( | Attribute | attribute | ) |
Gets the maximum starting rating a Dwarf may have for a given attribute
Definition at line 205 of file SraAttributeUtility.h.
References DWARF_MAXSTART_AGI, DWARF_MAXSTART_BOD, DWARF_MAXSTART_CHA, DWARF_MAXSTART_INI, DWARF_MAXSTART_INT, DWARF_MAXSTART_LOG, DWARF_MAXSTART_REA, DWARF_MAXSTART_STR, DWARF_MAXSTART_WIL, INITIAL_ESS, MAXSTART_EDGE, MAXSTART_MAGIC, and MAXSTART_RESONANCE.
Referenced by GetAttributeAve(), and GetAttributeMaxStart().
{
switch(attribute)
{
case Body: return DWARF_MAXSTART_BOD;
case Agility: return DWARF_MAXSTART_AGI;
case Reaction: return DWARF_MAXSTART_REA;
case Strength: return DWARF_MAXSTART_STR;
case Charisma: return DWARF_MAXSTART_CHA;
case Intuition: return DWARF_MAXSTART_INT;
case Logic: return DWARF_MAXSTART_LOG;
case Willpower: return DWARF_MAXSTART_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return DWARF_MAXSTART_INI;
case Edge : return MAXSTART_EDGE;
case Magic : return MAXSTART_MAGIC;
case Resonance : return MAXSTART_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetDwarfMin | ( | Attribute | attribute | ) |
Gets the minimum rating a Dwarf may have for a given attribute
Definition at line 180 of file SraAttributeUtility.h.
References DWARF_MIN_AGI, DWARF_MIN_BOD, DWARF_MIN_CHA, DWARF_MIN_INI, DWARF_MIN_INT, DWARF_MIN_LOG, DWARF_MIN_REA, DWARF_MIN_STR, DWARF_MIN_WIL, MIN_EDGE, MIN_ESS, MIN_MAGIC, and MIN_RESONANCE.
Referenced by GetAttributeAve(), and GetAttributeMin().
{
switch(attribute)
{
case Body: return DWARF_MIN_BOD;
case Agility: return DWARF_MIN_AGI;
case Reaction: return DWARF_MIN_REA;
case Strength: return DWARF_MIN_STR;
case Charisma: return DWARF_MIN_CHA;
case Intuition: return DWARF_MIN_INT;
case Logic: return DWARF_MIN_LOG;
case Willpower: return DWARF_MIN_WIL;
case Essence : return MIN_ESS;
case Initiative: return DWARF_MIN_INI;
case Edge : return MIN_EDGE;
case Magic : return MIN_MAGIC;
case Resonance : return MIN_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetElfMax | ( | Attribute | attribute | ) |
Gets the maximum rating a Elf may have for a given attribute
Definition at line 309 of file SraAttributeUtility.h.
References ELF_MAX_AGI, ELF_MAX_BOD, ELF_MAX_CHA, ELF_MAX_INI, ELF_MAX_INT, ELF_MAX_LOG, ELF_MAX_REA, ELF_MAX_STR, ELF_MAX_WIL, INITIAL_ESS, MAX_EDGE, MAX_MAGIC, and MAX_RESONANCE.
Referenced by GetAttributeMax().
{
switch(attribute)
{
case Body: return ELF_MAX_BOD;
case Agility: return ELF_MAX_AGI;
case Reaction: return ELF_MAX_REA;
case Strength: return ELF_MAX_STR;
case Charisma: return ELF_MAX_CHA;
case Intuition: return ELF_MAX_INT;
case Logic: return ELF_MAX_LOG;
case Willpower: return ELF_MAX_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return ELF_MAX_INI;
case Edge : return MAX_EDGE;
case Magic : return MAX_MAGIC;
case Resonance : return MAX_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetElfMaxStart | ( | Attribute | attribute | ) |
Gets the minimum rating a Elf may have for a given attribute
Definition at line 284 of file SraAttributeUtility.h.
References ELF_MAXSTART_AGI, ELF_MAXSTART_BOD, ELF_MAXSTART_CHA, ELF_MAXSTART_INI, ELF_MAXSTART_INT, ELF_MAXSTART_LOG, ELF_MAXSTART_REA, ELF_MAXSTART_STR, ELF_MAXSTART_WIL, INITIAL_ESS, MAXSTART_EDGE, MAXSTART_MAGIC, and MAXSTART_RESONANCE.
Referenced by GetAttributeAve(), and GetAttributeMaxStart().
{
switch(attribute)
{
case Body: return ELF_MAXSTART_BOD;
case Agility: return ELF_MAXSTART_AGI;
case Reaction: return ELF_MAXSTART_REA;
case Strength: return ELF_MAXSTART_STR;
case Charisma: return ELF_MAXSTART_CHA;
case Intuition: return ELF_MAXSTART_INT;
case Logic: return ELF_MAXSTART_LOG;
case Willpower: return ELF_MAXSTART_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return ELF_MAXSTART_INI;
case Edge : return MAXSTART_EDGE;
case Magic : return MAXSTART_MAGIC;
case Resonance : return MAXSTART_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetElfMin | ( | Attribute | attribute | ) |
Gets the minimum rating a Elf may have for a given attribute
Definition at line 259 of file SraAttributeUtility.h.
References ELF_MIN_AGI, ELF_MIN_BOD, ELF_MIN_CHA, ELF_MIN_INI, ELF_MIN_INT, ELF_MIN_LOG, ELF_MIN_REA, ELF_MIN_STR, ELF_MIN_WIL, MIN_EDGE, MIN_ESS, MIN_MAGIC, and MIN_RESONANCE.
Referenced by GetAttributeAve(), and GetAttributeMin().
{
switch(attribute)
{
case Body: return ELF_MIN_BOD;
case Agility: return ELF_MIN_AGI;
case Reaction: return ELF_MIN_REA;
case Strength: return ELF_MIN_STR;
case Charisma: return ELF_MIN_CHA;
case Intuition: return ELF_MIN_INT;
case Logic: return ELF_MIN_LOG;
case Willpower: return ELF_MIN_WIL;
case Essence : return MIN_ESS;
case Initiative: return ELF_MIN_INI;
case Edge : return MIN_EDGE;
case Magic : return MIN_MAGIC;
case Resonance : return MIN_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetFallingDamage | ( | float | metersFallen | ) |
Calculates the damage taken from talling using the adjusted meters NOTE: This is taken from pg. 154 SR4, will probably need translated into meters-per-second to be useful to PhysX
Definition at line 204 of file SraUtility.h.
{
if(metersFallen <= 0.0f)
return 0;
else if(metersFallen > 0.0f && metersFallen < 3.0f)
return 2;
else if(metersFallen >= 3.0f && metersFallen < 6.0f)
return 4;
else if(metersFallen >= 6.0f && metersFallen < 8.0f)
return 6;
else
{
metersFallen -= 8.0f;
return 6 + (int)(metersFallen/2.0f);
}
}
| INLINE int SraLogic::GetGlarePenalty | ( | Vision | vision | ) |
Gets the visibility penalty for glare based on the given vision type
Definition at line 63 of file SraVisionUtility.h.
References RANGED_TARGET_TOTAL_COVER, VISIBILITY_GLARE_ASTRAL, VISIBILITY_GLARE_LOWLIGHT, VISIBILITY_GLARE_NORMAL, and VISIBILITY_GLARE_THERMOGRAPHIC.
Referenced by GetTotalVisibilityPenalty().
{
switch(vision)
{
case NormalVision: return VISIBILITY_GLARE_NORMAL;
case LowLightVision: return VISIBILITY_GLARE_LOWLIGHT;
case ThermographicVision: return VISIBILITY_GLARE_THERMOGRAPHIC;
case AstralVision: return VISIBILITY_GLARE_ASTRAL;
default: return RANGED_TARGET_TOTAL_COVER;
}
}
| INLINE int SraLogic::GetHealingEssencePenalty | ( | int | currentEssence | ) |
Calculates the healing penalty based on a character's current essence rating
Definition at line 261 of file SraUtility.h.
References HEALING_ESSENCE_MULTIPLIER, and INITIAL_ESS.
{
return (INITIAL_ESS - currentEssence)/HEALING_ESSENCE_MULTIPLIER;
}
| INLINE int SraLogic::GetHeavyFogPenalty | ( | Vision | vision | ) |
Gets the visibility penalty for heavy fog based on the given vision type
Definition at line 31 of file SraVisionUtility.h.
References RANGED_TARGET_TOTAL_COVER, VISIBILITY_HEAVYFOG_ASTRAL, VISIBILITY_HEAVYFOG_LOWLIGHT, VISIBILITY_HEAVYFOG_NORMAL, and VISIBILITY_HEAVYFOG_THERMOGRAPHIC.
Referenced by GetTotalVisibilityPenalty().
{
switch(vision)
{
case NormalVision: return VISIBILITY_HEAVYFOG_NORMAL;
case LowLightVision: return VISIBILITY_HEAVYFOG_LOWLIGHT;
case ThermographicVision: return VISIBILITY_HEAVYFOG_THERMOGRAPHIC;
case AstralVision: return VISIBILITY_HEAVYFOG_ASTRAL;
default: return RANGED_TARGET_TOTAL_COVER;
}
}
| INLINE int SraLogic::GetHumanMax | ( | Attribute | attribute | ) |
Gets the maximum rating a human may have for a given attribute
Definition at line 72 of file SraAttributeUtility.h.
References HUMAN_EDGE_BONUS, HUMAN_MAX_AGI, HUMAN_MAX_BOD, HUMAN_MAX_CHA, HUMAN_MAX_INI, HUMAN_MAX_INT, HUMAN_MAX_LOG, HUMAN_MAX_REA, HUMAN_MAX_STR, HUMAN_MAX_WIL, INITIAL_ESS, MAX_EDGE, MAX_MAGIC, and MAX_RESONANCE.
Referenced by GetAttributeMax().
{
switch(attribute)
{
case Body: return HUMAN_MAX_BOD;
case Agility: return HUMAN_MAX_AGI;
case Reaction: return HUMAN_MAX_REA;
case Strength: return HUMAN_MAX_STR;
case Charisma: return HUMAN_MAX_CHA;
case Intuition: return HUMAN_MAX_INT;
case Logic: return HUMAN_MAX_LOG;
case Willpower: return HUMAN_MAX_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return HUMAN_MAX_INI;
case Edge : return MAX_EDGE + HUMAN_EDGE_BONUS;
case Magic : return MAX_MAGIC;
case Resonance : return MAX_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetHumanMaxStart | ( | Attribute | attribute | ) |
Gets the maximum starting rating a human may have for a given attribute
Definition at line 47 of file SraAttributeUtility.h.
References HUMAN_EDGE_BONUS, HUMAN_MAXSTART_AGI, HUMAN_MAXSTART_BOD, HUMAN_MAXSTART_CHA, HUMAN_MAXSTART_INI, HUMAN_MAXSTART_INT, HUMAN_MAXSTART_LOG, HUMAN_MAXSTART_REA, HUMAN_MAXSTART_STR, HUMAN_MAXSTART_WIL, INITIAL_ESS, MAXSTART_EDGE, MAXSTART_MAGIC, and MAXSTART_RESONANCE.
Referenced by GetAttributeAve(), and GetAttributeMaxStart().
{
switch(attribute)
{
case Body: return HUMAN_MAXSTART_BOD;
case Agility: return HUMAN_MAXSTART_AGI;
case Reaction: return HUMAN_MAXSTART_REA;
case Strength: return HUMAN_MAXSTART_STR;
case Charisma: return HUMAN_MAXSTART_CHA;
case Intuition: return HUMAN_MAXSTART_INT;
case Logic: return HUMAN_MAXSTART_LOG;
case Willpower: return HUMAN_MAXSTART_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return HUMAN_MAXSTART_INI;
case Edge : return MAXSTART_EDGE + HUMAN_EDGE_BONUS;
case Magic : return MAXSTART_MAGIC;
case Resonance : return MAXSTART_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetHumanMin | ( | Attribute | attribute | ) |
Gets the minimum rating a human may have for a given attribute
Definition at line 22 of file SraAttributeUtility.h.
References HUMAN_MIN_AGI, HUMAN_MIN_BOD, HUMAN_MIN_CHA, HUMAN_MIN_INI, HUMAN_MIN_INT, HUMAN_MIN_LOG, HUMAN_MIN_REA, HUMAN_MIN_STR, HUMAN_MIN_WIL, MIN_EDGE, MIN_ESS, MIN_MAGIC, and MIN_RESONANCE.
Referenced by GetAttributeAve(), and GetAttributeMin().
{
switch(attribute)
{
case Body: return HUMAN_MIN_BOD;
case Agility: return HUMAN_MIN_AGI;
case Reaction: return HUMAN_MIN_REA;
case Strength: return HUMAN_MIN_STR;
case Charisma: return HUMAN_MIN_CHA;
case Intuition: return HUMAN_MIN_INT;
case Logic: return HUMAN_MIN_LOG;
case Willpower: return HUMAN_MIN_WIL;
case Essence : return MIN_ESS;
case Initiative: return HUMAN_MIN_INI;
case Edge : return MIN_EDGE;
case Magic : return MIN_MAGIC;
case Resonance : return MIN_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetLightFogPenalty | ( | Vision | vision | ) |
Gets the visibility penalty for light fog based on the given vision type
Definition at line 47 of file SraVisionUtility.h.
References RANGED_TARGET_TOTAL_COVER, VISIBILITY_GLARE_ASTRAL, VISIBILITY_GLARE_LOWLIGHT, VISIBILITY_GLARE_NORMAL, and VISIBILITY_GLARE_THERMOGRAPHIC.
Referenced by GetTotalVisibilityPenalty().
{
switch(vision)
{
case NormalVision: return VISIBILITY_GLARE_NORMAL;
case LowLightVision: return VISIBILITY_GLARE_LOWLIGHT;
case ThermographicVision: return VISIBILITY_GLARE_THERMOGRAPHIC;
case AstralVision: return VISIBILITY_GLARE_ASTRAL;
default: return RANGED_TARGET_TOTAL_COVER;
}
}
| INLINE int SraLogic::GetMinorNpcDamageTrack | ( | int | bodyRating, |
| int | willRating | ||
| ) |
Minor NPCs only have 1 damage track, pg. 272
Definition at line 131 of file SraUtility.h.
References MINORNPC_DMG_BASE, and MINORNPC_DMG_MULTIPLIER.
{
//take the higher of body or will
if(willRating > bodyRating)
bodyRating = willRating;
return MINORNPC_DMG_BASE + (int)((float)bodyRating*MINORNPC_DMG_MULTIPLIER);
}
| INLINE int SraLogic::GetNaturalReachBonus | ( | Race | race | ) |
Gets the natural reach bonus associated with a given race
Definition at line 296 of file SraUtility.h.
References TROLL_REACH_BONUS.
{
if(race == Troll)
return TROLL_REACH_BONUS;
return 0;
}
| INLINE int SraLogic::GetOrkMax | ( | Attribute | attribute | ) |
Gets the maximum rating a Ork may have for a given attribute
Definition at line 151 of file SraAttributeUtility.h.
References INITIAL_ESS, MAX_EDGE, MAX_MAGIC, MAX_RESONANCE, ORK_MAX_AGI, ORK_MAX_BOD, ORK_MAX_CHA, ORK_MAX_INI, ORK_MAX_INT, ORK_MAX_LOG, ORK_MAX_REA, ORK_MAX_STR, and ORK_MAX_WIL.
Referenced by GetAttributeMax().
{
switch(attribute)
{
case Body: return ORK_MAX_BOD;
case Agility: return ORK_MAX_AGI;
case Reaction: return ORK_MAX_REA;
case Strength: return ORK_MAX_STR;
case Charisma: return ORK_MAX_CHA;
case Intuition: return ORK_MAX_INT;
case Logic: return ORK_MAX_LOG;
case Willpower: return ORK_MAX_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return ORK_MAX_INI;
case Edge : return MAX_EDGE;
case Magic : return MAX_MAGIC;
case Resonance : return MAX_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetOrkMaxStart | ( | Attribute | attribute | ) |
Gets the maximum starting rating a ORK may have for a given attribute
Definition at line 126 of file SraAttributeUtility.h.
References INITIAL_ESS, MAXSTART_EDGE, MAXSTART_MAGIC, MAXSTART_RESONANCE, ORK_MAXSTART_AGI, ORK_MAXSTART_BOD, ORK_MAXSTART_CHA, ORK_MAXSTART_INI, ORK_MAXSTART_INT, ORK_MAXSTART_LOG, ORK_MAXSTART_REA, ORK_MAXSTART_STR, and ORK_MAXSTART_WIL.
Referenced by GetAttributeAve(), and GetAttributeMaxStart().
{
switch(attribute)
{
case Body: return ORK_MAXSTART_BOD;
case Agility: return ORK_MAXSTART_AGI;
case Reaction: return ORK_MAXSTART_REA;
case Strength: return ORK_MAXSTART_STR;
case Charisma: return ORK_MAXSTART_CHA;
case Intuition: return ORK_MAXSTART_INT;
case Logic: return ORK_MAXSTART_LOG;
case Willpower: return ORK_MAXSTART_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return ORK_MAXSTART_INI;
case Edge : return MAXSTART_EDGE;
case Magic : return MAXSTART_MAGIC;
case Resonance : return MAXSTART_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetOrkMin | ( | Attribute | attribute | ) |
Gets the minimum rating a ork may have for a given attribute
Definition at line 101 of file SraAttributeUtility.h.
References MIN_EDGE, MIN_ESS, MIN_MAGIC, MIN_RESONANCE, ORK_MIN_AGI, ORK_MIN_BOD, ORK_MIN_CHA, ORK_MIN_INI, ORK_MIN_INT, ORK_MIN_LOG, ORK_MIN_REA, ORK_MIN_STR, and ORK_MIN_WIL.
Referenced by GetAttributeAve(), and GetAttributeMin().
{
switch(attribute)
{
case Body: return ORK_MIN_BOD;
case Agility: return ORK_MIN_AGI;
case Reaction: return ORK_MIN_REA;
case Strength: return ORK_MIN_STR;
case Charisma: return ORK_MIN_CHA;
case Intuition: return ORK_MIN_INT;
case Logic: return ORK_MIN_LOG;
case Willpower: return ORK_MIN_WIL;
case Essence : return MIN_ESS;
case Initiative: return ORK_MIN_INI;
case Edge : return MIN_EDGE;
case Magic : return MIN_MAGIC;
case Resonance : return MIN_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetPartialLightPenalty | ( | Vision | vision | ) |
Gets the visibility penalty for partial light based on vision type
Definition at line 79 of file SraVisionUtility.h.
References RANGED_TARGET_TOTAL_COVER, VISIBILITY_PARTIALLIGHT_ASTRAL, VISIBILITY_PARTIALLIGHT_LOWLIGHT, VISIBILITY_PARTIALLIGHT_NORMAL, and VISIBILITY_PARTIALLIGHT_THERMOGRAPHIC.
Referenced by GetTotalVisibilityPenalty().
{
switch(vision)
{
case NormalVision: return VISIBILITY_PARTIALLIGHT_NORMAL;
case LowLightVision: return VISIBILITY_PARTIALLIGHT_LOWLIGHT;
case ThermographicVision: return VISIBILITY_PARTIALLIGHT_THERMOGRAPHIC;
case AstralVision: return VISIBILITY_PARTIALLIGHT_ASTRAL;
default: return RANGED_TARGET_TOTAL_COVER;
}
}
| INLINE int SraLogic::GetPhysicalHealingPerDay | ( | int | bodyRating | ) |
Calculates the number of physical boxes healed per day of "sleep"
Definition at line 269 of file SraUtility.h.
References HEALING_PHYSICAL_DIVISOR, and HEALING_PHYSICAL_MULTIPLIER.
{
return (HEALING_PHYSICAL_MULTIPLIER*bodyRating)/HEALING_PHYSICAL_DIVISOR;
}
| INLINE int SraLogic::GetPlayerPhysicalDamageTrack | ( | int | bodRating | ) |
Calculates the number of boxes in a character's physical damange track based on the given will rating NOTE: This may be changer by ad hoc modifiers
Definition at line 160 of file SraUtility.h.
References PHYSICAL_DMG_BASE, and PHYSICAL_DMG_DIVISOR.
{
//pg. 65
// 8 + (half bod rounded up)
int ret = PHYSICAL_DMG_BASE + (bodRating/ PHYSICAL_DMG_DIVISOR);
if(bodRating%PHYSICAL_DMG_DIVISOR > 0)
ret +=1;
return ret;
}
| INLINE int SraLogic::GetPlayerStunDamageTrack | ( | int | willRating | ) |
Calculates the number of boxes in a character's stun damage track based on the given will rating NOTE: This may be changer by ad hoc modifiers
Definition at line 145 of file SraUtility.h.
References STUN_DMG_BASE, and STUN_DMG_DIVISOR.
{
//pg. 65
// 8 + (half willpower rounded up)
int ret = STUN_DMG_BASE + (willRating/ STUN_DMG_DIVISOR);
if(willRating%STUN_DMG_DIVISOR > 0)
ret +=1;
return ret;
}
Gets the recoil penalty for a given firemode
Definition at line 30 of file SraUtility.h.
References RECOIL_FIRST_BURST, RECOIL_FIRST_LONGBURST, RECOIL_FIRST_SEMIAUTO, RECOIL_HEAVY_MULTIPLIER, RECOIL_SECOND_BURST, RECOIL_SECOND_LONGBURST, and RECOIL_SECOND_SEMIAUTO.
{
int recoil = 0;
if(firstShot)
{
switch(mode)
{
case SingleShot: recoil = RECOIL_FIRST_SEMIAUTO; break;
case SemiAuto: recoil = RECOIL_FIRST_SEMIAUTO; break;
case BurstFire: recoil = RECOIL_FIRST_BURST; break;
case LongBurst: recoil = RECOIL_FIRST_LONGBURST; break;
case FullAuto: recoil = RECOIL_FIRST_LONGBURST; break;
}
}
else
{
switch(mode)
{
case SemiAuto: recoil = RECOIL_SECOND_SEMIAUTO; break;
case BurstFire: recoil = RECOIL_SECOND_BURST; break;
case LongBurst: recoil = RECOIL_SECOND_LONGBURST; break;
//NOTE: second single-shot and full bursts should NOT happen
}
}
if(heavyWeapon)
recoil*= RECOIL_HEAVY_MULTIPLIER;
return recoil;
}
| INLINE int SraLogic::GetSightDistancePenalty | ( | float | distanceInMeters | ) |
Translates a distance in meters to the distance penalty for vision-based perception
Definition at line 187 of file SraUtility.h.
References DISTANCE_FOR_SIGHT_FAR_AWAY, DISTANCE_FOR_SIGHT_NOT_IMMEDIATE_VICINITY, SIGHT_FAR_AWAY, SIGHT_IMMEDIATE_VICINITY, and SIGHT_NOT_IMMEDIATE_VICINITY.
{
//At the moment, this is based on rules on pg. 117, but maybe a formula would work better
if(distanceInMeters <= DISTANCE_FOR_SIGHT_NOT_IMMEDIATE_VICINITY)
return SIGHT_IMMEDIATE_VICINITY;
else if(distanceInMeters > DISTANCE_FOR_SIGHT_NOT_IMMEDIATE_VICINITY && distanceInMeters <DISTANCE_FOR_SIGHT_FAR_AWAY)
return SIGHT_NOT_IMMEDIATE_VICINITY;
else
return SIGHT_FAR_AWAY;
}
| INLINE int SraLogic::GetSoundDistancePenalty | ( | float | distanceInMeters | ) |
Translates a distance in meters into a penalty for sound-based perception
Definition at line 173 of file SraUtility.h.
References DISTANCE_FOR_SOUND_FAR_AWAY, DISTANCE_FOR_SOUND_NOT_IMMEDIATE_VICINITY, SOUND_FAR_AWAY, SOUND_IMMEDIATE_VICINITY, and SOUND_NOT_IMMEDIATE_VICINITY.
{
//At the moment, this is based on rules on pg. 117, but maybe a formula would work better
if(distanceInMeters <= DISTANCE_FOR_SOUND_NOT_IMMEDIATE_VICINITY)
return SOUND_IMMEDIATE_VICINITY;
else if(distanceInMeters > DISTANCE_FOR_SOUND_NOT_IMMEDIATE_VICINITY && distanceInMeters <DISTANCE_FOR_SOUND_FAR_AWAY)
return SOUND_NOT_IMMEDIATE_VICINITY;
else
return SOUND_FAR_AWAY;
}
| INLINE int SraLogic::GetThermalSmokePenalty | ( | Vision | vision | ) |
Gets the visibility penalty for themral smoke based on the given vision type
Definition at line 15 of file SraVisionUtility.h.
References RANGED_TARGET_TOTAL_COVER, VISIBILITY_THERMALSMOKE_ASTRAL, VISIBILITY_THERMALSMOKE_LOWLIGHT, VISIBILITY_THERMALSMOKE_NORMAL, and VISIBILITY_THERMALSMOKE_THERMOGRAPHIC.
Referenced by GetTotalVisibilityPenalty().
{
switch(vision)
{
case NormalVision: return VISIBILITY_THERMALSMOKE_NORMAL;
case LowLightVision: return VISIBILITY_THERMALSMOKE_LOWLIGHT;
case ThermographicVision: return VISIBILITY_THERMALSMOKE_THERMOGRAPHIC;
case AstralVision: return VISIBILITY_THERMALSMOKE_ASTRAL;
default: return RANGED_TARGET_TOTAL_COVER;
}
}
| INLINE float SraLogic::GetTimeForOneBoxStunInRealHours | ( | int | willRating, |
| int | bodyRating | ||
| ) |
Calculates the amount of real time (in hours) it takes to heal one stun box given the will & body ratings of a metahuman
Definition at line 278 of file SraUtility.h.
References HEALING_STUN_DIVISOR, and REAL_HOURS_PER_GAME_HOUR.
{
int stunBoxesPerGameHour = (willRating + bodyRating)/HEALING_STUN_DIVISOR;
return REAL_HOURS_PER_GAME_HOUR/(float)stunBoxesPerGameHour;
}
| INLINE int SraLogic::GetTotalDarknessPenalty | ( | Vision | vision | ) |
Gets the visibility penalty for total darkness based on vision type
Definition at line 95 of file SraVisionUtility.h.
References RANGED_TARGET_TOTAL_COVER, VISIBILITY_FULLDARK_ASTRAL, VISIBILITY_FULLDARK_LOWLIGHT, VISIBILITY_FULLDARK_NORMAL, and VISIBILITY_FULLDARK_THERMOGRAPHIC.
Referenced by GetTotalVisibilityPenalty().
{
switch(vision)
{
case NormalVision: return VISIBILITY_FULLDARK_NORMAL;
case LowLightVision: return VISIBILITY_FULLDARK_LOWLIGHT;
case ThermographicVision: return VISIBILITY_FULLDARK_THERMOGRAPHIC;
case AstralVision: return VISIBILITY_FULLDARK_ASTRAL;
default: return RANGED_TARGET_TOTAL_COVER;
}
}
| INLINE int SraLogic::GetTotalVisibilityPenalty | ( | Visibility | visibility, |
| Vision | vision | ||
| ) |
Gets the total visibility penalty for a given set of visibility flags and the observer's vision type
Definition at line 112 of file SraVisionUtility.h.
References GetGlarePenalty(), GetHeavyFogPenalty(), GetLightFogPenalty(), GetPartialLightPenalty(), GetThermalSmokePenalty(), GetTotalDarknessPenalty(), and RANGED_TARGET_TOTAL_COVER.
{
//if there are no visbility issues, then we don't even need to calculate
if(visibility == NoObstruction)
return 0;
if((visibility & TotalObstruction) || (visibility & PartialObstruction))
return RANGED_TARGET_TOTAL_COVER;
//if we do need to calculate, then start at zero
int total = 0;
//find the light-based penalty, checking darkest first
if(visibility & FullDarkness)
total += GetTotalDarknessPenalty(vision);
else if(visibility & PartialLight)
total += GetPartialLightPenalty(vision);
//check for glare
if(visibility & Glare)
total += GetGlarePenalty(vision);
//check for smoke (thermal smoke is worst, then heavy fog, then light fog)
if(visibility & ThermalSmoke)
total += GetThermalSmokePenalty(vision);
else if(visibility & HeavyFog)
total += GetHeavyFogPenalty(vision);
else if(visibility & LightFog)
total += GetLightFogPenalty(vision);
//visibility can't be worse than total cover
if(total > RANGED_TARGET_TOTAL_COVER)
return RANGED_TARGET_TOTAL_COVER;
return total;
}
| INLINE int SraLogic::GetTrollMax | ( | Attribute | attribute | ) |
Gets the maximum rating a Troll may have for a given attribute
Definition at line 388 of file SraAttributeUtility.h.
References INITIAL_ESS, MAX_EDGE, MAX_MAGIC, MAX_RESONANCE, TROLL_MAX_AGI, TROLL_MAX_BOD, TROLL_MAX_CHA, TROLL_MAX_INI, TROLL_MAX_INT, TROLL_MAX_LOG, TROLL_MAX_REA, TROLL_MAX_STR, and TROLL_MAX_WIL.
Referenced by GetAttributeMax().
{
switch(attribute)
{
case Body: return TROLL_MAX_BOD;
case Agility: return TROLL_MAX_AGI;
case Reaction: return TROLL_MAX_REA;
case Strength: return TROLL_MAX_STR;
case Charisma: return TROLL_MAX_CHA;
case Intuition: return TROLL_MAX_INT;
case Logic: return TROLL_MAX_LOG;
case Willpower: return TROLL_MAX_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return TROLL_MAX_INI;
case Edge : return MAX_EDGE;
case Magic : return MAX_MAGIC;
case Resonance : return MAX_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetTrollMaxStart | ( | Attribute | attribute | ) |
Gets the minimum rating a Troll may have for a given attribute
Definition at line 363 of file SraAttributeUtility.h.
References INITIAL_ESS, MAXSTART_EDGE, MAXSTART_MAGIC, MAXSTART_RESONANCE, TROLL_MAXSTART_AGI, TROLL_MAXSTART_BOD, TROLL_MAXSTART_CHA, TROLL_MAXSTART_INI, TROLL_MAXSTART_INT, TROLL_MAXSTART_LOG, TROLL_MAXSTART_REA, TROLL_MAXSTART_STR, and TROLL_MAXSTART_WIL.
Referenced by GetAttributeAve(), and GetAttributeMaxStart().
{
switch(attribute)
{
case Body: return TROLL_MAXSTART_BOD;
case Agility: return TROLL_MAXSTART_AGI;
case Reaction: return TROLL_MAXSTART_REA;
case Strength: return TROLL_MAXSTART_STR;
case Charisma: return TROLL_MAXSTART_CHA;
case Intuition: return TROLL_MAXSTART_INT;
case Logic: return TROLL_MAXSTART_LOG;
case Willpower: return TROLL_MAXSTART_WIL;
case Essence : return INITIAL_ESS;
case Initiative: return TROLL_MAXSTART_INI;
case Edge : return MAXSTART_EDGE;
case Magic : return MAXSTART_MAGIC;
case Resonance : return MAXSTART_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetTrollMin | ( | Attribute | attribute | ) |
Gets the minimum rating a Troll may have for a given attribute
Definition at line 338 of file SraAttributeUtility.h.
References MIN_EDGE, MIN_ESS, MIN_MAGIC, MIN_RESONANCE, TROLL_MIN_AGI, TROLL_MIN_BOD, TROLL_MIN_CHA, TROLL_MIN_INI, TROLL_MIN_INT, TROLL_MIN_LOG, TROLL_MIN_REA, TROLL_MIN_STR, and TROLL_MIN_WIL.
Referenced by GetAttributeAve(), and GetAttributeMin().
{
switch(attribute)
{
case Body: return TROLL_MIN_BOD;
case Agility: return TROLL_MIN_AGI;
case Reaction: return TROLL_MIN_REA;
case Strength: return TROLL_MIN_STR;
case Charisma: return TROLL_MIN_CHA;
case Intuition: return TROLL_MIN_INT;
case Logic: return TROLL_MIN_LOG;
case Willpower: return TROLL_MIN_WIL;
case Essence : return MIN_ESS;
case Initiative: return TROLL_MIN_INI;
case Edge : return MIN_EDGE;
case Magic : return MIN_MAGIC;
case Resonance : return MIN_RESONANCE;
}
return -1;
}
| INLINE int SraLogic::GetWoundModifier | ( | int | numberOfBoxes | ) |
Gets the total wound modifier for a number of boxes NOTE: This is the same for stun & physical damage
Definition at line 288 of file SraUtility.h.
References WOUNDMODIFIER_DIVISOR.
{
return numberOfBoxes/WOUNDMODIFIER_DIVISOR;
}
| INLINE bool SraLogic::IsAcceptableLoss | ( | ProfessionalRating | professionalRating, |
| int | initialBadGuys, | ||
| int | currentBadGuys | ||
| ) |
Returns true if a force of the given professional rating and the given level of casualties will retreat
Definition at line 96 of file SraUtility.h.
References GetAcceptableLossPercentage().
{
return ((float)currentBadGuys / (float)initialBadGuys) >
GetAcceptableLossPercentage(professionalRating);
}
| INLINE int SraLogic::RollHits | ( | int | totalRating | ) |
Rolls hits on the given total rating of dice
Definition at line 238 of file SraUtility.h.
{
//no dice == no hits
if(totalRating <= 0)
return 0;
//make one "roll" per rating point
int numHits = 0;
int randomNumber;
for(int i = 0; i < totalRating; ++i)
{
//A hit is a 5 or better on a d6, or 1 in 3 chance
randomNumber = rand()%3;
if(randomNumber == 2)
numHits++;
}
return numHits;
}
| const int SraLogic::ASSENSING_ALPHA_CYBERWARE = 3 |
Definition at line 461 of file SrConstants.h.
| const int SraLogic::ASSENSING_BASIC_CYBERWARE = 2 |
Definition at line 457 of file SrConstants.h.
| const int SraLogic::ASSENSING_BETA_CYBERWARE = 4 |
Definition at line 465 of file SrConstants.h.
| const int SraLogic::ASSENSING_BIOWARE = 4 |
Definition at line 466 of file SrConstants.h.
| const int SraLogic::ASSENSING_CAUSEOFEMOTION = 5 |
Definition at line 471 of file SrConstants.h.
| const int SraLogic::ASSENSING_CLASSOFMAGIC = 2 |
Definition at line 458 of file SrConstants.h.
| const int SraLogic::ASSENSING_EXACT_DISEASEORTOXIN = 4 |
Definition at line 468 of file SrConstants.h.
| const int SraLogic::ASSENSING_GENERAL_DISEASEORTOXIN = 3 |
Definition at line 463 of file SrConstants.h.
| const int SraLogic::ASSENSING_GENERALEMOTIONS = 1 |
Definition at line 454 of file SrConstants.h.
| const int SraLogic::ASSENSING_GENERALHEALTH = 1 |
Definition at line 453 of file SrConstants.h.
| const int SraLogic::ASSENSING_MAGIC_EXACT = 4 |
Definition at line 467 of file SrConstants.h.
| const int SraLogic::ASSENSING_MAGIC_HIGHERORLOWER = 3 |
Definition at line 462 of file SrConstants.h.
| const int SraLogic::ASSENSING_MUNDANREORAWAKENED = 1 |
Definition at line 455 of file SrConstants.h.
| const int SraLogic::ASSENSING_SEENAURABEFORE = 2 |
Definition at line 459 of file SrConstants.h.
| const int SraLogic::ASSENSING_TECHNOMANCER = 5 |
Definition at line 470 of file SrConstants.h.
| const Attribute SraLogic::ASTRAL_AGILITY = Logic |
Definition at line 474 of file SrConstants.h.
| const Attribute SraLogic::ASTRAL_BODY = Willpower |
Definition at line 475 of file SrConstants.h.
| const Attribute SraLogic::ASTRAL_INITIATIVE = Intuition |
Definition at line 478 of file SrConstants.h.
| const int SraLogic::ASTRAL_INITIATIVE_MULTIPLIER = 2 |
Definition at line 481 of file SrConstants.h.
| const int SraLogic::ASTRAL_INITIATIVE_PASSES = 3 |
Definition at line 482 of file SrConstants.h.
| const Attribute SraLogic::ASTRAL_REACTION = Intuition |
Definition at line 476 of file SrConstants.h.
| const Attribute SraLogic::ASTRAL_STRENGTH = Charisma |
Definition at line 477 of file SrConstants.h.
| const int SraLogic::AUTO_SUCCESS_DIVISOR = 4 |
Definition at line 34 of file SrConstants.h.
Referenced by BuyHits().
| const int SraLogic::AVAILABLE_DICE_WHEN_DEFENDER_UNAWARE = 0 |
Definition at line 381 of file SrConstants.h.
| const int SraLogic::AWARE_SURPRISE_TEST = 3 |
Definition at line 306 of file SrConstants.h.
| const int SraLogic::BARRIER_DMG_AVROCKET_MULTIPLIER = 3 |
Definition at line 430 of file SrConstants.h.
| const int SraLogic::BARRIER_DMG_BULLET = 2 |
Definition at line 426 of file SrConstants.h.
| const int SraLogic::BARRIER_DMG_COMBATSPELL_MULTIPLIER = 1 |
Definition at line 432 of file SrConstants.h.
| const int SraLogic::BARRIER_DMG_EXPLOSIVE_MULTIPLIER = 2 |
Definition at line 428 of file SrConstants.h.
| const int SraLogic::BARRIER_DMG_MELEE = 1 |
Definition at line 422 of file SrConstants.h.
| const int SraLogic::BARRIER_DMG_PROJECTILE = 1 |
Definition at line 424 of file SrConstants.h.
| const int SraLogic::BARRIER_RESISTANCE_MULTIPLIER = 2 |
Definition at line 420 of file SrConstants.h.
| const int SraLogic::CONCEALABILITY_BIG = 2 |
Definition at line 612 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::CONCEALABILITY_HUGE = 6 |
Definition at line 616 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::CONCEALABILITY_LARGE = 4 |
Definition at line 614 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::CONCEALABILITY_MEDIUM = 0 |
Definition at line 610 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::CONCEALABILITY_MINISCULE = -6 |
Definition at line 604 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::CONCEALABILITY_SMALL = -2 |
Definition at line 608 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::CONCEALABILITY_TINY = -4 |
Definition at line 606 of file SrConstants.h.
Referenced by GetConcealabilityRating().
| const int SraLogic::DEFAULTING_PENALTY = -1 |
Definition at line 30 of file SrConstants.h.
| const int SraLogic::DEFENDER_AGAINST_AREA_ATTACK = -2 |
Definition at line 392 of file SrConstants.h.
| const int SraLogic::DEFENDER_AGAINST_FULL_AUTO_WIDE_BURST = -9 |
Definition at line 389 of file SrConstants.h.
| const int SraLogic::DEFENDER_AGAINST_LONG_WIDE_BURST = -5 |
Definition at line 388 of file SrConstants.h.
| const int SraLogic::DEFENDER_AGAINST_SHOTFUN_WIDE_SPREAD = -4 |
Definition at line 391 of file SrConstants.h.
| const int SraLogic::DEFENDER_AGAINST_SHOTGUN_MEDIUM_SPREAD = -2 |
Definition at line 390 of file SrConstants.h.
| const int SraLogic::DEFENDER_AGAINST_WIDE_BURST = -2 |
Definition at line 387 of file SrConstants.h.
| const int SraLogic::DEFENDER_IN_MELEE_AGAINST_RANGED = -3 |
Definition at line 386 of file SrConstants.h.
| const int SraLogic::DEFENDER_PRONE = -2 |
Definition at line 382 of file SrConstants.h.
| const int SraLogic::DEFENDER_RUNNING = 2 |
Definition at line 385 of file SrConstants.h.
| const int SraLogic::DEVICE_RATING_AVERAGE = 3 |
Definition at line 506 of file SrConstants.h.
| const int SraLogic::DEVICE_RATING_COMPLEX = 4 |
Definition at line 508 of file SrConstants.h.
| const int SraLogic::DEVICE_RATING_CUTTINGEDGE = 6 |
Definition at line 512 of file SrConstants.h.
| const int SraLogic::DEVICE_RATING_DUMB = 1 |
Definition at line 502 of file SrConstants.h.
| const int SraLogic::DEVICE_RATING_SIMPLE = 2 |
Definition at line 504 of file SrConstants.h.
| const int SraLogic::DEVICE_RATING_SMART = 5 |
Definition at line 510 of file SrConstants.h.
| const float SraLogic::DISTANCE_FOR_SIGHT_FAR_AWAY = 20 |
Definition at line 33 of file SraConstants.h.
Referenced by GetSightDistancePenalty().
Definition at line 32 of file SraConstants.h.
Referenced by GetSightDistancePenalty().
| const float SraLogic::DISTANCE_FOR_SOUND_FAR_AWAY = 20 |
Definition at line 29 of file SraConstants.h.
Referenced by GetSoundDistancePenalty().
Definition at line 28 of file SraConstants.h.
Referenced by GetSoundDistancePenalty().
| const int SraLogic::DWARF_MAX_AGI = 9 |
Definition at line 175 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_BOD = 10 |
Definition at line 174 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_CHA = 9 |
Definition at line 178 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_INI = 16 |
Definition at line 182 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_INT = 9 |
Definition at line 179 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_LOG = 9 |
Definition at line 180 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_REA = 7 |
Definition at line 176 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_STR = 12 |
Definition at line 177 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAX_WIL = 10 |
Definition at line 181 of file SrConstants.h.
Referenced by GetDwarfMax().
| const int SraLogic::DWARF_MAXSTART_AGI = 6 |
Definition at line 165 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_BOD = 7 |
Definition at line 164 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_CHA = 6 |
Definition at line 168 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_INI = 11 |
Definition at line 172 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_INT = 6 |
Definition at line 169 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_LOG = 6 |
Definition at line 170 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_REA = 5 |
Definition at line 166 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_STR = 8 |
Definition at line 167 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MAXSTART_WIL = 7 |
Definition at line 171 of file SrConstants.h.
Referenced by GetDwarfMaxStart().
| const int SraLogic::DWARF_MIN_AGI = 1 |
Definition at line 155 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_BOD = 2 |
Definition at line 154 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_CHA = 1 |
Definition at line 158 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_INI = 2 |
Definition at line 162 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_INT = 1 |
Definition at line 159 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_LOG = 1 |
Definition at line 160 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_REA = 1 |
Definition at line 156 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_STR = 3 |
Definition at line 157 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_MIN_WIL = 2 |
Definition at line 161 of file SrConstants.h.
Referenced by GetDwarfMin().
| const int SraLogic::DWARF_PATHOGEN_BONUS = 2 |
Definition at line 185 of file SrConstants.h.
| const int SraLogic::DWARF_RUN_SPEED = 20 |
Definition at line 188 of file SrConstants.h.
| const Vision SraLogic::DWARF_VISION = (Vision)(NormalVision | ThermographicVision) |
Definition at line 184 of file SrConstants.h.
| const int SraLogic::DWARF_WALK_SPEED = 8 |
Definition at line 187 of file SrConstants.h.
| const int SraLogic::ELF_MAX_AGI = 10 |
Definition at line 212 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_BOD = 9 |
Definition at line 211 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_CHA = 12 |
Definition at line 215 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_INI = 18 |
Definition at line 219 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_INT = 9 |
Definition at line 216 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_LOG = 9 |
Definition at line 217 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_REA = 9 |
Definition at line 213 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_STR = 9 |
Definition at line 214 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAX_WIL = 9 |
Definition at line 218 of file SrConstants.h.
Referenced by GetElfMax().
| const int SraLogic::ELF_MAXSTART_AGI = 7 |
Definition at line 202 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_BOD = 6 |
Definition at line 201 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_CHA = 8 |
Definition at line 205 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_INI = 12 |
Definition at line 209 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_INT = 6 |
Definition at line 206 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_LOG = 6 |
Definition at line 207 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_REA = 6 |
Definition at line 203 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_STR = 6 |
Definition at line 204 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MAXSTART_WIL = 6 |
Definition at line 208 of file SrConstants.h.
Referenced by GetElfMaxStart().
| const int SraLogic::ELF_MIN_AGI = 2 |
Definition at line 192 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_BOD = 1 |
Definition at line 191 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_CHA = 3 |
Definition at line 195 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_INI = 2 |
Definition at line 199 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_INT = 1 |
Definition at line 196 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_LOG = 1 |
Definition at line 197 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_REA = 1 |
Definition at line 193 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_STR = 1 |
Definition at line 194 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_MIN_WIL = 1 |
Definition at line 198 of file SrConstants.h.
Referenced by GetElfMin().
| const int SraLogic::ELF_RUN_SPEED = 25 |
Definition at line 224 of file SrConstants.h.
| const Vision SraLogic::ELF_VISION = (Vision)(NormalVision | LowLightVision) |
Definition at line 221 of file SrConstants.h.
| const int SraLogic::ELF_WALK_SPEED = 10 |
Definition at line 223 of file SrConstants.h.
| const int SraLogic::HEALING_ASSISTANT = 1 |
Definition at line 555 of file SrConstants.h.
| const int SraLogic::HEALING_CONDITIONS_AVERAGE = -1 |
Definition at line 545 of file SrConstants.h.
| const int SraLogic::HEALING_CONDITIONS_BAD = -3 |
Definition at line 549 of file SrConstants.h.
| const int SraLogic::HEALING_CONDITIONS_GOOD = 0 |
Definition at line 543 of file SrConstants.h.
| const int SraLogic::HEALING_CONDITIONS_POOR = -2 |
Definition at line 547 of file SrConstants.h.
| const int SraLogic::HEALING_CONDITIONS_TERRIBLE = -4 |
Definition at line 551 of file SrConstants.h.
| const int SraLogic::HEALING_ESSENCE_MULTIPLIER = 2 |
Definition at line 562 of file SrConstants.h.
Referenced by GetHealingEssencePenalty().
| const int SraLogic::HEALING_NOMEDKIT = -3 |
Definition at line 553 of file SrConstants.h.
| const int SraLogic::HEALING_PATIENT_ADEPT = -2 |
Definition at line 558 of file SrConstants.h.
| const int SraLogic::HEALING_PATIENT_MAGICIAN = -2 |
Definition at line 557 of file SrConstants.h.
| const int SraLogic::HEALING_PATIENT_TECHNOMANCER = -2 |
Definition at line 559 of file SrConstants.h.
| const int SraLogic::HEALING_PATIENT_UNCOOPERATIVE = -2 |
Definition at line 556 of file SrConstants.h.
| const int SraLogic::HEALING_PHYSICAL_DIVISOR = 3 |
Definition at line 21 of file SraConstants.h.
Referenced by GetPhysicalHealingPerDay().
| const int SraLogic::HEALING_PHYSICAL_MULTIPLIER = 2 |
Definition at line 20 of file SraConstants.h.
Referenced by GetPhysicalHealingPerDay().
| const int SraLogic::HEALING_REMOTELY = -2 |
Definition at line 554 of file SrConstants.h.
| const int SraLogic::HEALING_STUN_DIVISOR = 3 |
Definition at line 24 of file SraConstants.h.
Referenced by GetTimeForOneBoxStunInRealHours().
| const int SraLogic::HUMAN_EDGE_BONUS = 1 |
Definition at line 110 of file SrConstants.h.
Referenced by GetHumanMax(), and GetHumanMaxStart().
| const int SraLogic::HUMAN_MAX_AGI = 9 |
Definition at line 101 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_BOD = 9 |
Definition at line 100 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_CHA = 9 |
Definition at line 104 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_INI = 18 |
Definition at line 108 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_INT = 9 |
Definition at line 105 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_LOG = 9 |
Definition at line 106 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_REA = 9 |
Definition at line 102 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_STR = 9 |
Definition at line 103 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAX_WIL = 9 |
Definition at line 107 of file SrConstants.h.
Referenced by GetHumanMax().
| const int SraLogic::HUMAN_MAXSTART_AGI = 6 |
Definition at line 91 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_BOD = 6 |
Definition at line 90 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_CHA = 6 |
Definition at line 94 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_INI = 12 |
Definition at line 98 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_INT = 6 |
Definition at line 95 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_LOG = 6 |
Definition at line 96 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_REA = 6 |
Definition at line 92 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_STR = 6 |
Definition at line 93 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MAXSTART_WIL = 6 |
Definition at line 97 of file SrConstants.h.
Referenced by GetHumanMaxStart().
| const int SraLogic::HUMAN_MIN_AGI = 1 |
Definition at line 81 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_BOD = 1 |
Definition at line 80 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_CHA = 1 |
Definition at line 84 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_INI = 2 |
Definition at line 88 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_INT = 1 |
Definition at line 85 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_LOG = 1 |
Definition at line 86 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_REA = 1 |
Definition at line 82 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_STR = 1 |
Definition at line 83 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_MIN_WIL = 1 |
Definition at line 87 of file SrConstants.h.
Referenced by GetHumanMin().
| const int SraLogic::HUMAN_RUN_SPEED = 25 |
Definition at line 115 of file SrConstants.h.
| const Vision SraLogic::HUMAN_VISION = NormalVision |
Definition at line 111 of file SrConstants.h.
| const int SraLogic::HUMAN_WALK_SPEED = 10 |
Definition at line 114 of file SrConstants.h.
| const int SraLogic::INITIAL_ESS = 6 |
Definition at line 76 of file SrConstants.h.
Referenced by GetAttributeAve(), GetDwarfMax(), GetDwarfMaxStart(), GetElfMax(), GetElfMaxStart(), GetHealingEssencePenalty(), GetHumanMax(), GetHumanMaxStart(), GetOrkMax(), GetOrkMaxStart(), GetTrollMax(), and GetTrollMaxStart().
| const int SraLogic::KARMA_ADD_POSITIVE_QUALITY_MULTIPLIER = 2 |
Definition at line 578 of file SrConstants.h.
| const int SraLogic::KARMA_IMPROVE_ACTIVE_MULIPLIER = 2 |
Definition at line 573 of file SrConstants.h.
| const int SraLogic::KARMA_IMPROVE_ATTRIBUTE_MULIPLIER = 3 |
Definition at line 575 of file SrConstants.h.
| const int SraLogic::KARMA_IMPROVE_COMPLEXFORM_MULTIPLIER = 1 |
Definition at line 576 of file SrConstants.h.
| const int SraLogic::KARMA_IMPROVE_GROUP_MULIPLIER = 5 |
Definition at line 574 of file SrConstants.h.
| const int SraLogic::KARMA_IMPROVE_KNOWLEDGE_MULIPLIER = 1 |
Definition at line 572 of file SrConstants.h.
| const int SraLogic::KARMA_NEW_ACTIVE = 4 |
Definition at line 567 of file SrConstants.h.
| const int SraLogic::KARMA_NEW_COMPLEXFORM = 2 |
Definition at line 570 of file SrConstants.h.
| const int SraLogic::KARMA_NEW_GROUP = 10 |
Definition at line 568 of file SrConstants.h.
| const int SraLogic::KARMA_NEW_KNOWLEDGE = 2 |
Definition at line 566 of file SrConstants.h.
| const int SraLogic::KARMA_NEW_SPECIALIZATION = 2 |
Definition at line 565 of file SrConstants.h.
| const int SraLogic::KARMA_NEW_SPELL = 5 |
Definition at line 569 of file SrConstants.h.
| const int SraLogic::KARMA_REMOVE_NEGATIVE_QUALITY_MULTIPLIER = 2 |
Definition at line 579 of file SrConstants.h.
| const int SraLogic::MAJORNPC_DMG_BASE = 8 |
Definition at line 590 of file SrConstants.h.
| const int SraLogic::MATERIAL_ARMORED_REINFORCED = 24 |
Definition at line 413 of file SrConstants.h.
| const int SraLogic::MATERIAL_AVERAGE = 4 |
Definition at line 403 of file SrConstants.h.
| const int SraLogic::MATERIAL_CHEAP = 2 |
Definition at line 401 of file SrConstants.h.
| const int SraLogic::MATERIAL_FRAGILE = 1 |
Definition at line 399 of file SrConstants.h.
| const int SraLogic::MATERIAL_HARDENED = 32 |
Definition at line 415 of file SrConstants.h.
| const int SraLogic::MATERIAL_HEAVY = 6 |
Definition at line 405 of file SrConstants.h.
| const int SraLogic::MATERIAL_HEAVY_STRUCTURAL = 16 |
Definition at line 411 of file SrConstants.h.
| const int SraLogic::MATERIAL_REINFORCED = 8 |
Definition at line 407 of file SrConstants.h.
| const int SraLogic::MATERIAL_STRUCTURAL = 12 |
Definition at line 409 of file SrConstants.h.
| const int SraLogic::MAX_EDGE = 6 |
Definition at line 73 of file SrConstants.h.
Referenced by GetDwarfMax(), GetElfMax(), GetHumanMax(), GetOrkMax(), and GetTrollMax().
| const int SraLogic::MAX_MAGIC = 6 |
Definition at line 67 of file SrConstants.h.
Referenced by GetDwarfMax(), GetElfMax(), GetHumanMax(), GetOrkMax(), and GetTrollMax().
| const int SraLogic::MAX_RESONANCE = 6 |
Definition at line 63 of file SrConstants.h.
Referenced by GetDwarfMax(), GetElfMax(), GetHumanMax(), GetOrkMax(), and GetTrollMax().
| const int SraLogic::MAXSTART_EDGE = 6 |
Definition at line 72 of file SrConstants.h.
Referenced by GetDwarfMaxStart(), GetElfMaxStart(), GetHumanMaxStart(), GetOrkMaxStart(), and GetTrollMaxStart().
| const int SraLogic::MAXSTART_MAGIC = 6 |
Definition at line 66 of file SrConstants.h.
Referenced by GetDwarfMaxStart(), GetElfMaxStart(), GetHumanMaxStart(), GetOrkMaxStart(), and GetTrollMaxStart().
| const int SraLogic::MAXSTART_RESONANCE = 6 |
Definition at line 62 of file SrConstants.h.
Referenced by GetDwarfMaxStart(), GetElfMaxStart(), GetHumanMaxStart(), GetOrkMaxStart(), and GetTrollMaxStart().
| const int SraLogic::MELEE_ATTACKER_CHARGING = 2 |
Definition at line 374 of file SrConstants.h.
| const int SraLogic::MELEE_ATTACKER_FRIENDS_IN_MELEE = 1 |
Definition at line 372 of file SrConstants.h.
| const int SraLogic::MELEE_ATTACKER_OPPONENT_PRONE = 3 |
Definition at line 375 of file SrConstants.h.
| const int SraLogic::MELEE_TOUCH_ONLY_ATTACK = 2 |
Definition at line 377 of file SrConstants.h.
| const int SraLogic::MIN_EDGE = 0 |
Definition at line 70 of file SrConstants.h.
Referenced by GetAttributeAve(), GetDwarfMin(), GetElfMin(), GetHumanMin(), GetOrkMin(), and GetTrollMin().
| const int SraLogic::MIN_ESS = 0 |
Definition at line 77 of file SrConstants.h.
Referenced by GetDwarfMin(), GetElfMin(), GetHumanMin(), GetOrkMin(), and GetTrollMin().
| const int SraLogic::MIN_MAGIC = 0 |
Definition at line 65 of file SrConstants.h.
Referenced by GetAttributeAve(), GetDwarfMin(), GetElfMin(), GetHumanMin(), GetOrkMin(), and GetTrollMin().
| const int SraLogic::MIN_RESONANCE = 0 |
Definition at line 61 of file SrConstants.h.
Referenced by GetAttributeAve(), GetDwarfMin(), GetElfMin(), GetHumanMin(), GetOrkMin(), and GetTrollMin().
| const int SraLogic::MINORNPC_DMG_BASE = 8 |
Definition at line 589 of file SrConstants.h.
Referenced by GetMinorNpcDamageTrack().
| const float SraLogic::MINORNPC_DMG_MULTIPLIER = 1.5f |
Definition at line 588 of file SrConstants.h.
Referenced by GetMinorNpcDamageTrack().
| const int SraLogic::MINSTART_EDGE = 1 |
Definition at line 71 of file SrConstants.h.
| const int SraLogic::OBJECTRESISTANCE_HIGHTECH = 3 |
Definition at line 446 of file SrConstants.h.
| const int SraLogic::OBJECTRESISTANCE_LOWTECH = 2 |
Definition at line 444 of file SrConstants.h.
| const int SraLogic::OBJECTRESISTANCE_NATURAL_OBJECT = 1 |
Definition at line 442 of file SrConstants.h.
| const int SraLogic::OBJECTRESISTANCE_ULTATECH = 4 |
Definition at line 448 of file SrConstants.h.
| const int SraLogic::ORK_MAX_AGI = 9 |
Definition at line 139 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_BOD = 13 |
Definition at line 138 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_CHA = 7 |
Definition at line 142 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_INI = 18 |
Definition at line 146 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_INT = 9 |
Definition at line 143 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_LOG = 7 |
Definition at line 144 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_REA = 9 |
Definition at line 140 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_STR = 12 |
Definition at line 141 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAX_WIL = 9 |
Definition at line 145 of file SrConstants.h.
Referenced by GetOrkMax().
| const int SraLogic::ORK_MAXSTART_AGI = 6 |
Definition at line 129 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_BOD = 9 |
Definition at line 128 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_CHA = 5 |
Definition at line 132 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_INI = 12 |
Definition at line 136 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_INT = 6 |
Definition at line 133 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_LOG = 5 |
Definition at line 134 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_REA = 6 |
Definition at line 130 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_STR = 8 |
Definition at line 131 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MAXSTART_WIL = 6 |
Definition at line 135 of file SrConstants.h.
Referenced by GetOrkMaxStart().
| const int SraLogic::ORK_MIN_AGI = 1 |
Definition at line 119 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_BOD = 4 |
Definition at line 118 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_CHA = 1 |
Definition at line 122 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_INI = 2 |
Definition at line 126 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_INT = 1 |
Definition at line 123 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_LOG = 1 |
Definition at line 124 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_REA = 1 |
Definition at line 120 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_STR = 3 |
Definition at line 121 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_MIN_WIL = 1 |
Definition at line 125 of file SrConstants.h.
Referenced by GetOrkMin().
| const int SraLogic::ORK_RUN_SPEED = 25 |
Definition at line 151 of file SrConstants.h.
| const Vision SraLogic::ORK_VISION = (Vision)(NormalVision | LowLightVision) |
Definition at line 148 of file SrConstants.h.
| const int SraLogic::ORK_WALK_SPEED = 10 |
Definition at line 150 of file SrConstants.h.
| const int SraLogic::PERCEIVER_ACTIVELY_LOOKING = +3 |
Definition at line 288 of file SrConstants.h.
| const int SraLogic::PERCEIVER_ALERT = 0 |
Definition at line 287 of file SrConstants.h.
| const int SraLogic::PERCEIVER_DISTACTED_PENALTY = -2 |
Definition at line 286 of file SrConstants.h.
| const int SraLogic::PERCEIVER_USING_VIRTUAL_REALITY = -6 |
Definition at line 289 of file SrConstants.h.
| const Attribute SraLogic::PERSONA_BIOFEEDBACKFILTER = Charisma |
Definition at line 529 of file SrConstants.h.
| const Attribute SraLogic::PERSONA_FIREWALL = Willpower |
Definition at line 521 of file SrConstants.h.
| const Attribute SraLogic::PERSONA_MATRIXINI = Intuition |
Definition at line 532 of file SrConstants.h.
| const int SraLogic::PERSONA_MATRIXINI_BONUS = 1 |
Definition at line 534 of file SrConstants.h.
| const int SraLogic::PERSONA_MATRIXINI_MULTIPLIER = 2 |
Definition at line 533 of file SrConstants.h.
| const int SraLogic::PERSONA_MATRIXINI_PASSES = 3 |
Definition at line 535 of file SrConstants.h.
| const Attribute SraLogic::PERSONA_RESPONSE = Intuition |
Definition at line 522 of file SrConstants.h.
| const int SraLogic::PERSONA_RESPONSE_FULLVRBONUS = 1 |
Definition at line 523 of file SrConstants.h.
| const Attribute SraLogic::PERSONA_SIGNAL = Resonance |
Definition at line 526 of file SrConstants.h.
| const int SraLogic::PERSONA_SIGNAL_DIVISOR = 2 |
Definition at line 527 of file SrConstants.h.
| const Attribute SraLogic::PERSONA_SYSTEM = Logic |
Definition at line 528 of file SrConstants.h.
| const int SraLogic::PHYSICAL_DMG_BASE = 8 |
Definition at line 47 of file SrConstants.h.
Referenced by GetPlayerPhysicalDamageTrack().
| const int SraLogic::PHYSICAL_DMG_DIVISOR = 2 |
Definition at line 49 of file SrConstants.h.
Referenced by GetPlayerPhysicalDamageTrack().
| const float SraLogic::PROFESSIONALRATING_ACCEPTABLELOSSES_ELITE = 1.0f |
Definition at line 596 of file SrConstants.h.
Referenced by GetAcceptableLossPercentage().
Definition at line 594 of file SrConstants.h.
Referenced by GetAcceptableLossPercentage().
| const float SraLogic::PROFESSIONALRATING_ACCEPTABLELOSSES_TRAINED = 0.75f |
Definition at line 595 of file SrConstants.h.
Referenced by GetAcceptableLossPercentage().
| const float SraLogic::PROFESSIONALRATING_ACCEPTABLELOSSES_UNTRAINED = 0.25f |
Definition at line 593 of file SrConstants.h.
Referenced by GetAcceptableLossPercentage().
Definition at line 338 of file SrConstants.h.
| const int SraLogic::RANGE_PENALTY_EXTREME = -3 |
Definition at line 337 of file SrConstants.h.
| const int SraLogic::RANGE_PENALTY_LONG = -2 |
Definition at line 336 of file SrConstants.h.
| const int SraLogic::RANGE_PENALTY_MEDIUM = -1 |
Definition at line 335 of file SrConstants.h.
| const int SraLogic::RANGE_PENALTY_SHORT = 0 |
Definition at line 334 of file SrConstants.h.
| const int SraLogic::RANGED_AIMED_SHOT_BONUS = 1 |
Definition at line 309 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_HAS_COVER = -1 |
Definition at line 317 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_HAS_LASERSIGHT = 1 |
Definition at line 314 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_HAS_OFFHANDWEAPON = -2 |
Definition at line 315 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_HAS_SMARTLINK = 2 |
Definition at line 313 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_IN_MELEE = -3 |
Definition at line 311 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_IN_VEHICLE = -3 |
Definition at line 312 of file SrConstants.h.
| const int SraLogic::RANGED_ATTACKER_RUNNING = -2 |
Definition at line 310 of file SrConstants.h.
| const int SraLogic::RANGED_TARGET_GOOD_COVER = -4 |
Definition at line 319 of file SrConstants.h.
Referenced by GetCoverPenalty().
| const int SraLogic::RANGED_TARGET_PARTIAL_COVER = -2 |
Definition at line 318 of file SrConstants.h.
Referenced by GetCoverPenalty().
| const int SraLogic::RANGED_TARGET_TOTAL_COVER = -6 |
Definition at line 320 of file SrConstants.h.
Referenced by GetCoverPenalty(), GetGlarePenalty(), GetHeavyFogPenalty(), GetLightFogPenalty(), GetPartialLightPenalty(), GetThermalSmokePenalty(), GetTotalDarknessPenalty(), and GetTotalVisibilityPenalty().
| const float SraLogic::REAL_HOURS_PER_GAME_DAY = 6 |
Definition at line 15 of file SraConstants.h.
| const float SraLogic::REAL_HOURS_PER_GAME_HOUR = REAL_HOURS_PER_GAME_DAY/24.0f |
Definition at line 16 of file SraConstants.h.
Referenced by GetTimeForOneBoxStunInRealHours().
| const int SraLogic::RECOIL_FIRST_BURST = -2 |
Definition at line 324 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::RECOIL_FIRST_LONGBURST = -5 |
Definition at line 326 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::RECOIL_FIRST_SEMIAUTO = 0 |
Definition at line 322 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::RECOIL_FULLAUTO = -9 |
Definition at line 328 of file SrConstants.h.
| const int SraLogic::RECOIL_HEAVY_MULTIPLIER = 2 |
Definition at line 329 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::RECOIL_SECOND_BURST = -3 |
Definition at line 325 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::RECOIL_SECOND_LONGBURST = -6 |
Definition at line 327 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::RECOIL_SECOND_SEMIAUTO = -1 |
Definition at line 323 of file SrConstants.h.
Referenced by GetRecoilPenalty().
| const int SraLogic::SEARCH_AVERAGE = 4 |
Definition at line 516 of file SrConstants.h.
| const int SraLogic::SEARCH_EASY = 2 |
Definition at line 515 of file SrConstants.h.
| const int SraLogic::SEARCH_EXTREME = 16 |
Definition at line 518 of file SrConstants.h.
| const int SraLogic::SEARCH_HARD = 8 |
Definition at line 517 of file SrConstants.h.
| const int SraLogic::SIGHT_FAR_AWAY = -3 |
Definition at line 299 of file SrConstants.h.
Referenced by GetSightDistancePenalty().
| const int SraLogic::SIGHT_IMMEDIATE_VICINITY = 0 |
Definition at line 297 of file SrConstants.h.
Referenced by GetSightDistancePenalty().
| const int SraLogic::SIGHT_NOT_IMMEDIATE_VICINITY = -2 |
Definition at line 298 of file SrConstants.h.
Referenced by GetSightDistancePenalty().
| const int SraLogic::SIGNAL_RANGE_0 = 3 |
Definition at line 489 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_1 = 40 |
Definition at line 490 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_2 = 100 |
Definition at line 491 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_3 = 400 |
Definition at line 492 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_4 = 1000 |
Definition at line 493 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_5 = 4000 |
Definition at line 494 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_6 = 10000 |
Definition at line 495 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_7 = 40000 |
Definition at line 496 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_8 = 100000 |
Definition at line 497 of file SrConstants.h.
| const int SraLogic::SIGNAL_RANGE_9 = 400000 |
Definition at line 498 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_BEGINNER = 1 |
Definition at line 272 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_ELITE = 6 |
Definition at line 277 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_EXPORT = 5 |
Definition at line 276 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_LEGENDARY = 7 |
Definition at line 278 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_NOVICE = 2 |
Definition at line 273 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_PROFESSIONAL = 3 |
Definition at line 274 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_UNTRAINED = 0 |
Definition at line 271 of file SrConstants.h.
| const int SraLogic::SKILL_RATING_VETERAN = 4 |
Definition at line 275 of file SrConstants.h.
| const int SraLogic::SKILL_SPECIALIZATION_BONUS = 2 |
Definition at line 283 of file SrConstants.h.
| const int SraLogic::SOUND_FAR_AWAY = -3 |
Definition at line 293 of file SrConstants.h.
Referenced by GetSoundDistancePenalty().
| const int SraLogic::SOUND_IMMEDIATE_VICINITY = 0 |
Definition at line 291 of file SrConstants.h.
Referenced by GetSoundDistancePenalty().
| const int SraLogic::SOUND_INTERFERING = -2 |
Definition at line 295 of file SrConstants.h.
| const int SraLogic::SOUND_NOT_IMMEDIATE_VICINITY = -2 |
Definition at line 292 of file SrConstants.h.
Referenced by GetSoundDistancePenalty().
| const int SraLogic::STUN_DMG_BASE = 8 |
Definition at line 43 of file SrConstants.h.
Referenced by GetPlayerStunDamageTrack().
| const int SraLogic::STUN_DMG_DIVISOR = 2 |
Definition at line 45 of file SrConstants.h.
Referenced by GetPlayerStunDamageTrack().
| const int SraLogic::THRESHOLD_AVERAGE = 2 |
Definition at line 37 of file SrConstants.h.
| const int SraLogic::THRESHOLD_EASY = 1 |
Definition at line 36 of file SrConstants.h.
| const int SraLogic::THRESHOLD_EXTREME = 4 |
Definition at line 39 of file SrConstants.h.
| const int SraLogic::THRESHOLD_HARD = 3 |
Definition at line 38 of file SrConstants.h.
| const int SraLogic::TROLL_ARMOR_BONUS = 1 |
Definition at line 259 of file SrConstants.h.
| const int SraLogic::TROLL_MAX_AGI = 7 |
Definition at line 248 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_BOD = 15 |
Definition at line 247 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_CHA = 6 |
Definition at line 251 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_INI = 16 |
Definition at line 255 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_INT = 7 |
Definition at line 252 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_LOG = 7 |
Definition at line 253 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_REA = 9 |
Definition at line 249 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_STR = 15 |
Definition at line 250 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAX_WIL = 9 |
Definition at line 254 of file SrConstants.h.
Referenced by GetTrollMax().
| const int SraLogic::TROLL_MAXSTART_AGI = 5 |
Definition at line 238 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_BOD = 10 |
Definition at line 237 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_CHA = 4 |
Definition at line 241 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_INI = 11 |
Definition at line 245 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_INT = 5 |
Definition at line 242 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_LOG = 5 |
Definition at line 243 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_REA = 6 |
Definition at line 239 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_STR = 10 |
Definition at line 240 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MAXSTART_WIL = 6 |
Definition at line 244 of file SrConstants.h.
Referenced by GetTrollMaxStart().
| const int SraLogic::TROLL_MIN_AGI = 1 |
Definition at line 228 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_BOD = 5 |
Definition at line 227 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_CHA = 1 |
Definition at line 231 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_INI = 2 |
Definition at line 235 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_INT = 1 |
Definition at line 232 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_LOG = 1 |
Definition at line 233 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_REA = 1 |
Definition at line 229 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_STR = 5 |
Definition at line 230 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_MIN_WIL = 1 |
Definition at line 234 of file SrConstants.h.
Referenced by GetTrollMin().
| const int SraLogic::TROLL_REACH_BONUS = 1 |
Definition at line 258 of file SrConstants.h.
Referenced by GetNaturalReachBonus().
| const int SraLogic::TROLL_RUN_SPEED = 35 |
Definition at line 262 of file SrConstants.h.
| const Vision SraLogic::TROLL_VISION = (Vision)(NormalVision | ThermographicVision) |
Definition at line 257 of file SrConstants.h.
| const int SraLogic::TROLL_WALK_SPEED = 15 |
Definition at line 261 of file SrConstants.h.
| const int SraLogic::VISIBILITY_FULLDARK_ASTRAL = 0 |
Definition at line 344 of file SrConstants.h.
Referenced by GetTotalDarknessPenalty().
| const int SraLogic::VISIBILITY_FULLDARK_LOWLIGHT = -6 |
Definition at line 342 of file SrConstants.h.
Referenced by GetTotalDarknessPenalty().
| const int SraLogic::VISIBILITY_FULLDARK_NORMAL = -6 |
Definition at line 341 of file SrConstants.h.
Referenced by GetTotalDarknessPenalty().
| const int SraLogic::VISIBILITY_FULLDARK_THERMOGRAPHIC = -3 |
Definition at line 343 of file SrConstants.h.
Referenced by GetTotalDarknessPenalty().
| const int SraLogic::VISIBILITY_GLARE_ASTRAL = 0 |
Definition at line 354 of file SrConstants.h.
Referenced by GetGlarePenalty(), and GetLightFogPenalty().
| const int SraLogic::VISIBILITY_GLARE_LOWLIGHT = -1 |
Definition at line 352 of file SrConstants.h.
Referenced by GetGlarePenalty(), and GetLightFogPenalty().
| const int SraLogic::VISIBILITY_GLARE_NORMAL = -1 |
Definition at line 351 of file SrConstants.h.
Referenced by GetGlarePenalty(), and GetLightFogPenalty().
| const int SraLogic::VISIBILITY_GLARE_THERMOGRAPHIC = -1 |
Definition at line 353 of file SrConstants.h.
Referenced by GetGlarePenalty(), and GetLightFogPenalty().
| const int SraLogic::VISIBILITY_HEAVYFOG_ASTRAL = 0 |
Definition at line 364 of file SrConstants.h.
Referenced by GetHeavyFogPenalty().
| const int SraLogic::VISIBILITY_HEAVYFOG_LOWLIGHT = -2 |
Definition at line 362 of file SrConstants.h.
Referenced by GetHeavyFogPenalty().
| const int SraLogic::VISIBILITY_HEAVYFOG_NORMAL = -4 |
Definition at line 361 of file SrConstants.h.
Referenced by GetHeavyFogPenalty().
| const int SraLogic::VISIBILITY_HEAVYFOG_THERMOGRAPHIC = -2 |
Definition at line 363 of file SrConstants.h.
Referenced by GetHeavyFogPenalty().
| const int SraLogic::VISIBILITY_LIGHTFOG_ASTRAL = 0 |
Definition at line 359 of file SrConstants.h.
| const int SraLogic::VISIBILITY_LIGHTFOG_LOWLIGHT = -1 |
Definition at line 357 of file SrConstants.h.
| const int SraLogic::VISIBILITY_LIGHTFOG_NORMAL = -2 |
Definition at line 356 of file SrConstants.h.
| const int SraLogic::VISIBILITY_LIGHTFOG_THERMOGRAPHIC = 0 |
Definition at line 358 of file SrConstants.h.
| const int SraLogic::VISIBILITY_PARTIALLIGHT_ASTRAL = 0 |
Definition at line 349 of file SrConstants.h.
Referenced by GetPartialLightPenalty().
| const int SraLogic::VISIBILITY_PARTIALLIGHT_LOWLIGHT = 0 |
Definition at line 347 of file SrConstants.h.
Referenced by GetPartialLightPenalty().
| const int SraLogic::VISIBILITY_PARTIALLIGHT_NORMAL = -2 |
Definition at line 346 of file SrConstants.h.
Referenced by GetPartialLightPenalty().
| const int SraLogic::VISIBILITY_PARTIALLIGHT_THERMOGRAPHIC = -2 |
Definition at line 348 of file SrConstants.h.
Referenced by GetPartialLightPenalty().
| const int SraLogic::VISIBILITY_THERMALSMOKE_ASTRAL = 0 |
Definition at line 369 of file SrConstants.h.
Referenced by GetThermalSmokePenalty().
| const int SraLogic::VISIBILITY_THERMALSMOKE_LOWLIGHT = -2 |
Definition at line 367 of file SrConstants.h.
Referenced by GetThermalSmokePenalty().
| const int SraLogic::VISIBILITY_THERMALSMOKE_NORMAL = -4 |
Definition at line 366 of file SrConstants.h.
Referenced by GetThermalSmokePenalty().
| const int SraLogic::VISIBILITY_THERMALSMOKE_THERMOGRAPHIC = -6 |
Definition at line 368 of file SrConstants.h.
Referenced by GetThermalSmokePenalty().
| const int SraLogic::WOUNDMODIFIER_DIVISOR = 3 |
Definition at line 395 of file SrConstants.h.
Referenced by GetWoundModifier().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.