Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revolution gamemode and job flavor text improvements. #2766

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions Content.Server/GameTicking/GamePresets/PresetRevolution.cs
@@ -0,0 +1,13 @@
using System.Collections.Generic;
using Robust.Server.Interfaces.Player;

namespace Content.Server.GameTicking.GamePresets
{
public class PresetRevolution : GamePreset
{
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
{

}
}
}
7 changes: 7 additions & 0 deletions Content.Server/GameTicking/GameRules/RuleRevolution.cs
@@ -0,0 +1,7 @@
namespace Content.Server.GameTicking.GameRules
{
public class RuleRevolution : GameRule
{

}
}
8 changes: 7 additions & 1 deletion Content.Server/Mobs/Roles/Job.cs
Expand Up @@ -24,7 +24,13 @@ public override void Greet()
base.Greet();

var chat = IoCManager.Resolve<IChatManager>();
chat.DispatchServerMessage(Mind.Session, $"You're a new {Name}. Do your best!");
chat.DispatchServerMessage(Mind.Session, $"You are the {Name}.");
if(!string.IsNullOrEmpty(Prototype.Supervisors))
chat.DispatchServerMessage(Mind.Session, $"As the {Name}, you answer directly to {Prototype.Supervisors}. Special circumstances may change this.");

// TODO: Uncomment this when we have adminhelp.
//if(Prototype.RequireAdminNotify)
// chat.DispatchServerMessage(Mind.Session, "You are playing a job that is important for Game Progression. If you have to disconnect, please notify the admins via adminhelp.");
}
}

Expand Down
6 changes: 6 additions & 0 deletions Content.Shared/Roles/JobPrototype.cs
Expand Up @@ -40,6 +40,10 @@ public class JobPrototype : IPrototype, IIndexedPrototype

public string Icon { get; private set; }

public string Supervisors { get; private set; }

public bool RequireAdminNotify { get; private set; }

public JobSpecial Special { get; private set; }

public IReadOnlyCollection<string> Department { get; private set; }
Expand All @@ -59,6 +63,8 @@ public void LoadFrom(YamlMappingNode mapping)
srz.DataField(this, p => p.Access, "access", Array.Empty<string>());
srz.DataField(this, p => p.Icon, "icon", null);
srz.DataField(this, p => p.Special, "special", null);
srz.DataField(this, p => p.Supervisors, "supervisors", string.Empty);
srz.DataField(this, p => p.RequireAdminNotify, "requireAdminNotify", false);
}
}
}
2 changes: 2 additions & 0 deletions Resources/Prototypes/Roles/Jobs/Command/captain.yml
Expand Up @@ -4,6 +4,8 @@
head: true
positions: 1
startingGear: CaptainGear
requireAdminNotify: true
supervisors: NanoTrasen officers and Space law
department:
- Command
icon: "Captain"
Expand Down
Expand Up @@ -3,6 +3,7 @@
name: "head of personnel"
head: true
positions: 1
supervisors: the captain
startingGear: HoPGear
department:
- Command
Expand Down