# HG changeset patch # User Wuzzy # Date 1491764073 -7200 # Node ID 2de020695c2068f45e71e84d1b7248343729f693 # Parent 1e3ab1e634f88d6181000d3520fe6f24031778c1 Add rubber duck to (Balanced) Random Weapon, Construction Mode, HedgeEditor diff -r 1e3ab1e634f8 -r 2de020695c20 share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua Sun Apr 09 00:51:26 2017 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua Sun Apr 09 20:54:33 2017 +0200 @@ -1,10 +1,10 @@ HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsScriptLoad("/Scripts/Tracker.lua") -local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amMine, amDEagle, amDynamite, amFirePunch, amWhip, amPickHammer, amBaseballBat, amMortar, amCake, amSeduction, amWatermelon, amHellishBomb, amDrill, amBallgun, amRCPlane, amSniperRifle, amMolotov, amBirdy, amBlowTorch, amGasBomb, amFlamethrower, amSMine, amKamikaze } +local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amMine, amDEagle, amDynamite, amFirePunch, amWhip, amPickHammer, amBaseballBat, amMortar, amCake, amSeduction, amWatermelon, amHellishBomb, amDrill, amBallgun, amRCPlane, amSniperRifle, amMolotov, amBirdy, amBlowTorch, amGasBomb, amFlamethrower, amSMine, amKamikaze, amDuck } --- G,C,B,B,S,M,D,D,F,W,P,B,M,C,S,W,H,D,B,R,S,M,B,B,G,F,S,K -local weapons_values = {1,1,1,2,1,1,1,2,1,1,1,2,1,3,1,3,3,2,3,3,1,1,2,1,1,2,2,1} +-- G,C,B,B,S,M,D,D,F,W,P,B,M,C,S,W,H,D,B,R,S,M,B,B,G,F,S,K,D +local weapons_values = {1,1,1,2,1,1,1,2,1,1,1,2,1,3,1,3,3,2,3,3,1,1,2,1,1,2,2,1,1} local airweapons = { amAirAttack, amMineStrike, amNapalm, amDrillStrike } diff -r 1e3ab1e634f8 -r 2de020695c20 share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua Sun Apr 09 00:51:26 2017 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua Sun Apr 09 20:54:33 2017 +0200 @@ -987,6 +987,8 @@ {amBirdy, "amBirdy", 0, 7*placeholder} + {amDuck, "amDuck", 0, 1*placeholder} + } utilArray = diff -r 1e3ab1e634f8 -r 2de020695c20 share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Sun Apr 09 00:51:26 2017 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Sun Apr 09 20:54:33 2017 +0200 @@ -364,6 +364,7 @@ {amKnife, "amKnife", 54}, {amBirdy, "amBirdy", 40}, + {amDuck, "amDuck", 57}, } diff -r 1e3ab1e634f8 -r 2de020695c20 share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua Sun Apr 09 00:51:26 2017 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua Sun Apr 09 20:54:33 2017 +0200 @@ -12,7 +12,7 @@ amBaseballBat, amTeleport, amMortar, amCake, amSeduction, amWatermelon, amHellishBomb, amDrill, amBallgun, amRCPlane, amSniperRifle, amMolotov, amBirdy, amBlowTorch, amGasBomb, - amFlamethrower, amSMine, amHammer } + amFlamethrower, amSMine, amHammer, amDuck } -- List of weapons that attack from the air local airweapons = { amAirAttack, amMineStrike, amNapalm, amDrillStrike }