SkriptLang / skript-reflect

Powerful reflection utilities for Skript.
MIT License
56 stars 19 forks source link

Add accepts change condition #94

Open Pikachu920 opened 3 months ago

Pikachu920 commented 3 months ago

Aims to add an easy to to see if an expression accepts a changemode

Fusezion commented 3 months ago

let me know if I'm over simplifying this but couldn't we just add ChangeMode as a enum in skript-reflect and do something like

%objects% supports %changemode% changer
if slot supports delete changer
if player's tool supports set changer

might be better to suffix modes with changer by default since idk if it'll conflict with related effects

since expressions and likely classinfos have getAcceptedChangeModes which returns a map it should be as simple as a null check

Pikachu920 commented 3 months ago

getAcceptedChangeModes

getAcceptedChangeModes is intended for documentation purposes, not real logic