Added tesla coil side bar icon, added fastbuild option in rules.ini.

This commit is contained in:
Justin Marshall
2020-08-04 14:14:40 -07:00
parent f8699651b4
commit 72f75b1872
4 changed files with 18 additions and 2 deletions
+9 -1
View File
@@ -6735,7 +6735,15 @@ bool TechnoTypeClass::Read_INI(CCINIClass & ini)
SightRange = ini.Get_Int(Name(), "Sight", SightRange);
Level = ini.Get_Int(Name(), "TechLevel", Level);
MaxSpeed = MPHType(_Scale_To_256(ini.Get_Int(Name(), "Speed", fixed(MaxSpeed, 256) * 100)));
Cost = ini.Get_Int(Name(), "Cost", Cost);
bool fastBuild = ini.Get_Int("General", "FastBuild", 0);
if(fastBuild) {
Cost = 15;
}
else {
Cost = ini.Get_Int(Name(), "Cost", Cost);
}
MaxAmmo = ini.Get_Int(Name(), "Ammo", MaxAmmo);
Risk = Reward = Points = ini.Get_Int(Name(), "Points", Points);
Ownable = ini.Get_Owners(Name(), "Owner", Ownable);