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
+6 -1
View File
@@ -3726,7 +3726,12 @@ void CC_Draw_Shape(void const * shapefile, int shapenum, int x, int y, WindowNum
Image_t* shape_image = NULL;
char tmp[512];
sprintf(tmp, "s_%I64u_%d_%d_%d_%d", shapefile, shapenum, rotation, fadingdata, flags);
if (CCGlobalShadowRender) {
sprintf(tmp, "h_%I64u_%d_%d_%d_%d", shapefile, shapenum, rotation, fadingdata, flags);
}
else {
sprintf(tmp, "s_%I64u_%d_%d_%d_%d", shapefile, shapenum, rotation, fadingdata, flags);
}
shape_image = Find_Image(tmp);
if (!shape_image)
+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);
+3
View File
@@ -7,6 +7,9 @@
[General]
; dev options
FastBuild=0
; crates
CrateMinimum=1 ; crates are normally one per human player but never below this number
CrateMaximum=255 ; crates can never exceed this quantity
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB