Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Fixing Stars!
Re: Fixing Stars! Sun, 24 November 2019 23:50 Go to previous messageGo to previous message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
Adding to the list (from StarsSupremacytool) : Currently checks for 22 or more superlatinum in a slot, prevents use of the 10th space dock for all races and prevents editing starbase design if there are partially completed ones in planet queue.

if (this.Races[num2].ShipDesigns[index] != null)
{
Design design = this.Races[num2].ShipDesigns[index];
foreach (DesignSlot slot in design.Slots)
{
if ((slot != null) && (((slot.CategoryID == Cool & (slot.ItemID == 11)) & (slot.Count >= 0x16)))
{
str = str + "You are not allowed to have 22 Superlatinum in one slot on the " + design.Name + " design\r\n";
}
}
}
index++;
}
while (index <= 15);
index = 0;
do
{
if (this.Races[num2].StarbaseDesigns[index] != null)
{
Design design2 = this.Races[num2].StarbaseDesigns[index];
foreach (DesignSlot slot2 in design2.Slots)
{
if ((slot2 != null) && (((slot2.CategoryID == Cool & (slot2.ItemID == 11)) & (slot2.Count >= 0x16)))
{
str = str + "You are not allowed to have 22 Superlatinum in one slot on the " + design2.Name + " design\r\n";
}
}
}

if (!this.Settings.AllowTenthStarbaseSlotToBeUsed[num2] && (this.Races[num2].StarbaseDesigns[9] != null))
{
str = str + "You are not allowed to use the 10th Starbase design slot\r\n";
}


if (!this.Settings.AllowDesignChangesToPartiallyCompletedItems[ num2])
{
int num6 = this.PlanetCount - 1;
for (int i = 0; i <= num6; i++)
{
Planet planet = this.Planets[i];
if (planet.ProductionQueue != null)
{
foreach (QueueItem item in planet.ProductionQueue)
{
if (((item.Completion > 0) && ((item.ItemID >= 0x20) & (item.ItemID <= 0x29))) && ((this.Races[num2].StarbaseDesigns[item.ItemID - 0x20] != null) && this.Races[num2].StarbaseDesigns[item.ItemID - 0x20].Dirty))
{
str = str + "You are not allowed to edit the starbase designs " + this.Races[num2].StarbaseDesigns[item.ItemID - 0x20].Name + " because one is already partially completed at Planet No " + Conversions.ToString((int) (i + 1)) + "\r\n";
}
}
}
}
}



https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is starstat.exe the same as starstat.c
Next Topic: Modifying the universe
Goto Forum:
  


Current Time: Sun Apr 28 03:20:36 EDT 2024