Skills system (#247)

* init basic skill system

* add skill requirement to advanced melee weapon

* working hard

* more hard work

* shot skill issue

* Now the skills give you the components

* add job special autolearning skills

* traits recreating

* some tweaks

* remove bg and components for now

* sharpening now require skills

* add alchemist role on maps

* pestle skill issue
This commit is contained in:
Ed
2024-06-15 16:55:04 +03:00
committed by GitHub
parent 39bb249eb3
commit c5a8e96dca
39 changed files with 937 additions and 239 deletions

View File

@@ -33,6 +33,13 @@ public sealed partial class CP14AlchemyExtractionSystem : EntitySystem
_audio.PlayPvs(pestle.HitSound, mortar);
var ev = new PestleGrindingEvent()
{
User = args.User,
Target = args.Target,
};
RaiseLocalEvent(args.Used, ev);
if (!_random.Prob(pestle.Probability))
return;
@@ -86,3 +93,12 @@ public sealed partial class CP14AlchemyExtractionSystem : EntitySystem
_solutionContainer.TryAddSolution(solutionEnt.Value, juiceSolution);
}
}
/// <summary>
/// is triggered on the pestle when the player uses it to grind something.
/// </summary>
public sealed class PestleGrindingEvent : EntityEventArgs
{
public EntityUid User;
public EntityUid Target;
}