Look at prc_speed for racial speed settings. #338

Closed
opened 2024-03-03 11:22:02 -05:00 by Jaysyn · 1 comment
Owner

Look at prc_speed for racial speed settings. racialtypes.2da does nothing for this.

Look at prc_speed for racial speed settings. racialtypes.2da does nothing for this.
Jaysyn added this to the Looking Good! milestone 2024-03-03 11:22:02 -05:00
Jaysyn added the
enhancement
label 2024-03-03 11:22:02 -05:00
Jaysyn self-assigned this 2024-03-03 11:22:02 -05:00
Author
Owner

This is working as it's supposed to.

    // See if we should alter speed based on race
    if(GetPRCSwitch(PRC_PNP_RACIAL_SPEED))
    {
        nNewSpeed = StringToInt(Get2DACache("racialtypes", "Endurance", GetRacialType(oPC)));

        // Some races do not have speed listed, in that case default to current
        if(!nNewSpeed)
            nNewSpeed = 30;
            
        if (DEBUG) DoDebug("Racial Speed equals: "+IntToString(nNewSpeed));            
    }
This is working as it's supposed to. ``` // See if we should alter speed based on race if(GetPRCSwitch(PRC_PNP_RACIAL_SPEED)) { nNewSpeed = StringToInt(Get2DACache("racialtypes", "Endurance", GetRacialType(oPC))); // Some races do not have speed listed, in that case default to current if(!nNewSpeed) nNewSpeed = 30; if (DEBUG) DoDebug("Racial Speed equals: "+IntToString(nNewSpeed)); } ```
Sign in to join this conversation.
No description provided.