mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
partially implemented loot system
This commit is contained in:
parent
5c6d90ce3d
commit
a9779111b5
6 changed files with 82 additions and 34 deletions
42
ShiftOS.Frontend/Properties/Resources.Designer.cs
generated
42
ShiftOS.Frontend/Properties/Resources.Designer.cs
generated
|
@ -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's campaign.
|
||||
/// *
|
||||
/// */
|
||||
///
|
||||
///[
|
||||
/// {
|
||||
/// FriendlyName: "FTP Exploit",
|
||||
/// ExploitName: "ftpwn"
|
||||
/// EffectiveAgainstPort: "FileServer",
|
||||
/// }
|
||||
///].
|
||||
/// </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: "h0ldy0urc0l0ur",
|
||||
/// PasswordHint: "Prepare to hold your colour...",
|
||||
/// WelcomeMessage: "Don't make fun of SpamSyndicate web design.",
|
||||
/// FirewallStrength: 1,
|
||||
/// FirewallStrength: 0,
|
||||
/// LootRarity: 1,
|
||||
/// LootAmount: 4,
|
||||
/// ConnectionTimeoutLevel: 4,
|
||||
|
@ -151,9 +130,16 @@ namespace ShiftOS.Frontend.Properties {
|
|||
///[
|
||||
/// {
|
||||
/// FriendlyName: "FTP Payload",
|
||||
/// PayloadName: "ftpull"
|
||||
/// PayloadName: "ftpull",
|
||||
/// EffectiveAgainstFirewall: 1,
|
||||
/// EffectiveAgainst: "FileServer",
|
||||
/// },
|
||||
/// {
|
||||
/// FriendlyName: "Ping Spam",
|
||||
/// PayloadName: "keepalive",
|
||||
/// EffectiveAgainstFirewall: 1,
|
||||
/// EffectiveAgainst: "SSHServer",
|
||||
/// Function: 1,
|
||||
/// }
|
||||
///].
|
||||
/// </summary>
|
||||
|
@ -173,26 +159,26 @@ namespace ShiftOS.Frontend.Properties {
|
|||
///[
|
||||
/// {
|
||||
/// FriendlyName: "SMTP mailserver (unencrypted)",
|
||||
/// AttachTo: "EmailServer"
|
||||
/// AttachTo: "EmailServer",
|
||||
/// Value: 25,
|
||||
/// Name: "smtp",
|
||||
/// },
|
||||
/// {
|
||||
/// FriendlyName: "File Transfer Protocol",
|
||||
/// AttachTo: "FileServer"
|
||||
/// AttachTo: "FileServer",
|
||||
/// Value: 21,
|
||||
/// Name: "ftp",
|
||||
/// },
|
||||
/// {
|
||||
/// FriendlyName: "ShiftSSH server",
|
||||
/// AttachTo: "SSHServer"
|
||||
/// AttachTo: "SSHServer",
|
||||
/// Value: 22,
|
||||
/// Name: "ssh",
|
||||
/// },
|
||||
/// {
|
||||
/// FriendlyName: "MySQL server",
|
||||
/// AttachTo: "Database"
|
||||
/// Val [rest of string was truncated]";.
|
||||
/// AttachTo: "Database",
|
||||
/// [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
public static string Ports {
|
||||
get {
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
{
|
||||
FriendlyName: "FTP Exploit",
|
||||
ExploitName: "ftpwn",
|
||||
EffectiveAgainstPort: "FileServer",
|
||||
EffectiveAgainstPort: "FileServer"
|
||||
},
|
||||
{
|
||||
FriendlyName: "SSH Exploit",
|
||||
ExploitName: "sshardline",
|
||||
EffectiveAgainstPort: "SSHServer",
|
||||
Dependencies: "sploitset_sshardline"
|
||||
}
|
||||
]
|
|
@ -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",
|
||||
}
|
||||
]
|
|
@ -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"
|
||||
}
|
||||
]
|
|
@ -1 +1,14 @@
|
|||
[]
|
||||
[
|
||||
}
|
||||
Name: "sploitset_keepalive",
|
||||
Cost: 1000000000,
|
||||
Description: "lolyouarentsupposedtobeabletobuythis",
|
||||
Dependencies: "thisupgradeshouldneverexistever;sploitset_sshardline",
|
||||
},
|
||||
}
|
||||
Name: "sploitset_sshardline",
|
||||
Cost: 1000000000,
|
||||
Description: "lolyouarentsupposedtobeabletobuythis",
|
||||
Dependencies: "thisupgradeshouldneverexistever",
|
||||
}
|
||||
]
|
30
ShiftOS.Objects/Hacking/Loot.cs
Normal file
30
ShiftOS.Objects/Hacking/Loot.cs
Normal 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})";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue