-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major update to factorio 2.0: base game (non SA)
- Loading branch information
1 parent
ef44a9c
commit 21119d8
Showing
30 changed files
with
15,718 additions
and
7,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Drawing; | ||
using System.Linq; | ||
|
||
namespace Foreman | ||
{ | ||
public interface Quality : DataObjectBase | ||
{ | ||
Quality NextQuality { get; } | ||
Quality PrevQuality { get; } | ||
double NextProbability { get; } | ||
|
||
int Level { get; } | ||
double BeaconPowerMultiplier { get; } | ||
double MiningDrillResourceDrainMultiplier { get; } | ||
|
||
} | ||
|
||
public class QualityPrototype : DataObjectBasePrototype, Quality | ||
{ | ||
public Quality NextQuality { get; internal set; } | ||
public Quality PrevQuality { get; internal set; } | ||
public double NextProbability { get; set; } | ||
|
||
public int Level { get; set; } | ||
public double BeaconPowerMultiplier { get; set; } | ||
public double MiningDrillResourceDrainMultiplier { get; set; } | ||
|
||
public QualityPrototype(DataCache dCache, string name, string friendlyName, string order) : base(dCache, name, friendlyName, order) | ||
{ | ||
Enabled = true; | ||
|
||
Level = 0; | ||
BeaconPowerMultiplier = 1; | ||
MiningDrillResourceDrainMultiplier = 1; | ||
} | ||
|
||
public override string ToString() { return string.Format("Quality T{0}: {1}", Level, Name); } | ||
} | ||
} |
Oops, something went wrong.