From 11131e3b521a96dd8e07d0daad7c9200384d3996 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 8 May 2021 18:41:39 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Supprimer=20doublon=20p=C3=A9lerinage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packs/queues-de-dragon.db | 1 - packs/tables-diverses.db | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packs/queues-de-dragon.db b/packs/queues-de-dragon.db index 32da0f72..0416dcd5 100644 --- a/packs/queues-de-dragon.db +++ b/packs/queues-de-dragon.db @@ -23,7 +23,6 @@ {"_id":"JcTX8qMS0z8bmdVt","name":"Idée fixe : Boulimie. Manger au moins un point de sust. par heure","permission":{"default":0,"rYShh2P1DNavdoBD":3},"type":"queue","data":{"description":"

Prend effet immédiatement et dure jusqu'à la fin de l'heure du Château Dormant du lendemain.
Si passé ce délai, l'occasion de la manifester ne s'est pas présentée, la queue prend fin.

\n

Si elle entre en contradiction avec une autre queue, retirer.

","refoulement":1},"flags":{},"img":"boulimie.png","effects":[]} {"_id":"LlELEB0FhymLx6VM","name":"Désir lancinant : Passer une nuit sur une échelle","permission":{"default":0,"rYShh2P1DNavdoBD":3},"type":"queue","data":{"description":"

Tant que satisfaction n'est pas obtenue, aucun point d'expérience ne peut plus être gagné par l'exercice en cas de particulière et d'ajustement final négatif.
Les points d'expérience dus au stress ne sont pas affectés.

","refoulement":1},"flags":{},"img":"nuit_echelle.png","effects":[]} {"_id":"Ltgqj86rYQr8D8LW","name":"Désir lancinant","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"type":"queue","data":{"description":"

Tirer [[/r 1d20]] sur la table des @Compendium[foundryvtt-reve-de-dragon.tables-diverses.sVWhyr4wPnieuPP8]{Désirs lancinants}. Les désirs lancinants durent jusqu’à ce qu’ils soient satisfaits ou refoulés. Tant que satisfaction n’est pas obtenue, aucun point d’expérience ne peut plus être gagné par l’exercice en cas de particulière et d’ajustement final négatif. Les points d’expérience dus au stress ne sont pas affectés.

\n

 

","refoulement":1},"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/queue_dragon.webp","effects":[]} -{"_id":"NF4E7jTty1QGjaNj","name":"Pélerinage","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"type":"queue","data":{"description":"

Avant de pouvoir à nouveau faire usage du haut-rêve, y compris déclencher volontairement un sort mis en réserve, le haut-rêvant doit se rendre dans une certaine case des TMR déterminée aléatoirement. Un Passeur peut l’y téléporter, mais un Messager ne peut s’y rendre à sa place. Dès que la case est atteinte, le pèlerinage est accompli.

","refoulement":1},"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/queue_dragon.webp"} {"_id":"NpTDqICR7ZuToQrg","name":"Idée fixe : Refuser de monter dans les TMR","permission":{"default":0,"rYShh2P1DNavdoBD":3},"type":"queue","data":{"description":"

Prend effet immédiatement et dure jusqu'à la fin de l'heure du Château Dormant du lendemain.
Si passé ce délai, l'occasion de la manifester ne s'est pas présentée, la queue prend fin.

\n

Si elle entre en contradiction avec une autre queue, retirer.

","refoulement":1},"flags":{},"img":"refuser_tmr.png","effects":[]} {"_id":"NzJJNK0YMAbobu0p","name":"Désir lancinant : Masochisme. Perdre 3 points d’endurance minimum en 1 round","permission":{"default":0,"rYShh2P1DNavdoBD":3},"type":"queue","data":{"description":"

Tant que satisfaction n'est pas obtenue, aucun point d'expérience ne peut plus être gagné par l'exercice en cas de particulière et d'ajustement final négatif.
Les points d'expérience dus au stress ne sont pas affectés.

","refoulement":1},"flags":{},"img":"masochisme.png","effects":[]} {"_id":"OSV2b7bVWv2SCfUY","name":"Urgence draconique","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"type":"queue","data":{"description":"

Le haut-rêvant est pris du besoin irrésistible de déclencher immédiatement son plus proche sort en réserve. À équidistance, prendre dans le sens des aiguilles d’une montre en commençant par le haut. En cas de rencontre dans les TMR, se dérober équivaut à refouler la queue de Dragon. Si aucun sort n’est en réserve, ou si il y a impossibilité de pratiquer la magie à cause d’une autre queue ou d’un souffle, tirer à la place une idée fixe.

","refoulement":2},"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/queue_dragon.webp","effects":[]} diff --git a/packs/tables-diverses.db b/packs/tables-diverses.db index da4b3d09..d2ab3580 100644 --- a/packs/tables-diverses.db +++ b/packs/tables-diverses.db @@ -2,7 +2,7 @@ {"_id":"7Py520wVyrjAgS9j","name":"Maladresses non armé","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"img":"icons/svg/d20-grey.svg","description":"","results":[{"_id":"5ExNFCB8JNMT2535","flags":{},"type":0,"text":"Assomé net : Endurance tombe à 0 et -1 pt de vie.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[2,2],"drawn":false},{"_id":"SnLYEufd9JrYDXcX","flags":{},"type":0,"text":"Ami bousculé : Le compagnon bousculé doit réussir Empathie/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[3,3],"drawn":false},{"_id":"1DtaMqWygL8BjZjw","flags":{},"type":0,"text":"Chute : Encaissement à -1d6 sur la table des Coups non mortels.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[4,4],"drawn":false},{"_id":"Fkaf51J6FMuAqEAx","flags":{},"type":0,"text":"Déséquilibré : Réussir Agilité/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[5,7],"drawn":false},{"_id":"kyAKakRIPGKr6Gdy","flags":{},"type":0,"text":"Faux mouvement : Perte de 2d6 points d’endurance.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[8,14],"drawn":false},{"_id":"hTKkiPGPCTDIFh0Y","flags":{},"type":0,"text":"Déséquilibré : Réussir Agilité/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[15,17],"drawn":false},{"_id":"NY1uI3k3YbJKQddk","flags":{},"type":0,"text":"Chute : Encaissement à -1d6 sur la table des Coups non mortels.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[18,18],"drawn":false},{"_id":"CEDYz7CYFfJIQRr0","flags":{},"type":0,"text":"Ami bousculé : Le compagnon bousculé doit réussir Empathie/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[19,19],"drawn":false},{"_id":"dSKiqZe8cXO89HgH","flags":{},"type":0,"text":"Assomé net : Endurance tombe à 0 et -1 pt de vie.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[20,20],"drawn":false}],"formula":"2d10","replacement":false,"displayRoll":true} {"name":"Détermination aléatoire de compétence","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"description":"","results":[{"_id":"9sBISZqs2DL0PG9W","flags":{},"type":2,"text":"Dague","img":"systems/foundryvtt-reve-de-dragon/icons/competence_dague.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"XZNm5W8nTe8aCG61","weight":1,"range":[1,2],"drawn":false},{"_id":"eBlqM8jwRJ5PB5gm","flags":{},"type":2,"text":"Epée à 1 main","img":"systems/foundryvtt-reve-de-dragon/icons/competence_epee_1_main.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"fPhPcCP3sbS6mfbS","weight":1,"range":[3,3],"drawn":false},{"_id":"tZBAPUjyjQy8EUHO","flags":{},"type":2,"text":"Epée à 2 mains","img":"systems/foundryvtt-reve-de-dragon/icons/competence_epee_2_mains.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"MLIEbxSJHkY1m3No","weight":1,"range":[4,4],"drawn":false},{"_id":"qvfMPJP3BkpcP5Fe","flags":{},"type":2,"text":"Hache à 1 main","img":"systems/foundryvtt-reve-de-dragon/icons/competence_hache_a_1_main.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"wEfuLImdNX4BSXVi","weight":1,"range":[5,5],"drawn":false},{"_id":"Z6JR5YWaA43j98tX","flags":{},"type":2,"text":"Hache à 2 mains","img":"systems/foundryvtt-reve-de-dragon/icons/competence_hache_a_2_mains.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"F97wHYDsQ5UyvJnb","weight":1,"range":[6,6],"drawn":false},{"_id":"r5JIcqBekKckdNQt","flags":{},"type":2,"text":"Lance","img":"systems/foundryvtt-reve-de-dragon/icons/competence_lance.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"zPTXua2Kq6TeBTTZ","weight":1,"range":[7,8],"drawn":false},{"_id":"vLY1W9u2uYuhPkQV","flags":{},"type":2,"text":"Masse à 1 main","img":"systems/foundryvtt-reve-de-dragon/icons/competence_masse_1_main.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"cMHm3gQr9rUp4iPK","weight":1,"range":[9,9],"drawn":false},{"_id":"HrHsJd2KcoKr9KTJ","flags":{},"type":2,"text":"Masse à 2 mains","img":"systems/foundryvtt-reve-de-dragon/icons/competence_masse_2_mains.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"BMAloiSbDKOu3b4C","weight":1,"range":[10,10],"drawn":false},{"_id":"X87jQ9IKmiDJSdVM","flags":{},"type":2,"text":"Fléau","img":"systems/foundryvtt-reve-de-dragon/icons/competence_fleau.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"r79VAGS1fRUm4oAd","weight":1,"range":[11,12],"drawn":false},{"_id":"X21M9ux2yL5eEP97","flags":{},"type":2,"text":"Armes d'hast","img":"systems/foundryvtt-reve-de-dragon/icons/competence_armes_hast.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"rwsHwIDszSIPBkrO","weight":1,"range":[13,16],"drawn":false},{"_id":"YgAGBkMD7xY1zZ73","flags":{},"type":2,"text":"Corps à corps","img":"systems/foundryvtt-reve-de-dragon/icons/competence_corps_a_corps.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"8Uj41cL5Qlxxy675","weight":1,"range":[17,18],"drawn":false},{"_id":"wz5G0AAKv3iv8mO5","flags":{},"type":2,"text":"Arbalète","img":"systems/foundryvtt-reve-de-dragon/icons/competence_arbalete.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"lt9VC7PkX4Faiduq","weight":1,"range":[19,20],"drawn":false},{"_id":"pHWfUuHd53tv75mk","flags":{},"type":2,"text":"Arc","img":"systems/foundryvtt-reve-de-dragon/icons/competence_arc.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"tVbFkKSN4n0RSrFU","weight":1,"range":[21,22],"drawn":false},{"_id":"uWULinOEr2zT9Afy","flags":{},"type":2,"text":"Dague de jet","img":"systems/foundryvtt-reve-de-dragon/icons/competence_dague_jet.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"thJy5AN0qePmfpJu","weight":1,"range":[23,24],"drawn":false},{"_id":"Q5gHNcgr8PAw5YKC","flags":{},"type":2,"text":"Javelot","img":"systems/foundryvtt-reve-de-dragon/icons/competence_javelot.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"neuzZG2C5C0IJ1yk","weight":1,"range":[25,26],"drawn":false},{"_id":"q2cdTOR6XFhX3m6z","flags":{},"type":2,"text":"Fronde","img":"systems/foundryvtt-reve-de-dragon/icons/competence_fronde.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"iNXKIfaETtgSGA0S","weight":1,"range":[27,28],"drawn":false},{"_id":"miq7pP6fjWbV38k6","flags":{},"type":2,"text":"Fouet","img":"systems/foundryvtt-reve-de-dragon/icons/competence_fouet.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"vIQVQxUeiw36hztI","weight":1,"range":[29,30],"drawn":false},{"_id":"UitlRjiMGmRYUvlU","flags":{},"type":2,"text":"Esquive","img":"systems/foundryvtt-reve-de-dragon/icons/competence_esquive.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"oFje22fZF1FaCQhN","weight":1,"range":[31,32],"drawn":false},{"_id":"KJGW2JDBVWtrztqn","flags":{},"type":2,"text":"Bouclier","img":"systems/foundryvtt-reve-de-dragon/icons/competence_bouclier.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"SJE3ghtswQwP1dIy","weight":1,"range":[33,34],"drawn":false},{"_id":"n2qjILAd4g1xrxaW","flags":{},"type":2,"text":"Chant","img":"systems/foundryvtt-reve-de-dragon/icons/competence_chant.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"LE4nA119la5cd0bC","weight":1,"range":[35,40],"drawn":false},{"_id":"MsDPOVPwFbEUIsy7","flags":{},"type":2,"text":"Danse","img":"systems/foundryvtt-reve-de-dragon/icons/competence_danse.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"LhP3Y0qCBHNp2atl","weight":1,"range":[41,46],"drawn":false},{"_id":"hlnKnwQNu29rmXNk","flags":{},"type":2,"text":"Discrétion","img":"systems/foundryvtt-reve-de-dragon/icons/competence_discretion.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"94P55yZfeipCGbsr","weight":1,"range":[47,48],"drawn":false},{"_id":"rDtXw3Q7JMWKrYaF","flags":{},"type":2,"text":"Escalade","img":"systems/foundryvtt-reve-de-dragon/icons/competence_escalade.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"gECPPcn6j3B3sWTS","weight":1,"range":[49,50],"drawn":false},{"_id":"Mdk3L6zOs99uxkq3","flags":{},"type":2,"text":"Saut","img":"systems/foundryvtt-reve-de-dragon/icons/competence_saut.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"9ICvksiNG6Bhm8CE","weight":1,"range":[51,52],"drawn":false},{"_id":"tRMYNJVd0tzJN39A","flags":{},"type":2,"text":"Cuisine","img":"systems/foundryvtt-reve-de-dragon/icons/competence_cuisine.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"3qRzl3nhLZNsoDsI","weight":1,"range":[53,58],"drawn":false},{"_id":"tZuba0mG2fjPhJ8g","flags":{},"type":2,"text":"Course","img":"systems/foundryvtt-reve-de-dragon/icons/competence_course.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"Jz4AZdDlSjsyoUsm","weight":1,"range":[59,60],"drawn":false},{"_id":"9NYb0ZFnIVJ8nKjv","flags":{},"type":2,"text":"Dessin","img":"systems/foundryvtt-reve-de-dragon/icons/competence_dessin.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"OVcZE4kfiPYEOzgm","weight":1,"range":[61,66],"drawn":false},{"_id":"PYpbLaUERUqrCZSM","flags":{},"type":2,"text":"Séduction","img":"systems/foundryvtt-reve-de-dragon/icons/competence_seduction.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"AbM6lJ7DI2UAWLxj","weight":1,"range":[67,70],"drawn":false},{"_id":"4GIFGmx6kBMFwy4o","flags":{},"type":2,"text":"Vigilance","img":"systems/foundryvtt-reve-de-dragon/icons/competence_vigilance.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"VyAJK54OPjiRt8oH","weight":1,"range":[71,72],"drawn":false},{"_id":"WibqvGxsQ1hhEmuB","flags":{},"type":2,"text":"Bricolage","img":"systems/foundryvtt-reve-de-dragon/icons/competence_bricolage.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"tvIGIPaEJZBaySil","weight":1,"range":[73,78],"drawn":false},{"_id":"gQogDfrwBKftnrNg","flags":{},"type":2,"text":"Charpenterie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_charpenterie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"FqLWG6xjISKMLPiX","weight":1,"range":[79,84],"drawn":false},{"_id":"AhRKxgdmYdql3iJv","flags":{},"type":2,"text":"Comédie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_comedie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"2JLK5e97WbTM5WxX","weight":1,"range":[85,90],"drawn":false},{"_id":"iWONUpMsZrIovrW6","flags":{},"type":2,"text":"Commerce","img":"systems/foundryvtt-reve-de-dragon/icons/competence_defaut.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"zO7Av9hJ2vdJiPgI","weight":1,"range":[91,96],"drawn":false},{"_id":"8p2nM9b9NKgXftC6","flags":{},"type":2,"text":"Equitation","img":"systems/foundryvtt-reve-de-dragon/icons/competence_equitation.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"F5iQNrZSeJsfyTnV","weight":1,"range":[97,102],"drawn":false},{"_id":"nTs5kJa2Y1PlsdR6","flags":{},"type":2,"text":"Maçonnerie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_maconnerie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"dwGVDTUJYP9FcmWM","weight":1,"range":[103,108],"drawn":false},{"_id":"SLGmlhYD3yIv9RTw","flags":{},"type":2,"text":"Musique","img":"systems/foundryvtt-reve-de-dragon/icons/competence_musique.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"wefdYe0kvWKioPmk","weight":1,"range":[109,114],"drawn":false},{"_id":"k3MQErJ6fhaXjy5Q","flags":{},"type":2,"text":"Pickpocket","img":"systems/foundryvtt-reve-de-dragon/icons/competence_pickpocket.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"dT5cvI7q1HcrLaT1","weight":1,"range":[115,120],"drawn":false},{"_id":"nPfyawbN49pUBjmN","flags":{},"type":2,"text":"Survie en Extérieur","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_exterieur.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"ue5iDSm2f4efQDWO","weight":1,"range":[121,122],"drawn":false},{"_id":"iQXHhRe1yaxkoI9q","flags":{},"type":2,"text":"Survie en Cité","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_cite.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"oHnSnCw1RAW5t15S","weight":1,"range":[123,124],"drawn":false},{"_id":"ZhPRAyUuEYcG9X5z","flags":{},"type":2,"text":"Survie en Désert","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_desert.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"vDOAyWc2YnuhNnFF","weight":1,"range":[125,126],"drawn":false},{"_id":"xKmAbx1nMbRWRaUf","flags":{},"type":2,"text":"Survie en Forêt","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_foret.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"PbvubzCxnOSnWLpG","weight":1,"range":[127,128],"drawn":false},{"_id":"adlAhNycLEPEEDKG","flags":{},"type":2,"text":"Survie en Glaces","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_glace.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"uGPqmorAYxv1jboC","weight":1,"range":[129,130],"drawn":false},{"_id":"gpfI4rxYtxorstEt","flags":{},"type":2,"text":"Survie en Marais","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_marais.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"azn3Sm7XYKP78huL","weight":1,"range":[131,132],"drawn":false},{"_id":"2LTUJ4WQuFHdbUCa","flags":{},"type":2,"text":"Survie en Montagne","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_montagne.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"BzqBOeqS6HvJhqey","weight":1,"range":[133,134],"drawn":false},{"_id":"ZU0NR8n5OzQbqvOS","flags":{},"type":2,"text":"Survie en Sous-Sol","img":"systems/foundryvtt-reve-de-dragon/icons/competence_survie_sous_sol.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"6pXxEdeo7xcDvgx0","weight":1,"range":[135,136],"drawn":false},{"_id":"PTIrHz6GbGynuX5n","flags":{},"type":2,"text":"Travestissement","img":"systems/foundryvtt-reve-de-dragon/icons/competence_travestissement.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"w9QubIHdWEUorges","weight":1,"range":[137,142],"drawn":false},{"_id":"izWJA8NgUBQ7jvwB","flags":{},"type":2,"text":"Acrobatie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_acrobatie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"zyNYa3hYtrOcF2jA","weight":1,"range":[143,144],"drawn":false},{"_id":"lZevW2I6ujT6Dy03","flags":{},"type":2,"text":"Métallurgie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_metallurgie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"CHyk96ypxMrg8VXh","weight":1,"range":[145,148],"drawn":false},{"_id":"Lpxnhk9gR0Yj2G44","flags":{},"type":2,"text":"Jeu","img":"systems/foundryvtt-reve-de-dragon/icons/competence_jeu.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"3VSMRwMYpOi83wgE","weight":1,"range":[149,152],"drawn":false},{"_id":"tXD0hBXYivgfJDhs","flags":{},"type":2,"text":"Jonglerie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_jonglerie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"owCW3nZDvlJy1kCT","weight":1,"range":[153,158],"drawn":false},{"_id":"6ymG1y1FjO6JEG5q","flags":{},"type":2,"text":"Maroquinerie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_maroquinerie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"XYMQBxFKSs2nPW0J","weight":1,"range":[159,164],"drawn":false},{"_id":"N3sEj99PrwXKqCux","flags":{},"type":2,"text":"Natation","img":"systems/foundryvtt-reve-de-dragon/icons/competence_natation.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"qBUtHhyjvrg1c34I","weight":1,"range":[165,166],"drawn":false},{"_id":"nYjtV3JAOcn1GIrw","flags":{},"type":2,"text":"Navigation","img":"systems/foundryvtt-reve-de-dragon/icons/competence_navigation.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"AXeWswf2Dth9ysvy","weight":1,"range":[167,172],"drawn":false},{"_id":"ngj5LmOpQ8upunfY","flags":{},"type":2,"text":"Orfèvrerie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_orfevrerie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"PMOjO2CdedH1UTyi","weight":1,"range":[173,176],"drawn":false},{"_id":"br0H32GMbmv8IYsl","flags":{},"type":2,"text":"Serrurerie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_serrurerie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"PMnsXDyeB8w8ZG2k","weight":1,"range":[177,178],"drawn":false},{"_id":"NWkkbA5ifEZ3hclg","flags":{},"type":2,"text":"Alchimie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_alchimie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"TAKRb9CdMUhs9dd4","weight":1,"range":[179,180],"drawn":false},{"_id":"AYR0QpNd3HJVh5UL","flags":{},"type":2,"text":"Astrologie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_astrologie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"GIIQm22Q4bBsmxpE","weight":1,"range":[181,182],"drawn":false},{"_id":"BMOTHEAQWnjfxTtc","flags":{},"type":2,"text":"Botanique","img":"systems/foundryvtt-reve-de-dragon/icons/competence_botanique.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"PmwXYvmutlyQEonB","weight":1,"range":[183,184],"drawn":false},{"_id":"H6lZzKByCVhIUldD","flags":{},"type":2,"text":"Chirurgie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_chirurgie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"BlG2YPATIbnY3m9P","weight":1,"range":[185,186],"drawn":false},{"_id":"ZkXubH48o5I7ExvT","flags":{},"type":2,"text":"Légendes","img":"systems/foundryvtt-reve-de-dragon/icons/competence_legendes.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"i3wMVkXObzlDVZTG","weight":1,"range":[187,188],"drawn":false},{"_id":"nqtBe0jgDEtvm2Ob","flags":{},"type":2,"text":"Ecriture","img":"systems/foundryvtt-reve-de-dragon/icons/competence_ecriture.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"qmIpUeedvjC8nGF1","weight":1,"range":[189,190],"drawn":false},{"_id":"dfQg2QkE2O1NLdeh","flags":{},"type":2,"text":"Médecine","img":"systems/foundryvtt-reve-de-dragon/icons/competence_medecine.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"XK2TlYnhR8FlDaEi","weight":1,"range":[191,192],"drawn":false},{"_id":"374XHlzYK5azgOch","flags":{},"type":2,"text":"Zoologie","img":"systems/foundryvtt-reve-de-dragon/icons/competence_zoologie.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"c5wursWW03ckpyqn","weight":1,"range":[193,194],"drawn":false},{"_id":"85p5T2AdujHhCrgr","flags":{},"type":2,"text":"Voie d'Oniros","img":"systems/foundryvtt-reve-de-dragon/icons/competence_oniros.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"nnR2UHelUaF8dxYn","weight":1,"range":[195,196],"drawn":false},{"_id":"VT5HflXvc0kdHFV3","flags":{},"type":2,"text":"Voie d'Hypnos","img":"systems/foundryvtt-reve-de-dragon/icons/competence_hypnos.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"bt2cR4aE6lIOeg4F","weight":1,"range":[197,198],"drawn":false},{"_id":"cmxNBwfCdgMUDGJ9","flags":{},"type":2,"text":"Voie de Narcos","img":"systems/foundryvtt-reve-de-dragon/icons/competence_narcos.png","collection":"foundryvtt-reve-de-dragon.competences","resultId":"u1Peok1EYkBcVsmN","weight":1,"range":[199,200],"drawn":false}],"formula":"1d200","replacement":false,"displayRoll":true,"_id":"E0WLgjn6LA9WsvKJ"} {"name":"Ombre de Thanatos","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"description":"","results":[{"_id":"wpzuulK7z3G5qffV","flags":{},"type":2,"text":"Mauvaise rencontre en perspective","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"S7se7qPnL6WDg5U5","weight":1,"range":[1,3],"drawn":false},{"_id":"SoUADgjH4T8RvdxX","flags":{},"type":2,"text":"Pélerinage","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"PYDb8gvRWeCAdPEZ","weight":1,"range":[4,6],"drawn":false},{"_id":"4hb8cPu0biIIz8b5","flags":{},"type":2,"text":"Conquête","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"N9j8K6x89BdS7ZKN","weight":1,"range":[7,9],"drawn":false},{"_id":"RXDO4FsDh4jAsDLs","flags":{},"type":2,"text":"Inertie draconique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"PmEjVox3Q6SPF730","weight":1,"range":[10,12],"drawn":false},{"_id":"CozTCNQrrfZ59sf1","flags":{},"type":2,"text":"Urgence draconique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"3dnmi4Fyh5eUQcyP","weight":1,"range":[13,15],"drawn":false},{"_id":"QvG73iq6hBlenhEp","flags":{},"type":2,"text":"Réinsertion aléatoire","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"yEHdCabJYx0qvoL5","weight":1,"range":[16,18],"drawn":false},{"_id":"HMyr7XykkAPWmN8t","flags":{},"type":2,"text":"Montée laborieuse","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"uQ4PwcwplvZarfn1","weight":1,"range":[19,21],"drawn":false},{"_id":"ik7dIzDzJ1wAUkgf","flags":{},"type":2,"text":"Coup de barre","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"PMz7SaB6sRxhwrWw","weight":1,"range":[22,24],"drawn":false},{"_id":"aW9V5ygWHPdW1Jtf","flags":{},"type":2,"text":"Insomnie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"6MUcjYfxfi45STvo","weight":1,"range":[25,27],"drawn":false},{"_id":"2FYKcBFesQzcXbUA","flags":{},"type":2,"text":"Dépouillement","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"UmvGxA4cFSoRE82Z","weight":1,"range":[28,30],"drawn":false},{"_id":"IyBmZMV61fY9UYA0","flags":{},"type":2,"text":"Amnésie sélective","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"aZWuRmi8lplZQcdM","weight":1,"range":[31,33],"drawn":false},{"_id":"1j3visYhg7NhqCDT","flags":{},"type":2,"text":"Souvenir morbide de l'archétype","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"RrPMV2HW2Rg8POK1","weight":1,"range":[34,38],"drawn":false},{"_id":"lpsX7oyzuuAd64h0","flags":{},"type":2,"text":"Désir de boire du sang chaud","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"DnhuuGUEbOF95JlN","weight":1,"range":[39,42],"drawn":false},{"_id":"YunZkN9eCnjZ1D8m","flags":{},"type":2,"text":"Désir de dormir dans un cercueil","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"fO1jjVlOb6faLv3T","weight":1,"range":[43,46],"drawn":false},{"_id":"tEj1NQTA0mhzM1p1","flags":{},"type":2,"text":"Désir d'assister à une pendaison","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"wqWkQQsAPVlFw4ft","weight":1,"range":[47,50],"drawn":false},{"_id":"dosUf11v2O51O6t3","flags":{},"type":2,"text":"Désir de parler à un crâne (humain)","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"lz3ghhJzkPRWJ2jz","weight":1,"range":[51,54],"drawn":false},{"_id":"PHka9Cubw22yZe8q","flags":{},"type":2,"text":"Désir d'entendre hurler de terreur","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"twUoR8ALYiabkfoE","weight":1,"range":[55,58],"drawn":false},{"_id":"UQNVsTqU0H8DNcKy","flags":{},"type":2,"text":"Désir de blesser une femme","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"gT0PQAxlYrtITyut","weight":1,"range":[59,62],"drawn":false},{"_id":"4LrCLY6tNKSY8Yuk","flags":{},"type":2,"text":"Désir de blesser un enfant","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"2KbzOC2aj98CiQbW","weight":1,"range":[63,66],"drawn":false},{"_id":"ZuLtoh6m8e2RHcx5","flags":{},"type":2,"text":"Désir d'escalade difficile","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"2KM1yiEOE0ZdT2oL","weight":1,"range":[67,70],"drawn":false},{"_id":"QwHAJQawRnx4Go3h","flags":{},"type":2,"text":"Injurier la première personne inconnue rencontrée","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"fUKNZ0uEG2y2PkOk","weight":1,"range":[71,73],"drawn":false},{"_id":"xxC1Kj1hWxyp06lG","flags":{},"type":2,"text":"Couardise irraisonnée","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"cUkRSRz5DJYb3WM8","weight":1,"range":[74,76],"drawn":false},{"_id":"5f78aQb3Yc34DXTs","flags":{},"type":2,"text":"Héroïsme forcené","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"spYuiInqbCoDsKvd","weight":1,"range":[77,85],"drawn":false},{"_id":"YK5vMX4fw2cmezYx","flags":{},"type":2,"text":"Haine fatale","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"dFf8jaC0RvidC1ZC","weight":1,"range":[86,95],"drawn":false},{"_id":"QMsLQ7UYnGgAHX6w","flags":{},"type":2,"text":"Infarctus","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.ombres-de-thanatos","resultId":"e67rXcuO236ioYAr","weight":1,"range":[96,100],"drawn":false}],"formula":"1d100","replacement":true,"displayRoll":true,"_id":"Q4OENe3IxeVk2emd"} -{"_id":"U7lFRPBHeIH8u9J1","name":"Queues de dragon","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"img":"icons/svg/d20-grey.svg","description":"Une queue de Dragon vient perturber le Haut Rêvant, mais peut éventuellement être refoulée.","results":[{"_id":"DnmiOB1RpCmVLch9","flags":{},"type":2,"text":"Mauvaise rencontre en perspective","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"0jrEZ62Q2Jz4kBGf","weight":1,"range":[1,4],"drawn":false},{"_id":"WOwIemPaKZHdCMvr","flags":{},"type":2,"text":"Pélerinage","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"NF4E7jTty1QGjaNj","weight":1,"range":[5,8],"drawn":false},{"_id":"gfYTSiUicNZwAjRo","flags":{},"type":2,"text":"Conquête","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"lBkO8FvFqXoKNhvk","weight":1,"range":[9,12],"drawn":false},{"_id":"naqhaGGmAJeluTY0","flags":{},"type":2,"text":"Inertie draconique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"EUrxQGd7FuW628NS","weight":1,"range":[13,16],"drawn":false},{"_id":"x2yKZ5M27TS3T1sz","flags":{},"type":2,"text":"Urgence draconique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"OSV2b7bVWv2SCfUY","weight":1,"range":[17,20],"drawn":false},{"_id":"iioHGaPajVKNkstK","flags":{},"type":2,"text":"Réinsertion aléatoire","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"iHuLw0I1Gc5mIucG","weight":1,"range":[21,24],"drawn":false},{"_id":"JYmA9tItuZcMPOOV","flags":{},"type":2,"text":"Montée laborieuse","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"5knw1NcnBsLIjHpr","weight":1,"range":[25,28],"drawn":false},{"_id":"CiDHbsTLdHa3OH0P","flags":{},"type":2,"text":"Coup de barre","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"Qgj5eSMpQ0IDHwZX","weight":1,"range":[29,33],"drawn":false},{"_id":"zlA5O6YKgVhlau0g","flags":{},"type":2,"text":"Insomnie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"kHWwwxA0alcpDYpf","weight":1,"range":[34,38],"drawn":false},{"_id":"fG9uQ9ZczIsiAZiu","flags":{},"type":2,"text":"Dépouillement","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"vft88ioHpGxMzdML","weight":1,"range":[39,43],"drawn":false},{"_id":"0E9o8Ok7XGHQn9td","flags":{},"type":2,"text":"Amnésie sélective","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"iJw6j7kuP1eAHIck","weight":1,"range":[44,48],"drawn":false},{"_id":"tR0mP1r8vZkkIZCN","flags":{},"type":2,"text":"Souvenir obsessionnel de l'archétype","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"1gGVlZM0UyifL6RK","weight":1,"range":[49,60],"drawn":false},{"_id":"6I1yzi0EXNACViG7","flags":{},"type":2,"text":"Coup de foudre fatal","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"32LbwxxokC9Tn370","weight":1,"range":[61,65],"drawn":false},{"_id":"56YHZq0lAtlzR4W8","flags":{},"type":2,"text":"Masque de Narcos","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"TmEeikWOQt6NZGVY","weight":1,"range":[66,70],"drawn":false},{"_id":"0DrCevELHAHP1djk","flags":{},"type":2,"text":"Désir lancinant","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"Ltgqj86rYQr8D8LW","weight":1,"range":[71,85],"drawn":false},{"_id":"S4rUoU2hlj6EugD4","flags":{},"type":2,"text":"Idée fixe","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"J3XtcVuQo846U1OT","weight":1,"range":[86,100],"drawn":false}],"formula":"1d100","replacement":true,"displayRoll":true} +{"_id":"U7lFRPBHeIH8u9J1","name":"Queues de dragon","img":"icons/svg/d20-grey.svg","description":"Une queue de Dragon vient perturber le Haut Rêvant, mais peut éventuellement être refoulée.","results":[{"_id":"DnmiOB1RpCmVLch9","flags":{},"type":2,"text":"Mauvaise rencontre en perspective","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"0jrEZ62Q2Jz4kBGf","weight":1,"range":[1,4],"drawn":false,"rangeL":1,"rangeH":4},{"_id":"WOwIemPaKZHdCMvr","flags":{},"type":2,"text":"Pèlerinage","img":"systems/foundryvtt-reve-de-dragon/icons/queue_dragon.webp","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"RVslW735GbPbXCpP","weight":1,"range":[5,8],"drawn":false,"rangeL":5,"rangeH":8},{"_id":"gfYTSiUicNZwAjRo","flags":{},"type":2,"text":"Conquête","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"lBkO8FvFqXoKNhvk","weight":1,"range":[9,12],"drawn":false,"rangeL":9,"rangeH":12},{"_id":"naqhaGGmAJeluTY0","flags":{},"type":2,"text":"Inertie draconique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"EUrxQGd7FuW628NS","weight":1,"range":[13,16],"drawn":false,"rangeL":13,"rangeH":16},{"_id":"x2yKZ5M27TS3T1sz","flags":{},"type":2,"text":"Urgence draconique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"OSV2b7bVWv2SCfUY","weight":1,"range":[17,20],"drawn":false,"rangeL":17,"rangeH":20},{"_id":"iioHGaPajVKNkstK","flags":{},"type":2,"text":"Réinsertion aléatoire","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"iHuLw0I1Gc5mIucG","weight":1,"range":[21,24],"drawn":false,"rangeL":21,"rangeH":24},{"_id":"JYmA9tItuZcMPOOV","flags":{},"type":2,"text":"Montée laborieuse","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"5knw1NcnBsLIjHpr","weight":1,"range":[25,28],"drawn":false,"rangeL":25,"rangeH":28},{"_id":"CiDHbsTLdHa3OH0P","flags":{},"type":2,"text":"Coup de barre","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"Qgj5eSMpQ0IDHwZX","weight":1,"range":[29,33],"drawn":false,"rangeL":29,"rangeH":33},{"_id":"zlA5O6YKgVhlau0g","flags":{},"type":2,"text":"Insomnie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"kHWwwxA0alcpDYpf","weight":1,"range":[34,38],"drawn":false,"rangeL":34,"rangeH":38},{"_id":"fG9uQ9ZczIsiAZiu","flags":{},"type":2,"text":"Dépouillement","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"vft88ioHpGxMzdML","weight":1,"range":[39,43],"drawn":false,"rangeL":39,"rangeH":43},{"_id":"0E9o8Ok7XGHQn9td","flags":{},"type":2,"text":"Amnésie sélective","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"iJw6j7kuP1eAHIck","weight":1,"range":[44,48],"drawn":false,"rangeL":44,"rangeH":48},{"_id":"tR0mP1r8vZkkIZCN","flags":{},"type":2,"text":"Souvenir obsessionnel de l'archétype","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"1gGVlZM0UyifL6RK","weight":1,"range":[49,60],"drawn":false,"rangeL":49,"rangeH":60},{"_id":"6I1yzi0EXNACViG7","flags":{},"type":2,"text":"Coup de foudre fatal","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"32LbwxxokC9Tn370","weight":1,"range":[61,65],"drawn":false,"rangeL":61,"rangeH":65},{"_id":"56YHZq0lAtlzR4W8","flags":{},"type":2,"text":"Masque de Narcos","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"TmEeikWOQt6NZGVY","weight":1,"range":[66,70],"drawn":false,"rangeL":66,"rangeH":70},{"_id":"0DrCevELHAHP1djk","flags":{},"type":2,"text":"Désir lancinant","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"Ltgqj86rYQr8D8LW","weight":1,"range":[71,85],"drawn":false,"rangeL":71,"rangeH":85},{"_id":"S4rUoU2hlj6EugD4","flags":{},"type":2,"text":"Idée fixe","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"J3XtcVuQo846U1OT","weight":1,"range":[86,100],"drawn":false,"rangeL":86,"rangeH":100}],"formula":"1d100","replacement":true,"displayRoll":true,"folder":null,"sort":0,"permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{}} {"name":"Têtes de Dragon pour tous personnages","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"description":"Quand une tête est dite unique, retirer si le personnage la possède déjà. Quand elle est dite cumulable, le jet de dés indiqué bénéficie d’un nouveau bonus de +1 chaque fois qu’elle est ré-obtenue. Par exemple un jet de Vue à zéro devient un jet de Vue à +1.","results":[{"_id":"dVS0FZiln8xbcDVW","flags":{},"type":2,"text":"Augmentation de caractéristique","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"OFWK2rZkh1S5Hbjh","weight":1,"range":[1,7],"drawn":false},{"_id":"bMN9j7EA6quRhcjQ","flags":{},"type":2,"text":"Don de haut-rêve","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"YwmmMSH52pNJsOn3","weight":1,"range":[35,40],"drawn":false},{"_id":"tHjCWtOXt9rZcxeE","flags":{},"type":2,"text":"Souvenir immédiat de l'archétype","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"FesXnBWChHcWfrBm","weight":1,"range":[8,14],"drawn":false},{"_id":"ik6qehStjGzSysdB","flags":{},"type":2,"text":"Don de sentir les haut-rêvants","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"aAIbDFQ0Pz6XrHh6","weight":1,"range":[41,46],"drawn":false},{"_id":"m7luEPB0qCczWfe1","flags":{},"type":2,"text":"Don de sentir le mensonge","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"OZZbiBiLlM6Y8lEY","weight":1,"range":[47,52],"drawn":false},{"_id":"IPB3m4ONBmaP4O3i","flags":{},"type":2,"text":"Don de résistance à la magie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"6gcyt965GKvDgG02","weight":1,"range":[53,58],"drawn":false},{"_id":"aLxOqRKLiuzwdzfI","flags":{},"type":2,"text":"Don de non-résistance à la magie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"egUb65MLFFKpLnkO","weight":1,"range":[59,64],"drawn":false},{"_id":"UuFHH4vl7mRH5MLu","flags":{},"type":2,"text":"Don de contrôler son sommeil","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"N6guZDGzzZjt9GrR","weight":1,"range":[65,70],"drawn":false},{"_id":"lrQLebx8ZhV6fQRO","flags":{},"type":2,"text":"Don limité de résistance au poison","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"THAUFNSNgSHfh06l","weight":1,"range":[71,76],"drawn":false},{"_id":"A3KZpG1yyL0pMMrQ","flags":{},"type":2,"text":"Don limité de résistance à la maladie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"CoXzAjCwGSWVM4cY","weight":1,"range":[77,82],"drawn":false},{"_id":"dN3DyGXso0ySK56W","flags":{},"type":2,"text":"Don d'apprivoiser les animaux","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"wlbbh75GZWks3Ehb","weight":1,"range":[83,88],"drawn":false},{"_id":"vJxx7hRIgmVtBuU6","flags":{},"type":2,"text":"Don d'orientation","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"slnKVCfHbLwbXi4Z","weight":1,"range":[89,94],"drawn":false},{"_id":"ZM3uOMpEwdrmkPw9","flags":{},"type":2,"text":"Don limité de guérison","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"3EqDvQ0p4f73KZl5","weight":1,"range":[95,100],"drawn":false},{"_id":"D7A37IkCI5z2z1DV","flags":{},"type":2,"text":"Don limité de réussite","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"R6LxyzYwAMCjKIr5","weight":1,"range":[15,21],"drawn":false},{"_id":"NbEruiuFMhnUna2U","flags":{},"type":2,"text":"Don de double chance","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"zzD5wN03zwq0e5Cn","weight":1,"range":[22,28],"drawn":false},{"_id":"ZBVa1vrTaBrTE9p4","flags":{},"type":2,"text":"Don de voir la magie","img":"icons/svg/mystery-man.svg","collection":"foundryvtt-reve-de-dragon.tetes-de-dragon-pour-tous-personnages","resultId":"QWouooLkM7pE2yG1","weight":1,"range":[29,34],"drawn":false}],"formula":"1d100","replacement":true,"displayRoll":true,"_id":"VyoowwZ4vJJADDxR"} {"_id":"nbH4v630P7ARaAHk","name":"Idées fixes","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"img":"icons/svg/d20-grey.svg","description":"Les idées fixes prennent effet immédiatement et durent jusqu’à l’extrême fin de l’heure du Château Dormant du lendemain. Si passé ce délai, l’occasion de les manifester ne s’est pas présentée, la queue prend fin néanmoins. Si elles entrent en contradiction avec une autre queue de Dragon, retirer. Les idées fixes peuvent être refoulées à tout moment au prix de 1 point de refoulement.","results":[{"_id":"xX6XGI6ujPDSbbob","flags":{},"type":2,"text":"Idée fixe : Ne s’exprimer que par des cris d’animaux (meuh ! coin-coin ! etc.)","img":"exprimer_cris.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"YCHBbRLiMzTH7IBj","weight":1,"range":[1,1],"drawn":false},{"_id":"gYN6fcQISs2H7kAn","flags":{},"type":2,"text":"Idée fixe : Garder les yeux bandés","img":"garder_yeux.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"E902EEYZHg3zFKq6","weight":1,"range":[2,2],"drawn":false},{"_id":"QIHOFfluPnEJFKHD","flags":{},"type":2,"text":"Idée fixe : Ne dire que «non» ou négation analogue","img":"dire_non.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"gMmqdJ9I7Mt8Tg3f","weight":1,"range":[3,3],"drawn":false},{"_id":"P0eaJjtQQfpNIL9I","flags":{},"type":2,"text":"Idée fixe : Garder sur soi 3d6 kilos de cailloux","img":"garder_cailloux.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"F8G3rdU1nfJzYwYR","weight":1,"range":[4,4],"drawn":false},{"_id":"PENvfmIpKFWee8rF","flags":{},"type":2,"text":"Idée fixe : Traîner son épée en laisse (ou sa meilleure arme)","img":"trainer_laisse.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"2j1q9e07ZLlIQDYl","weight":1,"range":[5,5],"drawn":false},{"_id":"6xT8v1ScJSZEente","flags":{},"type":2,"text":"Idée fixe : Garder une main sur la tête","img":"garder_main.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"iPYPgxL2uUnphStc","weight":1,"range":[6,6],"drawn":false},{"_id":"0CO9RJPygGdJT9nB","flags":{},"type":2,"text":"Idée fixe : Avoir le visage noirci à la cendre","img":"avoir_visage.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"6G0lF06jSryTduAt","weight":1,"range":[7,7],"drawn":false},{"_id":"XeCtzSCuEEm9q8TI","flags":{},"type":2,"text":"Idée fixe : Cracher dans toute nourriture ou boisson aperçue","img":"cracher_nourriture.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"22EQLBJfHVYs96iC","weight":1,"range":[8,8],"drawn":false},{"_id":"Sh5KRDvM7iXad6rK","flags":{},"type":2,"text":"Idée fixe : Anorexie. Ne rien avaler, ni solide, ni liquide, pas même une potion","img":"anorexie.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"0uc2pMIGL03Hq2Hn","weight":1,"range":[9,9],"drawn":false},{"_id":"6Q3XKURzip61EXK2","flags":{},"type":2,"text":"Idée fixe : Aller tout nu, sans porter le moindre paquet ni objet","img":"aller_nu.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"I0CtQ05xFW6ghcdP","weight":1,"range":[10,10],"drawn":false},{"_id":"7B8joMjIuhNxip6N","flags":{},"type":2,"text":"Idée fixe : Vider sur sa tête toute fiole ou flacon aperçu","img":"verser_flacon.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"afGp9CewfyJKecEE","weight":1,"range":[11,11],"drawn":false},{"_id":"Febiy30xqiNo7OqV","flags":{},"type":2,"text":"Idée fixe : Appeler les hommes «madame» et les femmes «messire»","img":"appeler_hommes_femmes.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"j2xIrFWYqhDM4TcN","weight":1,"range":[12,12],"drawn":false},{"_id":"Aa72g0fFdq2qBmCn","flags":{},"type":2,"text":"Idée fixe : Ne marcher qu’à quatre pattes","img":"marcher_quatre_pattes.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"7TKsit2Mv9mWGq3C","weight":1,"range":[13,13],"drawn":false},{"_id":"UYhT76xYv8OGXcMZ","flags":{},"type":2,"text":"Idée fixe : Boulimie. Manger au moins un point de sust. par heure","img":"boulimie.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"JcTX8qMS0z8bmdVt","weight":1,"range":[14,14],"drawn":false},{"_id":"fOnQmiXMPXrK3K6P","flags":{},"type":2,"text":"Idée fixe : Refuser de se déplacer autrement que porté","img":"refuser_deplacer.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"hghw6Cldrad1CIiJ","weight":1,"range":[15,15],"drawn":false},{"_id":"KKGlZXouFfIMKQma","flags":{},"type":2,"text":"Idée fixe : Ne pas franchir de porte. (On peut franchir une fenêtre)","img":"pas-franchir.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"UUTbsktTcxsIe5L5","weight":1,"range":[16,16],"drawn":false},{"_id":"JjWHUsMLhLuTYB2q","flags":{},"type":2,"text":"Idée fixe : Faire le mort","img":"faire_mort.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"xa4t9Lbt6uLEjap6","weight":1,"range":[17,17],"drawn":false},{"_id":"r7Dw8GD1ceypY0iV","flags":{},"type":2,"text":"Idée fixe : Éteindre tout feu rencontré (feu de camp, torche, lanterne, etc.)","img":"eteindre_feu.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"2Rtm78bMKPy8eG4q","weight":1,"range":[18,18],"drawn":false},{"_id":"i0AW1Ir1V7y2ZmEh","flags":{},"type":2,"text":"Idée fixe : Refuser de se délester du moindre objet, ni donner ni prêter","img":"refuser_delester.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"VChJbtGFtWoiFNky","weight":1,"range":[19,19],"drawn":false},{"_id":"DQBzVXbJKn9zsXUI","flags":{},"type":2,"text":"Idée fixe : Refuser de monter dans les TMR","img":"refuser_tmr.png","collection":"foundryvtt-reve-de-dragon.queues-de-dragon","resultId":"NpTDqICR7ZuToQrg","weight":1,"range":[20,20],"drawn":false}],"formula":"1d20","replacement":false,"displayRoll":true} {"name":"Maladresse armé","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"flags":{},"description":"","results":[{"_id":"R18ITzDLLuGiaqXM","flags":{},"type":0,"text":"Assomé net : Endurance tombe à 0 et -1 pt de vie.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[2,2],"drawn":false},{"_id":"sfWXLz4QIkPLNJmg","flags":{},"type":0,"text":"Ami bousculé : Le compagnon bousculé doit réussir Empathie/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[3,3],"drawn":false},{"_id":"APqyDePFzBaROB6i","flags":{},"type":0,"text":"Chute : Encaissement à -1d6 sur la table des Coups non mortels.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[4,4],"drawn":false},{"_id":"8yErM3dW4F2MBFqe","flags":{},"type":0,"text":"Désarmé","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[5,5],"drawn":false},{"_id":"8dh7zUXAq8ehNag7","flags":{},"type":0,"text":"Arme choquée : L’arme utilisée joue un jet de Résistance à -2d6 et perd ce nombre de points de résistance en cas d’échec.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[6,7],"drawn":false},{"_id":"OskepgYnU7pok5jv","flags":{},"type":0,"text":"Déséquilibré : Réussir Agilité/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[8,9],"drawn":false},{"_id":"GOYmqZj1Lnc0cKO9","flags":{},"type":0,"text":"Faux mouvement : Perte de 2d6 points d’endurance.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[10,12],"drawn":false},{"_id":"NOrmphYuLWRKZxai","flags":{},"type":0,"text":"Déséquilibré : Réussir Agilité/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[13,14],"drawn":false},{"_id":"ef8tfK8JzdX1OKzf","flags":{},"type":0,"text":"Arme choquée : L’arme utilisée joue un jet de Résistance à -2d6 et perd ce nombre de points de résistance en cas d’échec.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[15,16],"drawn":false},{"_id":"9V3Gj9PEYrEY7OCc","flags":{},"type":0,"text":"Désarmé","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[17,17],"drawn":false},{"_id":"c61AFRaP9poCmr9B","flags":{},"type":0,"text":"Chute : Encaissement à -1d6 sur la table des Coups non mortels.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[18,18],"drawn":false},{"_id":"8tS1rSwYvd0cS9o4","flags":{},"type":0,"text":"Ami bousculé : Le compagnon bousculé doit réussir Empathie/Vigilance à -1d6 ou être en demi-surprise jusqu’à la fin du round suivant.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[19,19],"drawn":false},{"_id":"ma6DRHIjkgpOVc55","flags":{},"type":0,"text":"Assommé net : Endurance tombe à 0 et -1 pt de vie.","img":"icons/svg/d20-black.svg","resultId":"","weight":1,"range":[20,20],"drawn":false}],"formula":"2d10","replacement":false,"displayRoll":true,"_id":"pXYVWRlCftWdwsBP"} From 51a3c4d04aa61d2e1f1eecbcb9cbe168c6cc84bd Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 8 May 2021 20:08:56 +0200 Subject: [PATCH 2/2] fatigue optionnelle #113 --- module/actor-sheet.js | 13 ++------- module/actor.js | 46 +++++++++++++++--------------- module/rdd-main.js | 2 +- module/rdd-tmr-dialog.js | 28 ++++++++++++------ module/rdd-utility.js | 32 ++++++++++++++------- module/regles-optionelles.js | 36 ++++++++++++----------- templates/actor-sheet.html | 4 +-- templates/chat-resultat-tache.html | 2 +- templates/dialog-tmr.html | 2 +- templates/regles-optionelles.html | 18 ++++-------- 10 files changed, 97 insertions(+), 86 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 455b3c98..4e6d70d2 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -13,6 +13,7 @@ import { RdDCombatManager } from "./rdd-combat.js"; import { RdDCarac } from "./rdd-carac.js"; import { RdDItem } from "./item.js"; import { DialogSplitItem } from "./dialog-split-item.js"; +import { ReglesOptionelles } from "./regles-optionelles.js"; /* -------------------------------------------- */ export class RdDActorSheet extends ActorSheet { @@ -68,10 +69,7 @@ export class RdDActorSheet extends ActorSheet { encTotal: await this.actor.computeEncombrementTotalEtMalusArmure(), prixTotalEquipement: this.actor.computePrixTotalEquipement(), surprise: RdDBonus.find(this.actor.getSurprise(false)).descr, - fatigue: { - malus: RdDUtility.calculMalusFatigue(formData.data.sante.fatigue.value, formData.data.sante.endurance.max), - html: "" + RdDUtility.makeHTMLfatigueMatrix(formData.data.sante.fatigue.value, formData.data.sante.endurance.max).html() + "
" - }, + fatigue: RdDUtility.calculFatigueHtml(formData.data.sante.fatigue.value, formData.data.sante.endurance.max), resumeBlessures: this.actor.computeResumeBlessure(formData.data.blessures), }; formData.calc.surEncombrementMessage = (formData.data.compteurs.surenc.value < 0) ? "Sur-Encombrement!" : ""; @@ -99,12 +97,6 @@ export class RdDActorSheet extends ActorSheet { formData.ajustementsConditions = CONFIG.RDD.ajustementsConditions; formData.difficultesLibres = CONFIG.RDD.difficultesLibres; - // low is normal, this the base used to compute the grid. - formData.fatigue = { - malus: RdDUtility.calculMalusFatigue(formData.data.sante.fatigue.value, formData.data.sante.endurance.max), - html: "" + RdDUtility.makeHTMLfatigueMatrix(formData.data.sante.fatigue.value, formData.data.sante.endurance.max).html() + "
" - } - formData.hautreve = { sortsReserve: formData.data.reve.reserve.list, rencontres: duplicate(formData.data.reve.rencontre.list), @@ -211,6 +203,7 @@ export class RdDActorSheet extends ActorSheet { super.activateListeners(html); HtmlUtility._showControlWhen($(".gm-only"), game.user.isGM); + HtmlUtility._showControlWhen($(".appliquerFatigue"), ReglesOptionelles.isUsing("appliquer-fatigue")); html.find('#show-hide-competences').click((event) => { this.options.showCompNiveauBase = !this.options.showCompNiveauBase; diff --git a/module/actor.js b/module/actor.js index 85d5ad2f..49587c5e 100644 --- a/module/actor.js +++ b/module/actor.js @@ -196,10 +196,10 @@ export class RdDActor extends Actor { } /* -------------------------------------------- */ getFatigueActuelle() { - if (!this.isPersonnage()) { - return 0; + if (ReglesOptionelles.isUsing("appliquer-fatigue") && this.isPersonnage()) { + return Misc.toInt(Misc.templateData(this).sante.fatigue?.value); } - return Misc.toInt(Misc.templateData(this).sante.fatigue?.value); + return 0; } /* -------------------------------------------- */ getFatigueMax() { @@ -544,7 +544,7 @@ export class RdDActor extends Actor { await this.santeIncDec("vie", actorData.data.sante.vie.max - actorData.data.sante.vie.value); await this.santeIncDec("endurance", actorData.data.sante.endurance.max - actorData.data.sante.endurance.value); - if (actorData.data.sante.fatigue) { + if (ReglesOptionelles.isUsing("appliquer-fatigue") && actorData.data.sante.fatigue) { await this.update({ "data.sante.fatigue.value": 0 }); } } @@ -594,17 +594,18 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async recupererFatigue(message) { - let fatigue = Misc.templateData(this).sante.fatigue.value; - const fatigueMin = this._computeFatigueMin(); - if (fatigue <= fatigueMin) { - message.content += "Vous êtes déjà reposé. "; - return; - } - fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue)); - console.log("recupererFatigue", fatigue) - await this.update({ "data.sante.fatigue.value": fatigue }); - if (fatigue == 0) { - message.content += "Vous êtes complêtement reposé. "; + if (ReglesOptionelles.isUsing("appliquer-fatigue")) { + let fatigue = Misc.templateData(this).sante.fatigue.value; + const fatigueMin = this._computeFatigueMin(); + if (fatigue <= fatigueMin) { + message.content += "Vous êtes déjà reposé. "; + return; + } + fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue)); + await this.update({ "data.sante.fatigue.value": fatigue }); + if (fatigue == 0) { + message.content += "Vous êtes complêtement reposé. "; + } } } @@ -1157,8 +1158,7 @@ export class RdDActor extends Actor { } // Pour les autres let state = - (actorData.data.sante.vie.max - actorData.data.sante.vie.value); - if (actorData.data.sante.fatigue) { - // Creatures n'ont pas de fatigue + if (ReglesOptionelles.isUsing("appliquer-fatigue") && actorData.data.sante.fatigue) { state += RdDUtility.currentFatigueMalus(actorData.data.sante.fatigue.value, actorData.data.sante.endurance.max); } // Ajout de l'éthylisme @@ -1471,7 +1471,9 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async santeIncDec(name, inc, options = { isCritique: false, ethylisme: false }) { - + if (name=='fatigue' && !ReglesOptionelles.isUsing("appliquer-fatigue")) { + return; + } const sante = duplicate(Misc.templateData(this).sante); let compteur = sante[name]; if (!compteur) { @@ -1511,7 +1513,7 @@ export class RdDActor extends Actor { compteur.value = result.newValue; //console.log(name, inc, data.value, result.newValue, minValue, data.max); // If endurance lost, then the same amount of fatigue cannot be recovered - if (sante.fatigue && fatigue > 0) { + if (ReglesOptionelles.isUsing("appliquer-fatigue") && sante.fatigue && fatigue > 0) { sante.fatigue.value = Math.max(sante.fatigue.value + fatigue, this._computeFatigueMin()); } await this.update({ "data.sante": sante }); @@ -2342,6 +2344,7 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async _tacheResult(rollData) { // Mise à jour de la tache + rollData.appliquerFatigue = ReglesOptionelles.isUsing("appliquer-fatigue"); rollData.tache = duplicate(rollData.tache); rollData.tache.data.points_de_tache_courant += rollData.rolled.ptTache; if (rollData.rolled.isETotal) { @@ -2800,10 +2803,7 @@ export class RdDActor extends Actor { const endurance = actorData.data.sante.endurance.max; let tmrFormData = { mode: mode, - fatigue: { - malus: RdDUtility.calculMalusFatigue(fatigue, endurance), - html: "" + RdDUtility.makeHTMLfatigueMatrix(fatigue, endurance).html() + "
" - }, + fatigue: RdDUtility.calculFatigueHtml(fatigue, endurance), draconic: this.getDraconicList(), sort: this.getSortList(), caracReve: actorData.data.carac.reve.value, diff --git a/module/rdd-main.js b/module/rdd-main.js index 5e9cadcc..258436cf 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -171,6 +171,7 @@ Hooks.once("init", async function () { CONFIG.Combat.documentClass = RdDCombatManager; // préparation des différents modules + ReglesOptionelles.init(); RdDUtility.init(); RdDDice.init(); RdDCommands.init(); @@ -179,7 +180,6 @@ Hooks.once("init", async function () { RdDTokenHud.init(); RdDActor.init(); RddCompendiumOrganiser.init(); - ReglesOptionelles.init(); EffetsDraconiques.init() TMRUtility.init(); TMRRencontres.init(); diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js index bf5b309b..54ca9860 100644 --- a/module/rdd-tmr-dialog.js +++ b/module/rdd-tmr-dialog.js @@ -10,8 +10,9 @@ import { Poetique } from "./poetique.js"; import { EffetsDraconiques } from "./tmr/effets-draconiques.js"; import { PixiTMR } from "./tmr/pixi-tmr.js"; import { Draconique } from "./tmr/draconique.js"; -import { Grammar } from "./grammar.js"; import { Misc } from "./misc.js"; +import { HtmlUtility } from "./html-utility.js"; +import { ReglesOptionelles } from "./regles-optionelles.js"; /* -------------------------------------------- */ export class RdDTMRDialog extends Dialog { @@ -49,7 +50,7 @@ export class RdDTMRDialog extends Dialog { this.actor = actor; this.actor.tmrApp = this; // reference this app in the actor structure this.viewOnly = tmrData.mode == "visu" - this.fatigueParCase = this.viewOnly ? 0 : this.actor.getTMRFatigue(); + this.fatigueParCase = this.viewOnly || !ReglesOptionelles.isUsing("appliquer-fatigue") ? 0 : this.actor.getTMRFatigue(); this.cumulFatigue = 0; this.loadRencontres(); this.loadSortsReserve(); @@ -177,6 +178,7 @@ export class RdDTMRDialog extends Dialog { async activateListeners(html) { super.activateListeners(html); + HtmlUtility._showControlWhen($(".appliquerFatigue"), ReglesOptionelles.isUsing("appliquer-fatigue")); document.getElementById("tmrrow1").insertCell(0).append(this.pixiApp.view); if (this.viewOnly) { @@ -214,7 +216,9 @@ export class RdDTMRDialog extends Dialog { // Gestion du cout de montée en points de rêve let reveCout = ((this.tmrdata.isRapide && !EffetsDraconiques.isDeplacementAccelere(this.actor)) ? -2 : -1) - this.actor.countMonteeLaborieuse(); - this.cumulFatigue += this.fatigueParCase; + if (ReglesOptionelles.isUsing("appliquer-fatigue")){ + this.cumulFatigue += this.fatigueParCase; + } await this.actor.reveActuelIncDec(reveCout); // Le reste... @@ -245,9 +249,11 @@ export class RdDTMRDialog extends Dialog { let refoulement = document.getElementById("tmr-refoulement-value"); refoulement.innerHTML = actorData.data.reve.refoulement.value; - let fatigueItem = document.getElementById("tmr-fatigue-table"); - //console.log("Refresh : ", actorData.data.sante.fatigue.value); - fatigueItem.innerHTML = "" + RdDUtility.makeHTMLfatigueMatrix(actorData.data.sante.fatigue.value, actorData.data.sante.endurance.max).html() + "
"; + if (ReglesOptionelles.isUsing("appliquer-fatigue")){ + let fatigueItem = document.getElementById("tmr-fatigue-table"); + //console.log("Refresh : ", actorData.data.sante.fatigue.value); + fatigueItem.innerHTML = "" + RdDUtility.makeHTMLfatigueMatrix(actorData.data.sante.fatigue.value, actorData.data.sante.endurance.max).html() + "
"; + } } /* -------------------------------------------- */ @@ -333,7 +339,7 @@ export class RdDTMRDialog extends Dialog { return true; } const resteAvantInconscience = this.actor.getFatigueMax() - this.actor.getFatigueActuelle() - this.cumulFatigue; - if (resteAvantInconscience <= 0) { + if (ReglesOptionelles.isUsing("appliquer-fatigue") && resteAvantInconscience <= 0) { this._tellToGM("Vous vous écroulez de fatigue : vous quittez les Terres médianes !"); this.quitterLesTMRInconscient(); return true; @@ -408,7 +414,9 @@ export class RdDTMRDialog extends Dialog { else if (rencData.rolled.isEchec && rencData.rencontre.isPersistant) { setTimeout(() => { rencData.nbRounds++; - this.cumulFatigue += this.fatigueParCase; + if (ReglesOptionelles.isUsing("appliquer-fatigue")){ + this.cumulFatigue += this.fatigueParCase; + } this._tentativeMaitrise(rencData); this._deleteTmrMessages(rencData.actor, rencData.nbRounds); }, 2000); @@ -916,7 +924,9 @@ export class RdDTMRDialog extends Dialog { await this.actor.updateCoordTMR(tmr.coord); this._updateDemiReve(); - this.cumulFatigue += this.fatigueParCase; + if (ReglesOptionelles.isUsing("appliquer-fatigue")){ + this.cumulFatigue += this.fatigueParCase; + } this.updateValuesDisplay(); game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_tmr_move", data: { diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 3206e2b1..34b5a4e5 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -6,6 +6,7 @@ import { Misc } from "./misc.js"; import { Grammar } from "./grammar.js"; import { TMRUtility } from "./tmr-utility.js"; import { DialogItemAchat } from "./dialog-item-achat.js"; +import { ReglesOptionelles } from "./regles-optionelles.js"; /* -------------------------------------------- */ // This table starts at 0 -> niveau -10 @@ -388,6 +389,14 @@ export class RdDUtility { } return -7; } + + static calculFatigueHtml(fatigue, endurance) { + return ReglesOptionelles.isUsing("appliquer-fatigue") ? { + malus: RdDUtility.calculMalusFatigue(fatigue, endurance), + html: "" + RdDUtility.makeHTMLfatigueMatrix(fatigue, endurance).html() + "
" + } : { malus:0, html:''}; + } + /* -------------------------------------------- */ // Build the nice (?) html table used to manage fatigue. // max should be the endurance max value @@ -475,18 +484,21 @@ export class RdDUtility { /* -------------------------------------------- */ static currentFatigueMalus(value, max) { - max = Math.max(1, Math.min(max, 60)); - value = Math.min(max * 2, Math.max(0, value)); - - let fatigueTab = fatigueMatrix[max]; - let fatigueRem = value; - for (let idx = 0; idx < fatigueTab.length; idx++) { - fatigueRem -= fatigueTab[idx]; - if (fatigueRem <= 0) { - return fatigueMalus[idx]; + if (ReglesOptionelles.isUsing("appliquer-fatigue")) { + max = Math.max(1, Math.min(max, 60)); + value = Math.min(max * 2, Math.max(0, value)); + + let fatigueTab = fatigueMatrix[max]; + let fatigueRem = value; + for (let idx = 0; idx < fatigueTab.length; idx++) { + fatigueRem -= fatigueTab[idx]; + if (fatigueRem <= 0) { + return fatigueMalus[idx]; + } } + return -7; // This is the max ! } - return -7; // This is the max ! + return 0; } /* -------------------------------------------- */ diff --git a/module/regles-optionelles.js b/module/regles-optionelles.js index e2e16a4e..6b2d1955 100644 --- a/module/regles-optionelles.js +++ b/module/regles-optionelles.js @@ -1,13 +1,15 @@ +import { Misc } from "./misc.js"; const listeReglesOptionelles = [ - { name: 'recul', group: 'combat', descr: "Appliquer le recul en cas de particulière en force ou de charge" }, - { name: 'resistanceArmeParade', group: 'combat', descr: "Faire le jet de résistance des armes lors de parades pouvant les endommager" }, - { name: 'deteriorationArmure', group: 'combat', descr: "Tenir compte de la détérioration des armures" }, - { name: 'defenseurDesarme', group: 'combat', descr: "Le défenseur peut être désarmé en parant une particulière en force ou une charge avec une arme autre qu'un bouclier" }, - { name: 'categorieParade', group: 'combat', descr: "Le défenseur doit obtenir une significative en cas de parade avec des armes de catégories différentes" }, - { name: 'tripleSignificative', group: 'combat', descr: "En cas de demi-surprise, d'attaque particulière en finesse, et de catégories d'armes différentes, le défenseur doit obtenir 1/8 des chances de succès" }, - { name: 'astrologie', group: 'generale', descr: "Appliquer les ajustements astrologiques aux jets de chance et aux rituels", default: true }, - { name: 'afficher-prix-joueurs', group: 'generale', descr: "Afficher le prix de l'équipement des joueurs", default: true } + { name: 'recul', group: 'Règles de combat', descr: "Appliquer le recul en cas de particulière en force ou de charge" }, + { name: 'resistanceArmeParade', group: 'Règles de combat', descr: "Faire le jet de résistance des armes lors de parades pouvant les endommager" }, + { name: 'deteriorationArmure', group: 'Règles de combat', descr: "Tenir compte de la détérioration des armures" }, + { name: 'defenseurDesarme', group: 'Règles de combat', descr: "Le défenseur peut être désarmé en parant une particulière en force ou une charge avec une arme autre qu'un bouclier" }, + { name: 'categorieParade', group: 'Règles de combat', descr: "Le défenseur doit obtenir une significative en cas de parade avec des armes de catégories différentes" }, + { name: 'tripleSignificative', group: 'Règles de combat', descr: "En cas de demi-surprise, d'attaque particulière en finesse, et de catégories d'armes différentes, le défenseur doit obtenir 1/8 des chances de succès" }, + { name: 'astrologie', group: 'Règles de générales', descr: "Appliquer les ajustements astrologiques aux jets de chance et aux rituels", default: true }, + { name: 'afficher-prix-joueurs', group: 'Règles de générales', descr: "Afficher le prix de l'équipement des joueurs", default: true }, + { name: 'appliquer-fatigue', group: 'Règles de générales', descr: "Appliquer les règles de fatigue", default: true }, ]; export class ReglesOptionelles extends FormApplication { @@ -39,25 +41,27 @@ export class ReglesOptionelles extends FormApplication { static get defaultOptions() { const options = super.defaultOptions; mergeObject(options, { - id: "combat-settings", + id: "optional-settings", template: "systems/foundryvtt-reve-de-dragon/templates/regles-optionelles.html", height: 600, width: 350, minimizable: false, closeOnSubmit: true, - title: "Options de combat" + title: "Règles optionnelles" }); return options; } getData() { let formData = super.getData(); - formData.regles = listeReglesOptionelles.map(it => { - let r = duplicate(it); - r.id = ReglesOptionelles._getIdRegle(r.name); - r.active = ReglesOptionelles.isUsing(r.name); - return r; - }) + const regles = listeReglesOptionelles.map(it => { + it = duplicate(it); + it.id = ReglesOptionelles._getIdRegle(it.name); + it.active = ReglesOptionelles.isUsing(it.name); + return it; + }); + formData.regles = regles; + formData.groups = Misc.classify(regles, it => it.group); return formData; } diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index fdcd2367..3fd4cfeb 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -28,7 +28,7 @@
  • -