Skill progression system [Draft] (#1056)
* fuck all * clean up * remove knowledge books * Update base.yml * cl * fix #991 * fix * Update subgamemodes.yml * manual migration + recipes fix * Update comoss.yml * setup data * setup skills systems * more blacksmithing skills * Update base.yml * Create CP14SkillEffectAction.cs * skill button returns * base graph UI window * skill tree drawing * UI improve * pyro setup * skill trees selection, dragging control * refactor skill system: rename Skills to LearnedSkills, add experience tracking and learning logic * Create available.png * skill description generation setup * auto parsing skill names and descriptions * Hydrosophistry * water light fire and metamagic ported to skill tre * ice dagger spell returns * Update ice_dagger.yml * delete old files * Update modular_garde.yml * ice arrow spell * link graph with parallax * show experience counter * polish * puf * p * pipap * finally ready to merg? * fix * fix 2
This commit is contained in:
24
Content.Server/_CP14/Skill/CP14SkillSystem.cs
Normal file
24
Content.Server/_CP14/Skill/CP14SkillSystem.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Shared._CP14.Skill;
|
||||
using Content.Shared._CP14.Skill.Components;
|
||||
|
||||
namespace Content.Server._CP14.Skill;
|
||||
|
||||
public sealed partial class CP14SkillSystem : CP14SharedSkillSystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeNetworkEvent<CP14TryLearnSkillMessage>(OnClientRequestLearnSkill);
|
||||
}
|
||||
|
||||
private void OnClientRequestLearnSkill(CP14TryLearnSkillMessage ev, EntitySessionEventArgs args)
|
||||
{
|
||||
var entity = GetEntity(ev.Entity);
|
||||
|
||||
if (args.SenderSession.AttachedEntity != entity)
|
||||
return;
|
||||
|
||||
TryLearnSkill(entity, ev.Skill);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user