Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿš€ Feat : ๋ชจ๋“  ์Šคํ‚ฌ ์ƒ์„ฑ #36

Closed
2 of 6 tasks
meongmeongmin opened this issue Sep 12, 2024 · 0 comments
Closed
2 of 6 tasks
Assignees
Labels
enhancement New feature or request

Comments

@meongmeongmin
Copy link
Member

meongmeongmin commented Sep 12, 2024

์„ค๋ช…

  • ๋ฌธ์ œ ์„ค๋ช…: SkillData.json ํŒŒ์ผ์„ ์ฐธ๊ณ ํ•˜์—ฌ, JSON์— ์ •์˜๋œ ๋ชจ๋“  ์Šคํ‚ฌ์„ ์ƒ์„ฑํ•˜๊ณ  ์ด๋ฅผ SkillBase ํด๋ž˜์Šค๋ฅผ ์ƒ์†๋ฐ›์•„ ๊ตฌํ˜„ํ•œ๋‹ค. ์Šคํ‚ฌ์€ ๊ฐ๊ฐ ๊ณ ์œ ํ•œ ์†์„ฑ๊ณผ ๊ธฐ๋Šฅ์„ ๊ฐ€์ ธ์•ผ ํ•˜๋ฉฐ, ์ด๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ”Œ๋ ˆ์ด์–ด ๋ฐ ๋ชฌ์Šคํ„ฐ๊ฐ€ ์Šคํ‚ฌ์„ ์‚ฌ์šฉํ•œ๋‹ค.

์„ธ๋ถ€ ์š”๊ตฌ์‚ฌํ•ญ

  1. SkillBase ์ƒ์†

    • ๋ชจ๋“  ์Šคํ‚ฌ์€ SkillBase ํด๋ž˜์Šค๋ฅผ ์ƒ์†๋ฐ›์•„์•ผ ํ•˜๋ฉฐ, ์Šคํ‚ฌ์— ๋”ฐ๋ผ ๊ณ ์œ ํ•œ ๊ธฐ๋Šฅ์„ ์˜ค๋ฒ„๋ผ์ด๋”ฉํ•œ๋‹ค.
    • ์Šคํ‚ฌ์€ ํ”Œ๋ ˆ์ด์–ด ๋ฐ ๋ชฌ์Šคํ„ฐ๊ฐ€ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์–ด์•ผ ํ•˜๋ฉฐ, ํ•ด๋‹น ๋กœ์ง์„ ๊ณตํ†ต์œผ๋กœ ์ฒ˜๋ฆฌํ•œ๋‹ค.
  2. ์Šคํ‚ฌ ์ƒ์„ฑ ๋ฐ ์ดˆ๊ธฐํ™”

    • SkillData.json ํŒŒ์ผ์—์„œ ํŒŒ์‹ฑ๋œ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ๋ชจ๋“  ์Šคํ‚ฌ์„ ๋™์ ์œผ๋กœ ์ƒ์„ฑํ•˜๊ณ , ๊ฐ ์Šคํ‚ฌ์˜ ์†์„ฑ์„ ์ดˆ๊ธฐํ™”ํ•œ๋‹ค.
    • ์Šคํ‚ฌ์˜ ์†์„ฑ(์˜ˆ: ๋ฐ๋ฏธ์ง€, ๋ฒ”์œ„, ์ฟจ๋‹ค์šด ๋“ฑ)์€ JSON ํŒŒ์ผ์— ์ •์˜๋œ ๊ฐ’์„ ์‚ฌ์šฉํ•œ๋‹ค.
  3. ์Šคํ‚ฌ ์ ์šฉ ๋ฐ ์‹คํ–‰

    • ์ƒ์„ฑ๋œ ์Šคํ‚ฌ์„ ์บ๋ฆญํ„ฐ์— ์ ์šฉํ•˜๊ณ , ์Šคํ‚ฌ ์‚ฌ์šฉ ์‹œ ์Šคํ‚ฌ์˜ ํšจ๊ณผ๊ฐ€ ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.
    • ์ฟจ๋‹ค์šด, ๋ฒ”์œ„ ์ œํ•œ, ๋ฐ๋ฏธ์ง€ ์ ์šฉ ๋“ฑ์˜ ๋กœ์ง์„ ๊ตฌํ˜„ํ•œ๋‹ค.

์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • SkillData.json ํŒŒ์ผ์„ ๋กœ๋“œํ•˜์—ฌ ์Šคํ‚ฌ ๋ฐ์ดํ„ฐ๋ฅผ ํŒŒ์‹ฑํ–ˆ๋Š”๊ฐ€?
  • ๋ชจ๋“  ์Šคํ‚ฌ์„ ์ƒ์„ฑํ–ˆ๋Š”๊ฐ€?
  • ๋ชจ๋“  ์Šคํ‚ฌ์ด SkillBase๋ฅผ ์ƒ์†๋ฐ›๊ณ  ์žˆ๋Š”๊ฐ€?
  • ์Šคํ‚ฌ์˜ ์†์„ฑ์ด JSON ํŒŒ์ผ์— ์ •์˜๋œ ๊ฐ’์— ๋”ฐ๋ผ ์ดˆ๊ธฐํ™”๋˜๋Š”๊ฐ€?
  • ์Šคํ‚ฌ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ ์šฉ๋˜๊ณ , ์‚ฌ์šฉ ์‹œ ํšจ๊ณผ๊ฐ€ ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜๋Š”๊ฐ€?
  • ์ฟจ๋‹ค์šด, ๋ฒ”์œ„, ๋ฐ๋ฏธ์ง€ ๋“ฑ์˜ ์Šคํ‚ฌ ๋กœ์ง์ด ์ •์ƒ์ ์œผ๋กœ ๋™์ž‘ํ•˜๋Š”๊ฐ€?

