Results 1 to 9 of 9

Thread: What is affecting creature speed and effectiveness at doing jobs?

  
  1. #1

    Default What is affecting creature speed and effectiveness at doing jobs?

    What is affecting creature speed and effectiveness at doing jobs?

    - Slapping them supposedly doubles the speed of everything creatures do (excluding creature spell recharge?) for 30 (?) seconds. Does that fade over time?

    - Same for using the speed creature keeper spell for 15-55 seconds (I suppose that's 15 seconds for 100 gold, 20 for 200, etc...?) (or the creature spell - how long does that last? I've heard that a lvl9 horny could stay permanently speeded, while a lvl10 couldn't, why is that?). Does it fade?

    - Must obey speeds creatures by 25% (does it work for enemy creatures in prison and torture room?)

    - A Vampire in the Scavenger room doubles the scavenging effectiveness of every (other?) creature.

    - A Warlock has a research value of 4, a troll a manufacturing value of 4, a beetle 1 for both.

    But what about the lvl and type of the creature? Is a lvl1 warlock, lvl1 dragon, lvl10 warlock and lvl10 dragon all equally effective at research? Same for lvl4 troll and lvl10 troll for manufacturing?

    How does the math work out? Is a slapped, speeded, must-obeyed warlock research compared to a regular non-must-obeyed beetle :
    - 4*2*2*1.25=20 times more effective?
    - 4*(1+(1+1+0.25))=13 times more effective?
    - some other value?

  2. #2
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    Code:
    long process_work_speed_on_work_value(struct Thing *thing, long base_val)
    {
        struct Dungeon *dungeon;
        struct CreatureControl *cctrl;
        long val;
        cctrl = creature_control_get_from_thing(thing);
        val = base_val;
        if (creature_affected_by_spell(thing, SplK_Speed))
            val = 2 * val;
        if (cctrl->slap_turns)
            val = 4 * val / 3;
        if (!is_neutral_thing(thing))
        {
            dungeon = get_dungeon(thing->owner);
            if (dungeon->tortured_creatures[thing->model] > 0)
                val = 4 * val / 3;
            if (dungeon->must_obey_turn != 0)
                val = 6 * val / 5;
        }
        return val;
    }
    So max values is:

    base * (2) * (4/3) * (4/3) * (6/5)

    Note - this may be a bit different in original DK, I can't remember if I modified the values.
    Last edited by mefistotelis; February 20th, 2014 at 22:02.

  3. #3

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    Thanks!

    So, in Keeper FX at least :
    - It's multiplicative
    - Speed gives +100%
    - Slapping gives +33%
    - Torturing gives +33% (If I understand the code correctly it needs to be a creature you own, and only works on the same kind of creatures?)
    - Must obey gives +20%

  4. #4

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    Plus of course every creature has a different base value in effectiveness on the job.

  5. #5
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    Quote Originally Posted by BlueTemplar View Post
    - Torturing gives +33% (If I understand the code correctly it needs to be a creature you own, and only works on the same kind of creatures?)
    No, the creature ownership doesn't matter; but the room where it is being tortured must be part of your dungeon (meaning, must be yours).
    Yes, the kind must match. Tortured troll = other trolls are faster.

  6. #6

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    So, can you confirm that the level of the creature doesn't matter?

    Because that's something that one would think obvious (and I've seen several people assuming it , notably on some let's plays), but isn't actually so...

  7. #7
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    Quote Originally Posted by BlueTemplar View Post
    So, can you confirm that the level of the creature doesn't matter?
    No no, it does matter.

    The base_val is computed with:

    Code:
    long compute_creature_work_value(long base_param,long efficiency,unsigned short crlevel)
    {
      long max_param;
      max_param = base_param + (crtr_conf.exp.job_value_increase_on_exp*base_param*(long)crlevel)/100;
      return (max_param * efficiency)/256;
    }
    so - creature level and room efficiency are also affecting it.

  8. #8

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    And what is the value of crtr_conf.exp.job_value_increase_on_exp ?

  9. #9
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: What is affecting creature speed and effectiveness at doing jobs?

    Quote Originally Posted by BlueTemplar View Post
    And what is the value of crtr_conf.exp.job_value_increase_on_exp ?
    It's from creature.cfg.

Similar Threads

  1. Replies: 10
    Last Post: February 21st, 2014, 11:18
  2. Imps going idle with jobs still to do
    By TomtheTall in forum KeeperFX
    Replies: 2
    Last Post: November 16th, 2013, 15:17
  3. Primary Jobs and scripting, question
    By Skyman in forum KeeperFX
    Replies: 3
    Last Post: January 1st, 2013, 22:10
  4. New Jobs avaliable – Music & SFX Composer
    By Mentor in forum War for the Overworld
    Replies: 12
    Last Post: October 8th, 2011, 00:49
  5. Single Tile Room Effectiveness
    By Zyraen in forum KeeperFX
    Replies: 2
    Last Post: June 10th, 2011, 04:18

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •