740 |
740 |
741 usedRope = usedWeapons[amRope] ~= nil |
741 usedRope = usedWeapons[amRope] ~= nil |
742 usedPortal = usedWeapons[amPortalGun] ~= nil |
742 usedPortal = usedWeapons[amPortalGun] ~= nil |
743 usedSaucer = usedWeapons[amJetpack] ~= nil |
743 usedSaucer = usedWeapons[amJetpack] ~= nil |
744 |
744 |
|
745 usedWeapons[amNothing] = nil |
745 usedWeapons[amRope] = nil |
746 usedWeapons[amRope] = nil |
746 usedWeapons[amPortalGun] = nil |
747 usedWeapons[amPortalGun] = nil |
747 usedWeapons[amJetpack] = nil |
748 usedWeapons[amJetpack] = nil |
748 |
749 |
749 usedOther = next(usedWeapons) ~= nil |
750 usedOther = next(usedWeapons) ~= nil |
750 |
751 |
751 if usedOther then -- smth besides skip, rope, portal or saucer used |
752 if usedOther then -- smth besides nothing, skip, rope, portal or saucer used |
752 raceType = "unknown race" |
753 raceType = "unknown race" |
753 elseif usedRope and not usedPortal and not usedSaucer then |
754 elseif usedRope and not usedPortal and not usedSaucer then |
754 raceType = "rope race" |
755 raceType = "rope race" |
755 elseif not usedRope and usedPortal and not usedSaucer then |
756 elseif not usedRope and usedPortal and not usedSaucer then |
756 raceType = "portal race" |
757 raceType = "portal race" |