์ฝ”๋“œ ๊ตฌ์กฐ ์˜ˆ์‹œ

using Data;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MeleeNormalAttack : SkillBase
{
    public override bool Init()
    {
        if (base.Init() == false)
            return false;

        return true;
    }

    public override void SetInfo(CreatureController owner, Define.ESkillID skillID)
    {
        base.SetInfo(owner, skillID);

        Name = "Melee Normal Attack";
        Level = 1;  // test
    }

    public override bool DoSkill()
    {
        if (base.DoSkill() == false) 
            return false;

        Debug.Log("MeleeNormalAttack");

        foreach (var pos in SkillSize)
        {
            CreatureController target = Managers.Map.GetObject(pos) as CreatureController;
            if (target == null)
                continue;

            target.OnDamaged((SkillData.DamageMultiplier * Owner.Atk) - target.Def);
        }

        return true;
    }
}
@meongmeongmin meongmeongmin added the enhancement New feature or request label Sep 12, 2024
@meongmeongmin meongmeongmin self-assigned this Sep 12, 2024
meongmeongmin added a commit that referenced this issue Sep 12, 2024
- ์ƒˆ๋กœ์šด ์Šคํ‚ฌ `MeleeAoEAttack` ์ถ”๊ฐ€
- ์Šคํ‚ฌ ๊ด€๋ จ ๋„ค์ด๋ฐ ์ˆ˜์ •: `SizeRange` -> `SkillSize`๋กœ ๋ณ€๊ฒฝ
- `targetPosition` -> `targetPos`๋กœ ๋ณ€์ˆ˜๋ช… ์ผ๊ด„ ๋ณ€๊ฒฝ
meongmeongmin added a commit that referenced this issue Sep 29, 2024
- ๊ทผ์ ‘ ๊ด‘์—ญ ๊ณต๊ฒฉ ๊ธฐ๋Šฅ ๊ตฌํ˜„
- ๋งˆ๋‚˜(MP) 15๋ฅผ ์†Œ๋น„ํ•˜์—ฌ ์ ์„ ๊ณต๊ฒฉํ•˜๋Š” ๋กœ์ง ๊ตฌํ˜„
meongmeongmin added a commit that referenced this issue Sep 29, 2024
- ์ง์—…(ํด๋ž˜์Šค)๋ณ„๋กœ ์Šคํ‚ฌ์„ ๊ตฌ๋ถ„ํ•˜๊ธฐ ์œ„ํ•ด Mage ํด๋” ์ƒ์„ฑ
meongmeongmin added a commit that referenced this issue Sep 29, 2024
- ๋งˆ๋ฒ•์‚ฌ์˜ ๊ธฐ๋ณธ ์Šคํ‚ฌ์ธ Normal Magic ์Šคํ‚ฌ ์ถ”๊ฐ€
- ์  ํ•œ ๋ช…์„ ๊ณต๊ฒฉํ•˜๋ฉฐ, MP ์†Œ๋ชจ ์—†์ด ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ ๊ณต๊ฒฉ ๋ฐฉ์‹
meongmeongmin added a commit that referenced this issue Sep 29, 2024
- ์Šคํ‚ฌ ๋ฐ์ดํ„ฐ์—์„œ ๋งˆ๋ฒ•์‚ฌ ์Šคํ‚ฌ ํฌ๊ธฐ์— ๋Œ€ํ•œ ์ž˜๋ชป๋œ ๊ฐ’ ์ˆ˜์ •
- ์Šคํ‚ฌ ๋ฒ”์œ„ ๋ฐ ํฌ๊ธฐ ์กฐ์ • ๋กœ์ง์„ ํ™•์ธํ•˜์—ฌ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ
meongmeongmin added a commit that referenced this issue Sep 29, 2024
- ๋งˆ๋‚˜(MP) 5๋ฅผ ์†Œ๋น„ํ•˜์—ฌ ์ ์„ ๊ณต๊ฒฉํ•˜๋Š” Magic 02 ์Šคํ‚ฌ ์ถ”๊ฐ€
meongmeongmin added a commit that referenced this issue Sep 29, 2024
- ๋งˆ๋‚˜(MP) 15๋ฅผ ์†Œ๋น„ํ•˜์—ฌ ์ ์„ ๊ณต๊ฒฉํ•˜๋Š” Strong AoE Magic ์Šคํ‚ฌ ์ถ”๊ฐ€
@meongmeongmin meongmeongmin closed this as completed by moving to Done in Turn-basedRPG Tasks Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant