2024-10-04 12:53:34 +00:00
|
|
|
using ColdMint.scripts.projectile;
|
|
|
|
using ColdMint.scripts.weapon;
|
|
|
|
using Godot;
|
|
|
|
|
2024-10-04 02:21:09 +00:00
|
|
|
namespace ColdMint.scripts.pickable;
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-04 12:53:34 +00:00
|
|
|
/// <para>magic</para>
|
2024-10-04 02:21:09 +00:00
|
|
|
/// <para>法术</para>
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
2024-10-04 12:53:34 +00:00
|
|
|
///<para>For projectile weapons</para>
|
2024-10-04 02:21:09 +00:00
|
|
|
///<para>用于抛射体武器</para>
|
|
|
|
/// </remarks>
|
2024-10-04 12:53:34 +00:00
|
|
|
public partial class MagicPickAble : PickAbleTemplate, IMagic
|
2024-10-04 02:21:09 +00:00
|
|
|
{
|
2024-10-04 12:53:34 +00:00
|
|
|
private string? _projectilePath;
|
|
|
|
|
|
|
|
private PackedScene? _projectileScene;
|
|
|
|
public override void _Ready()
|
|
|
|
{
|
|
|
|
base._Ready();
|
|
|
|
if (_projectilePath != null)
|
|
|
|
{
|
|
|
|
_projectileScene = GD.Load<PackedScene>(_projectilePath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-04 02:21:09 +00:00
|
|
|
public override int ItemType
|
|
|
|
{
|
|
|
|
get => Config.ItemType.Magic;
|
|
|
|
}
|
2024-10-04 12:53:34 +00:00
|
|
|
|
|
|
|
public PackedScene? GetProjectile()
|
|
|
|
{
|
|
|
|
return _projectileScene;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void ModifyWeapon(ProjectileWeapon projectileWeapon)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void RestoreWeapon(ProjectileWeapon projectileWeapon)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void ModifyProjectile(Projectile projectile)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2024-10-04 02:21:09 +00:00
|
|
|
}
|