equal
deleted
inserted
replaced
802 local msgColor = getHogInfo(CurHog, 'clanColor') |
802 local msgColor = getHogInfo(CurHog, 'clanColor') |
803 local healHp = 0 |
803 local healHp = 0 |
804 PlaySound(sndShotgunReload) |
804 PlaySound(sndShotgunReload) |
805 |
805 |
806 if GetRandom(100) < emptyCrateChance then |
806 if GetRandom(100) < emptyCrateChance then |
807 AddCaption(loc("It's empty!"), msgColor, capgrpMessage) |
807 AddCaption(GetEngineString("TMsgStrId", sidEmptyCrate), msgColor, capgrpMessage) |
808 return |
808 return |
809 elseif GetRandom(100) < bonusCrateChance then |
809 elseif GetRandom(100) < bonusCrateChance then |
810 factor = 3 |
810 factor = 3 |
811 end |
811 end |
812 |
812 |
832 local msgColor = GetClanColor(GetHogClan(CurHog)) |
832 local msgColor = GetClanColor(GetHogClan(CurHog)) |
833 PlaySound(sndShotgunReload) |
833 PlaySound(sndShotgunReload) |
834 |
834 |
835 if GetRandom(100) < emptyCrateChance then |
835 if GetRandom(100) < emptyCrateChance then |
836 if IsHogLocal(CurHog) then |
836 if IsHogLocal(CurHog) then |
837 AddCaption(loc("It's empty!"), msgColor, capgrpMessage) |
837 AddCaption(GetEngineString("TMsgStrId", sidEmptyCrate), msgColor, capgrpMessage) |
838 end |
838 end |
839 return |
839 return |
840 elseif GetRandom(100) < bonusCrateChance then |
840 elseif GetRandom(100) < bonusCrateChance then |
841 factor = 2 * strength |
841 factor = 2 * strength |
842 end |
842 end |
878 local msgColor = GetClanColor(GetHogClan(CurHog)) |
878 local msgColor = GetClanColor(GetHogClan(CurHog)) |
879 PlaySound(sndShotgunReload) |
879 PlaySound(sndShotgunReload) |
880 |
880 |
881 if GetRandom(100) < emptyCrateChance then |
881 if GetRandom(100) < emptyCrateChance then |
882 if IsHogLocal(CurHog) then |
882 if IsHogLocal(CurHog) then |
883 AddCaption(loc("It's empty!"), msgColor, capgrpMessage) |
883 AddCaption(GetEngineString("TMsgStrId", sidEmptyCrate), msgColor, capgrpMessage) |
884 end |
884 end |
885 return |
885 return |
886 elseif GetRandom(100) < bonusCrateChance then |
886 elseif GetRandom(100) < bonusCrateChance then |
887 factor = 2 * strength |
887 factor = 2 * strength |
888 end |
888 end |