Kroah's Game Reverse Engineering Page

 

~ Return of Heracles ~

You are here:  
  • Home
    • »  Return of Heracles
      • »  Reverse Engineering
        • »  Combat
          • »  Attack

Attack

If the Weapon Value is null, then no attack is performed.

The sequences of an attack are:

  • Hit Probability:

    • The Hit Probability is calculated and limited to [0; 30].
    • If a random number ∈ [0; 31] is <= to the Hit Probability, then the Attacker hits the Target (there's always 1/32 chance to miss).
  • Initial Weapon Damage:

    The Weapon Damage is calculated by adding two random numbers ∈ [0; Weapon Value]:

    • Weapon Damage = Random (0, Weapon Value) + Random (0, Weapon Value)
  • Special Attack:

    If the Weapon Type is Sword or Dagger and a random number ∈ [0; 255] is < to the Hit Probability (maximum probability of 15/128), then if the Target Armor Value is:

    • null, then a random number ∈ [0; 10] is added to the Weapon Damage (Message #1).
    • > to 0, then the Target Armor Value will be avoided (null for this Attack) (Message #2).
  • Weapon Resistance:

    If the Break Probability is verified, then the Weapon breaks (Message #5 and #6):

    • The Weapon Value is set to 0 for a Sword, 2 for a Dagger.
    • The Weapon is set to Not Poisoned.
    • The Weapon Skill is kept.
  • Armor Absorption:

    The Weapon Damage is reduced by the Target Armor Value:

    • Weapon Damage -= Target Armor Value
  • Weapon Poisoning (if the Weapon is Poisoned):

    • If the Weapon Damage isn't null, then the Weapon Damage is increased by a random number ∈ [0; 8].
    • If the Weapon is Temporary Poisoned, there's a probability of 1/3 that the Weapon Poisoned is unset.
  • Target Hit:

    The Weapon Damage is limited to [0, 31]. If the Weapon Damage is > to 0, then the Attacker has hurt the Target by the amount of the Weapon Damage, else the Target has absorbed all the damage.

    The verbs associated to the amount of damage are:

    DamageVerb
    1Scratches
    2Jabs
    3Hits
    4Clouts
    5Pounds
    6Smacks
    7Smites
    8, 9Whops
    10, 11Whacks
    12, 13Bashes
    14, 15Whomps
    [16; 19]Wallops
    [20; 23]Smashes
    [24; 27]Clobbers
    [28; 31]Lambastes
Visitors visitors since 05/01/2006. Sitemap
Copyright © 2006-2020 by Kroah. Total or partial reproduction forbidden.
All trademarks and copyrights are the property of their respective owners. All rights reserved.
Email Me      Get Firefox Powered by PHPEdit      Valid XHTML 1.1 Valid CSS