loathers / grimoire

Apache License 2.0
3 stars 8 forks source link

Make behavior consistent when equipping slotfully and slotlessly #92

Closed s-k-z closed 1 year ago

s-k-z commented 1 year ago

Somewhat unexpected behavior:

> js [].every((e)=>true);

Returned: true

> js [].some((e) => true);

Returned: false

By short circuiting this we get consistent equipping success/failure for both equipping an empty array with and without a slot specified.

Kasekopf commented 1 year ago

Thanks!