-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
257 additions
and
33 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
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,9 @@ | ||
using Content.Server.Vampire; | ||
using Content.Server.Objectives.Systems; | ||
|
||
namespace Content.Server.Objectives.Components; | ||
|
||
[RegisterComponent, Access(typeof(VampireSystem))] | ||
public sealed partial class BloodDrainConditionComponent : Component | ||
{ | ||
} |
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,26 @@ | ||
using Content.Server.Objectives.Components; | ||
using Content.Server.Objectives.Systems; | ||
using Content.Shared.Objectives.Components; | ||
using Content.Shared.Vampire.Components; | ||
using Content.Shared.Vampire; | ||
|
||
namespace Content.Server.Vampire; | ||
|
||
public sealed partial class VampireSystem | ||
{ | ||
[Dependency] private readonly NumberObjectiveSystem _number = default!; | ||
|
||
private void InitializeObjectives() | ||
{ | ||
|
||
SubscribeLocalEvent<BloodDrainConditionComponent, ObjectiveGetProgressEvent>(OnBloodDrainGetProgress); | ||
} | ||
|
||
private void OnBloodDrainGetProgress(EntityUid uid, BloodDrainConditionComponent comp, ref ObjectiveGetProgressEvent args) | ||
{ | ||
var target = _number.GetTarget(uid); | ||
if (target != 0 && TryComp<VampireComponent>(uid, out var vampirecomp)) | ||
args.Progress = MathF.Min(vampirecomp.TotalBloodDrank / target, 1f); | ||
else args.Progress = 1f; | ||
} | ||
} |
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,4 @@ | ||
ent-VampireSurviveObjective = Выжить | ||
.desc = Я должен выжить, чего бы этого мне не стоило. | ||
ent-VampireEscapeObjective = Улететь со станции живым и свободным. | ||
.desc = Я должен улететь на эвакуационном шаттле. Свободным. |
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
2 changes: 1 addition & 1 deletion
2
Resources/Locale/ru-RU/_strings/game-ticking/game-presets/preset-vampire.ftl
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
# Base | ||
|
||
- type: entity | ||
abstract: true | ||
parent: BaseObjective | ||
id: BaseVampireObjective | ||
components: | ||
- type: Objective | ||
difficulty: 1.5 | ||
issuer: objective-issuer-vampire | ||
- type: RoleRequirement | ||
roles: | ||
mindRoles: | ||
- VampireRole | ||
|
||
- type: entity | ||
abstract: true | ||
parent: [BaseVampireObjective, BaseStealObjective] | ||
id: BaseVampireStealObjective | ||
components: | ||
- type: StealCondition | ||
verifyMapExistence: false | ||
- type: Objective | ||
difficulty: 1.5 | ||
- type: ObjectiveLimit | ||
limit: 2 | ||
|
||
# Steal | ||
|
||
- type: entity | ||
parent: BaseVampireStealObjective | ||
id: CMOHyposprayVampireStealObjective | ||
components: | ||
- type: NotJobRequirement | ||
job: ChiefMedicalOfficer | ||
- type: StealCondition | ||
owner: job-name-cmo | ||
stealGroup: Hypospray | ||
|
||
- type: entity | ||
parent: BaseVampireStealObjective | ||
id: RDHardsuitVampireStealObjective | ||
components: | ||
- type: NotJobRequirement | ||
job: ResearchDirector | ||
- type: StealCondition | ||
owner: job-name-rd | ||
stealGroup: ClothingOuterHardsuitRd | ||
- type: Objective | ||
difficulty: 1 | ||
|
||
- type: entity | ||
parent: BaseVampireStealObjective | ||
id: EnergyShotgunVampireStealObjective | ||
components: | ||
- type: Objective | ||
difficulty: 2 | ||
- type: NotJobRequirement | ||
job: HeadOfSecurity | ||
- type: StealCondition | ||
stealGroup: WeaponEnergyShotgun | ||
owner: job-name-hos | ||
|
||
- type: entity | ||
parent: BaseVampireStealObjective | ||
id: MagbootsVampireStealObjective | ||
components: | ||
- type: NotJobRequirement | ||
job: ChiefEngineer | ||
- type: StealCondition | ||
stealGroup: ClothingShoesBootsMagAdv | ||
owner: job-name-ce | ||
|
||
- type: entity | ||
parent: BaseVampireStealObjective | ||
id: ClipboardVampireStealObjective | ||
components: | ||
- type: NotJobRequirement | ||
job: Quartermaster | ||
- type: StealCondition | ||
stealGroup: BoxFolderQmClipboard | ||
owner: job-name-qm | ||
|
||
- type: entity | ||
abstract: true | ||
parent: BaseVampireStealObjective | ||
id: BaseCaptainVampireObjective | ||
components: | ||
- type: Objective | ||
difficulty: 2.5 | ||
- type: NotJobRequirement | ||
job: Captain | ||
|
||
- type: entity | ||
parent: BaseCaptainVampireObjective | ||
id: CaptainIDVampireStealObjective | ||
components: | ||
- type: StealCondition | ||
stealGroup: CaptainIDCard | ||
|
||
- type: entity | ||
parent: BaseCaptainVampireObjective | ||
id: CaptainJetpackVampireStealObjective | ||
components: | ||
- type: StealCondition | ||
stealGroup: JetpackCaptainFilled | ||
|
||
- type: entity | ||
parent: BaseCaptainVampireObjective | ||
id: CaptainGunVampireStealObjective | ||
components: | ||
- type: StealCondition | ||
stealGroup: WeaponAntiqueLaser | ||
owner: job-name-captain | ||
|
||
# States | ||
|
||
- type: entity | ||
parent: [BaseVampireObjective, BaseSurviveObjective] | ||
id: VampireSurviveObjective | ||
name: Survive | ||
description: I must survive no matter what. | ||
components: | ||
- type: Objective | ||
icon: | ||
sprite: Interface/Actions/actions_vampire.rsi | ||
state: deathsembrace | ||
|
||
- type: entity | ||
parent: [BaseVampireObjective, BaseLivingObjective] | ||
id: VampireEscapeObjective | ||
name: Escape to centcomm alive and unrestrained. | ||
description: I need to escape on the evacuation shuttle. Undercover. | ||
components: | ||
- type: Objective | ||
difficulty: 1.3 | ||
icon: | ||
sprite: Structures/Furniture/chairs.rsi | ||
state: shuttle | ||
- type: EscapeShuttleCondition | ||
|
||
# Kill | ||
|
||
- type: entity | ||
parent: [BaseVampireObjective, BaseKillObjective] | ||
id: VampireKillRandomPersonObjective | ||
description: Do it however you like, just make sure they don't make it to centcomm. | ||
components: | ||
- type: Objective | ||
difficulty: 1.75 | ||
unique: false | ||
- type: TargetObjective | ||
title: objective-condition-kill-person-title | ||
- type: PickRandomPerson | ||
|
||
# Drain | ||
|
||
- type: entity | ||
parent: BaseVampireObjective | ||
id: VampireDrainObjective | ||
components: | ||
- type: Objective | ||
icon: | ||
sprite: Interface/Actions/actions_vampire.rsi | ||
state: fangs_extended | ||
- type: NumberObjective | ||
min: 100 | ||
max: 500 | ||
title: objective-condition-drain-title | ||
description: objective-condition-drain-description | ||
- type: BloodDrainCondition |