Remove "need a more accurate gun" message please

I tired of this message, I have 10 rifle skill and 10 gun skill, yet this shutid message is keep pissed me off

my M2010 ESR rifle, are greater sniper rifle on the combat, on 15 tiles feet, almost never miss the target

and this is message is so f*** up, that keep bother me for the got damn accurate gun! is geting annoying, even I does hit the target.

I think player should be take the gun whatever they please, not need this keep remind that they supposed to do

and this message is also appear when the player shooting arrow with the bow or the crossbow, I mean crossbow are not even is a gun

hope someone remove this message, or at least someone told me how to remove, I’m tried of this shit.

or at least someone told me how to remove
  1. If you don’t have it, get the source, get the compiler and other tools needed, see http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile

  2. Edit the file “src/ranged.cpp” (any simple text editor will do), search for a line containing “You’ll need a more accurate gun to keep improving” and so on. Remove the line completely, but only that line.

Before:

    } else if( one_in(30) ) {
        add_msg_if_player(m_info, _("You'll need a more accurate gun to keep improving your aim."));
    }

After:

    } else if( one_in(30) ) {
    }
  1. Compile (see http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile again) and enjoy the game.

an option to turn off (default on) that message should be good

[quote=“BevapDin, post:2, topic:9396”]

or at least someone told me how to remove

  1. If you don’t have it, get the source, get the compiler and other tools needed, see http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile

  2. Edit the file “src/ranged.cpp” (any simple text editor will do), search for a line containing “You’ll need a more accurate gun to keep improving” and so on. Remove the line completely, but only that line.

Before:

    } else if( one_in(30) ) {
        add_msg_if_player(m_info, _("You'll need a more accurate gun to keep improving your aim."));
    }

After:

    } else if( one_in(30) ) {
    }
  1. Compile (see http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile again) and enjoy the game.[/quote]

Appreciate for help, sadly, I know nothing about those tool how to work because my poor english knowing, so guess I just waiting someone who can actually edit this stuff then…

For now, I changing thorwing weapon become my range weapon. until this message gone, or at least get edit.

Do all of the various messages that show up when performing an action that is unable to advance your skill show up when you have learning disabled through the @ menu for that skill?

Afraid not, the systems for capping skill gain are all ad-hoc, there isn’t one central system for managing it, so it tends to not include a lot of checks like that.

I can definitely see adding a few checks, like are you at max skill already or similar. Even better is if we push these decisions down into a sub-system that manages the outcome of practicing.