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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user