Conversation
…owfoundry#532) Base weapons were looked up in a `weapons` compendium that no longer exists (split into weapons-melee and weapons-ranged), so natural spirit attacks and unarmed strikes were never added. Look in both packs. When the sr5-compendiums module is disabled, actors were silently created without base items or spirit powers: warn the GM once per compendium. Also apply the Force-based corrosive spit values to the copied weapon instead of the compendium document. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #532
Quand on transforme un esprit invoqué en acteur, ses pouvoirs optionnels (et même ses pouvoirs de base) n'apparaissent pas sur la fiche. Diagnostic fait dans un monde réel :
system.optionalPowerscontient par ex.movement,fear).SR5_CompendiumUtility.getItemCompendium()ne trouve passr5-compendiums.fr_powers-creatureset renvoie une liste vide, avec seulement unsrLogde niveau 3. L'esprit est créé sans aucun pouvoir, sans aucun message.weaponsqui n'existe plus (le module l'a séparé enweapons-meleeetweapons-ranged). Même avec le module actif, les attaques des esprits (Engloutissement, Attaque élémentaire, Souffle nocif, Salive corrosive) et les « Mains nues » des PJ/PNJ n'étaient jamais ajoutées.Changes
modules/entities/actors/utilityCompendium.jsgetWeaponCompendiums()qui fusionneweapons-meleeetweapons-ranged, utilisé pargetBaseItems()etgetWeaponFromCompendium().getWeaponFromCompendium("corrosiveSpit")appliquait les valeurs basées sur la Puissance au document du compendium au lieu de la copie retournée : corrigé.lang/en.json,lang/fr.json: cléSR5.WARN_MissingCompendium.Checklist
npm testpassesnpx eslint modules/passes (or only pre-existing warnings)npm run build:csscompiles without errorsen.jsonandfr.json(if localization was touched)console.logleft in codeTesté dans Foundry 13.351 avec le système 13.0.0-alpha.25 : après activation du module, un esprit transformé en acteur a bien ses pouvoirs de base, ses pouvoirs optionnels et ses armes.
Screenshots
Pas de changement d'interface, hormis la notification d'avertissement quand le compendium est absent.
Suite
Le module
sr5-compendiumsn'étant pas public, je prépare une PR séparée qui permettra au MJ de choisir, dans les paramètres du système, quel compendium utiliser pour les pouvoirs de créatures, les pouvoirs de sprites et les armes de base.🤖 Generated with Claude Code