mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-28 02:57:52 +03:00
* Уэээээээ * Почти настрадались * Скоро конец.... * СКОРО * Мышки плакали, кололись, но продолжали упорно жрать кактус * Все ближе! * Это такой конец? * Книжка говна * фиксики * ОНО ЖИВОЕ * Телепорт * разное * Added byond * ивенты теперь работают * Разфикс телепорта * Свет мой зеркальце скажи, да всю правду доложи - Я ль робастней всех на свете? * Разное * Еще многа всего * Многа разнава * Скоро конец.... * ЭТО КОНЕЦ * Фикс линтера (ну, или я на это надеюсь) * Еще один фикс линтера * Победа! * фиксики * пу пу пу * Фикс подмастерья * Мисклик * Высокочастотный меч * Неймспейсы * Пул способностей мага
49 lines
2.0 KiB
C#
49 lines
2.0 KiB
C#
// SPDX-FileCopyrightText: 2022 metalgearsloth <comedian_vs_clown@hotmail.com>
|
|
// SPDX-FileCopyrightText: 2023 AJCM-git <60196617+AJCM-git@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2023 DrSmugleaf <DrSmugleaf@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2023 DrSmugleaf <drsmugleaf@gmail.com>
|
|
// SPDX-FileCopyrightText: 2024 AJCM <AJCM@tutanota.com>
|
|
// SPDX-FileCopyrightText: 2024 Aidenkrz <aiden@djkraz.com>
|
|
// SPDX-FileCopyrightText: 2024 Kira Bridgeton <161087999+Verbalase@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2024 PoTeletubby <108604614+PoTeletubby@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2024 keronshb <54602815+keronshb@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Magic.Components;
|
|
|
|
/// <summary>
|
|
/// Spellbooks can grant one or more spells to the user. If marked as <see cref="LearnPermanently"/> it will teach
|
|
/// the performer the spells and wipe the book.
|
|
/// Default behavior requires the book to be held in hand
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(SpellbookSystem))]
|
|
public sealed partial class SpellbookComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// List of spells that this book has. This is a combination of the WorldSpells, EntitySpells, and InstantSpells.
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public readonly List<EntityUid> Spells = new();
|
|
|
|
/// <summary>
|
|
/// The three fields below is just used for initialization.
|
|
/// </summary>
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public Dictionary<EntProtoId, int> SpellActions = new();
|
|
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float LearnTime = .75f;
|
|
|
|
/// <summary>
|
|
/// If true, the spell action stays even after the book is removed
|
|
/// </summary>
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool LearnPermanently;
|
|
} |