Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Oct 31, 2024
1 parent 63d9d39 commit 27d0360
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Content.Server/GameTicking/Rules/VampireRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,19 @@ public bool MakeVampire(EntityUid target, VampireRuleComponent rule)

if (HasComp<UserInterfaceComponent>(target))
_uiSystem.SetUiState(target, VampireMutationUiKey.Key, new VampireMutationBoundUserInterfaceState(vampireComponent.VampireMutations, vampireComponent.CurrentMutation));

var vampire = new Entity<VampireComponent>(target, vampireComponent);

RemComp<PerishableComponent>(vampire);

Check failure on line 88 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'PerishableComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 88 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'PerishableComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 88 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'PerishableComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 88 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'PerishableComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 88 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'PerishableComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 88 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'PerishableComponent' could not be found (are you missing a using directive or an assembly reference?)
RemComp<BarotraumaComponent>(vampire);

Check failure on line 89 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'BarotraumaComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'BarotraumaComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'BarotraumaComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'BarotraumaComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'BarotraumaComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'BarotraumaComponent' could not be found (are you missing a using directive or an assembly reference?)
RemComp<ThirstComponent>(vampire);

Check failure on line 90 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'ThirstComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'ThirstComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'ThirstComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'ThirstComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'ThirstComponent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in Content.Server/GameTicking/Rules/VampireRuleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'ThirstComponent' could not be found (are you missing a using directive or an assembly reference?)

vampireComponent.Balance = new() { { VampireComponent.CurrencyProto, 0 } };

rule.VampireMinds.Add(mindId);

if (HasComp<VampireComponent>(target))
{
_vampire.AddStartingAbilities(target);
_vampire.MakeVulnerableToHoly(target);
}
_vampire.AddStartingAbilities(vampire);
_vampire.MakeVulnerableToHoly(vampire);

Random random = new Random();

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Vampire/VampireSystem.Transform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void MakeVampire(EntityUid vampireUid)
/// <summary>
/// Add vulnerability to holy water when ingested or slashed, and take damage from the bible
/// </summary>
private void MakeVulnerableToHoly(Entity<VampireComponent> vampire)
public void MakeVulnerableToHoly(Entity<VampireComponent> vampire)
{
//React to being beaten with the bible
EnsureComp<UnholyComponent>(vampire);
Expand Down

0 comments on commit 27d0360

Please sign in to comment.