partially implemented loot system

This commit is contained in:
william341 2017-07-28 14:26:14 -07:00
parent 5c6d90ce3d
commit a9779111b5
6 changed files with 82 additions and 34 deletions

View file

@ -70,27 +70,6 @@ namespace ShiftOS.Frontend.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to /* ShiftOS Exploits data file
/// *
/// * This file contains information about all exploits in the game&apos;s campaign.
/// *
/// */
///
///[
/// {
/// FriendlyName: &quot;FTP Exploit&quot;,
/// ExploitName: &quot;ftpwn&quot;
/// EffectiveAgainstPort: &quot;FileServer&quot;,
/// }
///].
/// </summary>
public static string Exploits {
get {
return ResourceManager.GetString("Exploits", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to /* ShiftOS hackables data file
/// *
@ -105,7 +84,7 @@ namespace ShiftOS.Frontend.Properties {
/// Password: &quot;h0ldy0urc0l0ur&quot;,
/// PasswordHint: &quot;Prepare to hold your colour...&quot;,
/// WelcomeMessage: &quot;Don&apos;t make fun of SpamSyndicate web design.&quot;,
/// FirewallStrength: 1,
/// FirewallStrength: 0,
/// LootRarity: 1,
/// LootAmount: 4,
/// ConnectionTimeoutLevel: 4,
@ -151,9 +130,16 @@ namespace ShiftOS.Frontend.Properties {
///[
/// {
/// FriendlyName: &quot;FTP Payload&quot;,
/// PayloadName: &quot;ftpull&quot;
/// PayloadName: &quot;ftpull&quot;,
/// EffectiveAgainstFirewall: 1,
/// EffectiveAgainst: &quot;FileServer&quot;,
/// },
/// {
/// FriendlyName: &quot;Ping Spam&quot;,
/// PayloadName: &quot;keepalive&quot;,
/// EffectiveAgainstFirewall: 1,
/// EffectiveAgainst: &quot;SSHServer&quot;,
/// Function: 1,
/// }
///].
/// </summary>
@ -173,26 +159,26 @@ namespace ShiftOS.Frontend.Properties {
///[
/// {
/// FriendlyName: &quot;SMTP mailserver (unencrypted)&quot;,
/// AttachTo: &quot;EmailServer&quot;
/// AttachTo: &quot;EmailServer&quot;,
/// Value: 25,
/// Name: &quot;smtp&quot;,
/// },
/// {
/// FriendlyName: &quot;File Transfer Protocol&quot;,
/// AttachTo: &quot;FileServer&quot;
/// AttachTo: &quot;FileServer&quot;,
/// Value: 21,
/// Name: &quot;ftp&quot;,
/// },
/// {
/// FriendlyName: &quot;ShiftSSH server&quot;,
/// AttachTo: &quot;SSHServer&quot;
/// AttachTo: &quot;SSHServer&quot;,
/// Value: 22,
/// Name: &quot;ssh&quot;,
/// },
/// {
/// FriendlyName: &quot;MySQL server&quot;,
/// AttachTo: &quot;Database&quot;
/// Val [rest of string was truncated]&quot;;.
/// AttachTo: &quot;Database&quot;,
/// [rest of string was truncated]&quot;;.
/// </summary>
public static string Ports {
get {

View file

@ -8,11 +8,12 @@
{
FriendlyName: "FTP Exploit",
ExploitName: "ftpwn",
EffectiveAgainstPort: "FileServer",
EffectiveAgainstPort: "FileServer"
},
{
FriendlyName: "SSH Exploit",
ExploitName: "sshardline",
EffectiveAgainstPort: "SSHServer",
Dependencies: "sploitset_sshardline"
}
]

View file

@ -1,3 +1,20 @@
//Loot information table
/* ShiftOS Loot data file
*
* This file contains information about all loot in the game's campaign.
*
*/
[]
[
{
FriendlyName: "Force Heartbeat",
LootName: "sploitset_keepalive",
Rarity: 1,
PointTo: "sploitset_keepalive",
},
{
FriendlyName: "SSHardline",
LootName: "sploitset_sshardline",
Rarity: 1,
PointTo: "sploitset_sshardline",
}
]

View file

@ -9,13 +9,14 @@
FriendlyName: "FTP Payload",
PayloadName: "ftpull",
EffectiveAgainstFirewall: 1,
EffectiveAgainst: "FileServer",
EffectiveAgainst: "FileServer"
},
{
FriendlyName: "Ping Spam",
FriendlyName: "Force Heartbeat",
PayloadName: "keepalive",
EffectiveAgainstFirewall: 1,
EffectiveAgainst: "SSHServer",
Function: 1,
Dependencies: "sploitset_keepalive"
}
]

View file

@ -1 +1,14 @@
[]
[
}
Name: "sploitset_keepalive",
Cost: 1000000000,
Description: "lolyouarentsupposedtobeabletobuythis",
Dependencies: "thisupgradeshouldneverexistever;sploitset_sshardline",
},
}
Name: "sploitset_sshardline",
Cost: 1000000000,
Description: "lolyouarentsupposedtobeabletobuythis",
Dependencies: "thisupgradeshouldneverexistever",
}
]

View file

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Objects
{
public class Loot
{
public string FriendlyName { get; set; }
public string LootName { get; set; }
public int Rarity { get; set; }
public string PointTo { get; set; }
public string ID
{
get
{
return LootName.ToLower().Replace(" ", "_");
}
}
public override string ToString()
{
return $"{FriendlyName} ({LootName})";
}
}
}