def setPlayerVital(index, vital, value):
    Player[index].char[TempPlayer[index].charNum].vitals[vital] = value

    if getPlayerMaxVital(index, vital) > getPlayerVital(index, vital):
        Player[index].char[TempPlayer[index].charNum].vitals[vital] = getPlayerMaxVital(index, vital)

    if getPlayerVital(index, vital) < 0:
        Player[index].char[TempPlayer[index].charNum].vitals[vital] = 0
dataset/ETHPy150Open marcusmoller/pyorpg-server/src/database.py/setPlayerVital/swapped operands of `>`