mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-26 18:17:12 +03:00
* Уэээээээ * Почти настрадались * Скоро конец.... * СКОРО * Мышки плакали, кололись, но продолжали упорно жрать кактус * Все ближе! * Это такой конец? * Книжка говна * фиксики * ОНО ЖИВОЕ * Телепорт * разное * Added byond * ивенты теперь работают * Разфикс телепорта * Свет мой зеркальце скажи, да всю правду доложи - Я ль робастней всех на свете? * Разное * Еще многа всего * Многа разнава * Скоро конец.... * ЭТО КОНЕЦ * Фикс линтера (ну, или я на это надеюсь) * Еще один фикс линтера * Победа! * фиксики * пу пу пу * Фикс подмастерья * Мисклик * Высокочастотный меч * Неймспейсы * Пул способностей мага
67 lines
2.0 KiB
C#
67 lines
2.0 KiB
C#
// SPDX-FileCopyrightText: 2024 AJCM <AJCM@tutanota.com>
|
|
// SPDX-FileCopyrightText: 2024 keronshb <54602815+keronshb@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2025 Aviu00 <93730715+Aviu00@users.noreply.github.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Magic.Components;
|
|
|
|
// TODO: Rename to MagicActionComponent or MagicRequirementsComponent
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMagicSystem))]
|
|
public sealed partial class MagicComponent : Component
|
|
{
|
|
// TODO: Split into different components?
|
|
// This could be the MagicRequirementsComp - which just is requirements for the spell
|
|
// Magic comp could be on the actual entities itself
|
|
// Could handle lifetime, ignore caster, etc?
|
|
// Magic caster comp would be on the caster, used for what I'm not sure
|
|
|
|
// TODO: Do After here or in actions
|
|
|
|
// TODO: Spell requirements
|
|
// A list of requirements to cast the spell
|
|
// Hands
|
|
// Any item in hand
|
|
// Spell takes up an inhand slot
|
|
// May be an action toggle or something
|
|
|
|
// TODO: List requirements in action desc
|
|
/// <summary>
|
|
/// Does this spell require Wizard Robes & Hat?
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public bool RequiresClothes;
|
|
|
|
/// <summary>
|
|
/// Does this spell require the user to speak?
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public bool RequiresSpeech;
|
|
|
|
// TODO: FreeHand - should check if toggleable action
|
|
// Check which hand is free to toggle action in
|
|
|
|
// Goobstation
|
|
[DataField]
|
|
public MagicSchool School = MagicSchool.Unset;
|
|
}
|
|
|
|
public enum MagicSchool : byte // Goobstation
|
|
{
|
|
Unset,
|
|
Holy,
|
|
Psychic,
|
|
Mime,
|
|
Restoration,
|
|
Evocation,
|
|
Transmutation,
|
|
Translocation,
|
|
Conjuration,
|
|
Necromancy,
|
|
Forbidden,
|
|
Sanguine,
|
|
Chuuni, // Specifically for chuuni invocations spell
|
|
} |