share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 12017 a315ded26330
parent 12016 e93ee0bedad8
child 12018 7fdf381303b1
equal deleted inserted replaced
12016:e93ee0bedad8 12017:a315ded26330
   324 -- crates are made of this stuff
   324 -- crates are made of this stuff
   325 ---------------------------------
   325 ---------------------------------
   326 
   326 
   327 local atkArray =
   327 local atkArray =
   328 				{
   328 				{
   329 				{amBazooka, 	"amBazooka",		2, 	loc("Bazooka")},
   329 				{amBazooka, 	"amBazooka",		2},
   330 				{amBee, 		"amBee",			3, 	loc("Homing Bee")},
   330 				{amBee, 		"amBee",			3},
   331 				{amMortar, 		"amMortar",			21, loc("Mortar")},
   331 				{amMortar, 		"amMortar",			21},
   332 				{amDrill, 		"amDrill",			28, loc("Drill Rocket")},
   332 				{amDrill, 		"amDrill",			28},
   333 				{amSnowball, 	"amSnowball",		50, loc("Mudball")},
   333 				{amSnowball, 	"amSnowball",		50},
   334 
   334 
   335 				{amGrenade,		"amGrenade",		0, 	loc("Grenade")},
   335 				{amGrenade,		"amGrenade",		0},
   336 				{amClusterBomb,	"amClusterBomb",	1, 	loc("Cluster Bomb")},
   336 				{amClusterBomb,	"amClusterBomb",	1},
   337 				{amMolotov, 	"amMolotov",		39, loc("Molotov Cocktail")},
   337 				{amMolotov, 	"amMolotov",		39},
   338 				{amWatermelon, 	"amWatermelon",		25, loc("Watermelon Bomb")},
   338 				{amWatermelon, 	"amWatermelon",		25},
   339 				{amHellishBomb,	"amHellishBomb",	26, loc("Hellish Handgrenade")},
   339 				{amHellishBomb,	"amHellishBomb",	26},
   340 				{amGasBomb, 	"amGasBomb",		43, loc("Limburger")},
   340 				{amGasBomb, 	"amGasBomb",		43},
   341 
   341 
   342 				{amShotgun,		"amShotgun",		4, 	loc("Shotgun")},
   342 				{amShotgun,		"amShotgun",		4},
   343 				{amDEagle,		"amDEagle",			9, 	loc("Desert Eagle")},
   343 				{amDEagle,		"amDEagle",			9},
   344 				{amFlamethrower,"amFlamethrower",	45, loc("Flamethrower")},
   344 				{amFlamethrower,"amFlamethrower",	45},
   345 				{amSniperRifle,	"amSniperRifle",	37, loc("Sniper Rifle")},
   345 				{amSniperRifle,	"amSniperRifle",	37},
   346 				{amSineGun, 	"amSineGun",		44, loc("SineGun")},
   346 				{amSineGun, 	"amSineGun",		44},
   347 				{amIceGun, 		"amIceGun",			53, loc("Freezer")},
   347 				{amIceGun, 		"amIceGun",			53},
   348 				{amLandGun,		"amLandGun",		52, loc("Land Spray")},
   348 				{amLandGun,		"amLandGun",		52},
   349 
   349 
   350 				{amFirePunch, 	"amFirePunch",		11, loc("Shoryuken")},
   350 				{amFirePunch, 	"amFirePunch",		11},
   351 				{amWhip,		"amWhip",			12, loc("Whip")},
   351 				{amWhip,		"amWhip",			12},
   352 				{amBaseballBat, "amBaseballBat",	13, loc("Baseball Bat")},
   352 				{amBaseballBat, "amBaseballBat",	13},
   353 				{amKamikaze, 	"amKamikaze",		22, loc("Kamikaze")},
   353 				{amKamikaze, 	"amKamikaze",		22},
   354 				{amSeduction, 	"amSeduction",		24, loc("Seduction")},
   354 				{amSeduction, 	"amSeduction",		24},
   355 				{amHammer,		"amHammer",			47, loc("Hammer")},
   355 				{amHammer,		"amHammer",			47},
   356 
   356 
   357 				{amMine, 		"amMine",			8, 	loc("Mine")},
   357 				{amMine, 		"amMine",			8},
   358 				{amDynamite, 	"amDynamite",		10, loc("Dynamite")},
   358 				{amDynamite, 	"amDynamite",		10},
   359 				{amCake, 		"amCake",			23, loc("Cake")},
   359 				{amCake, 		"amCake",			23},
   360 				{amBallgun, 	"amBallgun",		29, loc("Ballgun")},
   360 				{amBallgun, 	"amBallgun",		29},
   361 				{amRCPlane,		"amRCPlane",		30, loc("RC Plane")},
   361 				{amRCPlane,		"amRCPlane",		30},
   362 				{amSMine,		"amSMine",			46, loc("Sticky Mine")},
   362 				{amSMine,		"amSMine",			46},
   363 
   363 
   364 				{amAirAttack,	"amAirAttack",		15, loc("Air Attack")},
   364 				{amAirAttack,	"amAirAttack",		15},
   365 				{amMineStrike,	"amMineStrike",		16, loc("Mine Strike")},
   365 				{amMineStrike,	"amMineStrike",		16},
   366 				{amDrillStrike,	"amDrillStrike",	49, loc("Drill Strike")},
   366 				{amDrillStrike,	"amDrillStrike",	49},
   367 				{amAirMine,		"amAirMine",		56, loc("Air Mine")},
   367 				{amAirMine,		"amAirMine",		56},
   368 				{amNapalm, 		"amNapalm",			27, loc("Napalm")},
   368 				{amNapalm, 		"amNapalm",			27},
   369 				{amPiano,		"amPiano",			42, loc("Piano Strike")},
   369 				{amPiano,		"amPiano",			42},
   370 
   370 
   371 				{amKnife,		"amKnife",			54, loc("Cleaver")},
   371 				{amKnife,		"amKnife",			54},
   372 
   372 
   373 				{amBirdy,		"amBirdy",			40, loc("Birdy")}
   373 				{amBirdy,		"amBirdy",			40},
   374 
   374 
   375 				}
   375 				}
   376 
   376 
   377 local utilArray =
   377 local utilArray =
   378 				{
   378 				{
   379 				{amBlowTorch, 		"amBlowTorch",		17, loc("BlowTorch")},
   379 				{amBlowTorch, 		"amBlowTorch",		17},
   380 				{amPickHammer,		"amPickHammer",		5, 	loc("PickHammer")},
   380 				{amPickHammer,		"amPickHammer",		5},
   381 				{amGirder, 			"amGirder",			18, loc("Girder")},
   381 				{amGirder, 			"amGirder",			18},
   382 				{amRubber, 			"amRubber",			55, loc("Rubber")},
   382 				{amRubber, 			"amRubber",			55},
   383 				{amPortalGun,		"amPortalGun",		41, loc("Personal Portal Device")},
   383 				{amPortalGun,		"amPortalGun",		41},
   384 
   384 
   385 				{amRope, 			"amRope",			7, 	loc("Rope")},
   385 				{amRope, 			"amRope",			7},
   386 				{amParachute, 		"amParachute",		14, loc("Parachute")},
   386 				{amParachute, 		"amParachute",		14},
   387 				{amTeleport,		"amTeleport",		19, loc("Teleport")},
   387 				{amTeleport,		"amTeleport",		19},
   388 				{amJetpack,			"amJetpack",		38, loc("Flying Saucer")},
   388 				{amJetpack,			"amJetpack",		38},
   389 
   389 
   390 				{amInvulnerable,	"amInvulnerable",	33, loc("Invulnerable")},
   390 				{amInvulnerable,	"amInvulnerable",	33},
   391 				{amLaserSight,		"amLaserSight",		35, loc("Laser Sight")},
   391 				{amLaserSight,		"amLaserSight",		35},
   392 				{amVampiric,		"amVampiric",		36, loc("Vampirism")},
   392 				{amVampiric,		"amVampiric",		36},
   393 
   393 
   394 				{amLowGravity, 		"amLowGravity",		31, loc("Low Gravity")},
   394 				{amLowGravity, 		"amLowGravity",		31},
   395 				{amExtraDamage, 	"amExtraDamage",	32, loc("Extra Damage")},
   395 				{amExtraDamage, 	"amExtraDamage",	32},
   396 				{amExtraTime,		"amExtraTime",		34, loc("Extra Time")},
   396 				{amExtraTime,		"amExtraTime",		34},
   397 
   397 
   398 				{amResurrector, 	"amResurrector",	48, loc("Resurrector")},
   398 				{amResurrector, 	"amResurrector",	48},
   399 				{amTardis, 			"amTardis",			51, loc("Tardis")},
   399 				{amTardis, 			"amTardis",			51},
   400 
   400 
   401 				{amSwitch,			"amSwitch",			20, loc("Switch Hog")}
   401 				{amSwitch,			"amSwitch",			20},
   402 				}
   402 				}
   403 
   403 
   404 				--skiphog is 6
   404 				--skiphog is 6
   405 
   405 
   406 ----------------------------
   406 ----------------------------
  1363 		pMode = {60,80,100,120,160,200,240,1,10,20,30,40,50}
  1363 		pMode = {60,80,100,120,160,200,240,1,10,20,30,40,50}
  1364 	elseif cat[cIndex] == loc("Health Crate Placement Mode") then
  1364 	elseif cat[cIndex] == loc("Health Crate Placement Mode") then
  1365 		pMode = {25,30,40,50,75,100,150,200,5,10,15,20}
  1365 		pMode = {25,30,40,50,75,100,150,200,5,10,15,20}
  1366 	elseif cat[cIndex] == loc("Weapon Crate Placement Mode") then
  1366 	elseif cat[cIndex] == loc("Weapon Crate Placement Mode") then
  1367 		for i = 1, #atkArray do
  1367 		for i = 1, #atkArray do
  1368 			pMode[i] = atkArray[i][4]
  1368 			pMode[i] = GetAmmoName(atkArray[i][1], false)
  1369 		end
  1369 		end
  1370 	elseif cat[cIndex] == loc("Utility Crate Placement Mode") then
  1370 	elseif cat[cIndex] == loc("Utility Crate Placement Mode") then
  1371 		for i = 1, #utilArray do
  1371 		for i = 1, #utilArray do
  1372 			pMode[i] = utilArray[i][4]
  1372 			pMode[i] = GetAmmoName(utilArray[i][1], false)
  1373 		end
  1373 		end
  1374 	elseif cat[cIndex] == loc("Mine Placement Mode") then
  1374 	elseif cat[cIndex] == loc("Mine Placement Mode") then
  1375 		pMode = {3000,4000,5000,0,1000,2000}
  1375 		pMode = {3000,4000,5000,0,1000,2000}
  1376 	elseif cat[cIndex] == loc("Dud Mine Placement Mode") then
  1376 	elseif cat[cIndex] == loc("Dud Mine Placement Mode") then
  1377 		pMode = {36,48,60,72,96,1,6,12,18,24}
  1377 		pMode = {36,48,60,72,96,1,6,12,18,24}