Kroah's Game Reverse Engineering Page

 

~ Alternate Reality ~

You are here:  
  • Home
    • »  Alternate Reality
      • »  Reverse Engineering
        • »  Establishments
          • »  Inns

Inns

Inn Establishment
  1. Sleeping

    The character can sleep up to 12 hours at the inn. The room base price does not depend on the rent duration.

    While sleeping:

    • Fatigue rate is null.
    • Thirst rate is halved.
    • Hunger rate is halved.
    • Every hour:
      • Fatigue is decreased by 1.
      • If the sleep for this hour is restful (see below), fatigue is decreased by an extra value of 6 and hit points are increased by 6.

    The probability to have a restful sleep increases with the room quality.

    According to the above rule, the average fatigue recovered per hour while sleeping is:

    • average fatigue recovered per hour = 1 + 6 * probability for a restful sleep

    The optimal sleeping time is reached when the daily recover reaches the daily fatigue:

    • daily recover = daily fatigue

    Which gives with a time unit of 1 hour:

    • average fatigue recovered per hour * number of hours asleep = fatigue increased per hour * number of hours awake

    The character becomes tired at a rate of 2 every hour:

    • average fatigue recovered per hour * number of hours asleep = 2 * number of hours awake

    By replacing the average fatigue recovered per hour, it becomes:

    • (1 + 6 * probability for a restful sleep) * number of hours asleep = 2 * number of hours awake

    The number of hours the character is awake is equal to 24 minus the number of hours asleep:

    • (1 + 6 * probability for a restful sleep) * number of hours asleep = 2 * (24 - number of hours asleep)

    The optimal sleeping time is then deduced:

    • (1 + 6 * probability for a restful sleep) * number of hours asleep + 2 * number of hours asleep = 48
    • number of hours asleep * (3 + 6 * probability for a restful sleep) = 48
    • number of hours asleep = 48 / (3 + 6 * probability for a restful sleep)

    The column 'average needed hours of rest each day' in the following table is the optimal sleeping time.

    RoomBase price
    (in coppers)
    Probability for
    a restful sleep
    Base price
    for 1 %
    (in coppers)
    Average fatigue
    recovered per hour
    while sleeping
    Average needed
    hours of rest
    each day
    Average hours
    remaining
    in the day
    Average base cost
    for each hour awake
    (in coppers)
    /256%
    the common area floor103011.72 %0.851.7012.97 hours11.03 hours1.81
    a bed with no bath204517.58 %1.142.0511.85 hours12.15 hours1.65
    a bed with common bath306023.44 %1.282.4110.88 hours13.12 hours2.29
    a room with common bath408533.20 %1.202.999.62 hours14.38 hours2.78
    a room with bath5010039.06 %1.283.348.99 hours15.01 hours3.33
    a Premium Room10014054.69 %1.834.287.64 hours16.36 hours6.11
    a Deluxe Room20017066.41 %3.014.986.88 hours17.12 hours11.68
    a Small Suite40020078.13 %5.125.696.24 hours17.76 hours22.52
    a Suite80024093.75 %8.536.635.56 hours18.44 hours43.39
    Our BEST Suite160025599.61 %16.066.985.35 hours18.65 hours85.77

    Remarks:

    • For example, if the character wants to rest an average of 9 hours per day, he must sleep at least in 'a room with bath'.
    • The cheapest way to stay healthy is to sleep 12 hours in 'a bed with no bath' (base price of 20 coppers).
    • The character can't sleep more than 12 hours in a row, that's why the base price for 'the common area floor' is doubled when calculating the average base cost for each hour awake (average needed hours of rest is > 12, so he must rent the room 2 times). How many hours

    Each inn applies a factor to the room base price:

    InnPrice
    factor
    Green Boar Inn100 %
    Lazy Griffin Inn200 %
    Sleeping Dragon Inn50 %
    Traveller's Inn600 %
    Midnight Inn300 %
    Warrior's Retreat75 %
    Royal Resort Inn800 %
  2. Jobs

    Every day, a roll is made for each inn to determine if it offers a job:

    InnProbability to offer a job
    /256%
    Green Boar Inn6425 %
    Lazy Griffin Inn15460 %
    Sleeping Dragon Inn6425 %
    Traveller's Inn17970 %
    Midnight Inn5622 %
    Warrior's Retreat7730 %
    Royal Resort Inn10240 %

    In the case a job is available, a random one is chosen.

    JobIncome per hour
    (in coppers)
    RequirementFatigue rate
    while working
    Hurt probability
    StatMinMinor wound (4 HP)Major wound (8 HP)Total
    Bellhop10 to 24Strength180.687515.95 %3.97 %19.92 %
    Desk Clerk18 to 20Charisma160.56253.75 %0.15 %3.90 %
    Janitor12 to 15Stamina170.62508.50 %0.88 %9.38 %

    Remarks:

    • The duration of the job is randomly chosen between 3 to 8 hours.
    • The character has to sober up before applying for a job (he must not be Drunk or Very Drunk, but Tipsy is allowed).
    • The game contains unused (bugged?) code where the character alignment is increased by 1 after working (probability of 23.8%).
Visitors visitors since 05/01/2006. Sitemap
Copyright © 2006-2016 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