Author Topic: Back after a long brake with some mod plans...  (Read 460 times)

Offline Theundyingcode

  • NPC
  • **
  • Posts: 103
  • Mutant Cyborg With a Nuclear Tank
    • View Profile
Re: Back after a long brake with some mod plans...
« Reply #15 on: September 12, 2017, 04:40:17 AM »
https://github.com/CleverRaven/Cataclysm-DDA/blob/44d7c843ff59601d058180700b7ae2058ceb09cd/src/player.cpp#L2009-L2024

Code: [Select]
    if( is_wearing( "roller_blades" ) ) {
        if( on_road ) {
            movecost *= 0.5f;
        } else {
            movecost *= 1.5f;
        }
    }
    // Quad skates might be more stable than inlines,
    // but that also translates into a slower speed when on good surfaces.
    if( is_wearing( "rollerskates" ) ) {
        if( on_road ) {
            movecost *= 0.7f;
        } else {
            movecost *= 1.3f;
        }
    }

I went and read that entire file... Apparently I missed it... now I feel like an idiot... still = wants an overhaul, they should make you go faster on floors as well.

EDIT: Their should be something about them in melee.cpp that I missed as well...  I'm going to take a quick break from the AI and do the movement overhaul so to allow for stuff to be added.  Shouldn't take too long as I have it all planned out but c++ is a new language for me and i'm spending most of my day elsewhere.
« Last Edit: September 12, 2017, 07:18:48 AM by Theundyingcode »
Mars is currently the only planet populated entirely by robots. Therefore Martian invasion is the same thing as the robots taking over.

Good judgement comes from experience.
And experience?
Well, that comes from poor judgement.