Removed reflection hack and added nuke WeaponInfo to rules.ini
This commit is contained in:
@@ -79,11 +79,7 @@ namespace OpenRA.Effects
|
||||
void Explode(World world)
|
||||
{
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
var weapon = new WeaponInfo();
|
||||
//Epic reflection hack that'll probably break on mono
|
||||
typeof(WeaponInfo).GetField("Damage").SetValue(weapon, 1000);
|
||||
typeof(WeaponInfo).GetField("Projectile").SetValue(weapon, "NukeDown");
|
||||
typeof(WeaponInfo).GetField("Warhead").SetValue(weapon, "Nuke");
|
||||
var weapon = Rules.WeaponInfo["Atomic"];
|
||||
Combat.DoImpact(pos.ToInt2(), pos.ToInt2(), weapon, projectileDown, nukeWarhead, silo);
|
||||
}
|
||||
|
||||
|
||||
@@ -445,6 +445,12 @@ Speed=25
|
||||
Warhead=HE
|
||||
Report=MISSILE1
|
||||
|
||||
;Nuke (special case for Nuclear missile)
|
||||
[Atomic]
|
||||
Damage=1000
|
||||
Projectile=NukeDown
|
||||
Warhead=Nuke
|
||||
|
||||
|
||||
; ******* Projectile Statistics *******
|
||||
; Projectiles describe how and what image to use as the weapon flies
|
||||
@@ -817,6 +823,7 @@ DogJaw
|
||||
Heal
|
||||
SCUD
|
||||
UnitExplode
|
||||
Atomic
|
||||
|
||||
[TeslaZap]
|
||||
RenderAsTesla=true
|
||||
|
||||
Reference in New Issue
Block a user