share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua
changeset 5827 a416f1070fdf
parent 5141 2fb6555011d3
child 8043 da083f8d95e6
--- a/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua	Fri Sep 09 15:36:30 2011 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua	Fri Sep 09 15:52:59 2011 +0200
@@ -18,16 +18,16 @@
 
 function randomAmmo()
     local n = 3   --"points" to be allocated on weapons
-    
+
     --pick random weapon and subtract cost
     local r = GetRandom(table.maxn(weapons_values)) + 1
     local picked_items = {}
     table.insert(picked_items, weapons[r])
     n = n - weapons_values[r]
-    
-    
+
+
     --choose any weapons or utilities to use up remaining n
-    
+
     while n > 0 do
         local items = {}
         local items_values = {}
@@ -63,12 +63,12 @@
                 end
             end
         end
-        
+
         local r = GetRandom(table.maxn(items_values)) + 1
         table.insert(picked_items, items[r])
         n = n - items_values[r]
     end
-    
+
     return picked_items
 end
 
@@ -111,7 +111,7 @@
 
 function onAmmoStoreInit()
     SetAmmo(amSkip, 9, 0, 0, 0)
-    
+
     SetAmmo(amExtraDamage, 0, 1, 0, 1)
     SetAmmo(amInvulnerable, 0, 1, 0, 1)
     SetAmmo(amExtraTime, 0, 1, 0, 1)