Topic: The ‘Rookie Gets Hurt’ event never triggers

  • Author
    Posts
  • #28183
    Avatar photoKelaros
    Participant

    The ‘Rookie Gets Hurt’ event (wiki page: https://battlebrothers.fandom.com/wiki/Rookie_Gets_Hurt) never triggers because of the wrong condition in the ‘rookie_gets_hurt_event.cnut’ file:

    local candidates = [];

    foreach( bro in brothers )
    {
    if (bro.getLevel() == 1 && !bro.getBackground().getID() == “background.slave” && !bro.getBackground().isCombatBackground() && bro.getPlaceInFormation() <= 17 && bro.getLifetimeStats().Battles >= 1)
    {
    candidates.push(bro);
    }
    }

    it should be

    bro.getBackground().getID() != “background.slave”
    not
    !bro.getBackground().getID() == “background.slave”

    I made a simple mod that replaces the ‘rookie_gets_hurt_event.cnut’ file with a fixed version and confirmed in the game that the event is now triggerable.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.