Skip to content

Commit

Permalink
fix for saving growing-time when current weight was adjusted. added s…
Browse files Browse the repository at this point in the history
…erver-field for creatures. added aberration creatures.
  • Loading branch information
cadaei committed Dec 12, 2017
1 parent cb86e8a commit 776db33
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 62 deletions.
1 change: 1 addition & 0 deletions ARKBreedingStats/Creature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Creature : IEquatable<Creature>
public Int16 topness; // permille of mean of wildlevels compared to toplevels
public string owner = "";
public string tribe = "";
public string server = "";
public string note; // user defined note about that creature
public Guid guid;
public bool isBred;
Expand Down
77 changes: 51 additions & 26 deletions ARKBreedingStats/CreatureInfoInput.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion ARKBreedingStats/CreatureInfoInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ public CreatureStatus CreatureStatus
tt.SetToolTip(buttonStatus, "Status: " + status.ToString());
}
}
public string CreatureServer
{
get { return cbServer.Text; }
set { cbServer.Text = value; }
}
public Creature mother
{
get
Expand Down Expand Up @@ -174,7 +179,7 @@ public bool ShowSaveButton
set
{
buttonSaveChanges.Visible = value;
buttonAdd2Library.Location = new Point((value ? 154 : 88), 339);
buttonAdd2Library.Location = new Point((value ? 154 : 88), 362);
buttonAdd2Library.Size = new Size((value ? 68 : 134), 37);
}
}
Expand Down Expand Up @@ -203,7 +208,10 @@ private void numericUpDownWeight_ValueChanged(object sender, EventArgs e)
{
updateMaturation = false;
if (Values.V.species[speciesIndex].breeding != null && weightStat.Input > 0)
{
dhmsInputGrown.Timespan = new TimeSpan(0, 0, (int)(Values.V.species[speciesIndex].breeding.maturationTimeAdjusted * (1 - (double)numericUpDownWeight.Value / weightStat.Input)));
dhmsInputGrown.changed = true;
}
else dhmsInputGrown.Timespan = TimeSpan.Zero;
updateMaturationPercentage();
updateMaturation = true;
Expand Down Expand Up @@ -256,6 +264,16 @@ public string[] OwnersTribes
}
}

public string[] ServersList
{
set
{
var l = new AutoCompleteStringCollection();
l.AddRange(value);
cbServer.AutoCompleteCustomSource = l;
}
}

public DateTime domesticatedAt
{
set
Expand Down
Loading

0 comments on commit 776db33

Please sign in to comment.