diff --git a/module/rdd-combat.js b/module/rdd-combat.js index 506148fa..49b948d0 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -503,7 +503,7 @@ export class RdDCombat { ui.notifications.error("Le joueur " + game.user.name + " n'est connecté à aucun personnage. Impossible de continuer."); return; } - if ((game.user.isGM && !defenderToken.actor.hasPlayerOwner) || (defenderToken.actor.hasPlayerOwner && (game.user.character._id == defenderToken.actor.data._id))) { + if ((game.user.isGM && !defenderToken.actor.hasPlayerOwner) || (defenderToken.actor.hasPlayerOwner && (game.user.character?._id == defenderToken.actor.data._id))) { const rddCombat = RdDCombat.createForAttackerAndDefender(msg.attackerId, msg.defenderTokenId); if (rddCombat) { const defenderRoll = msg.defenderRoll; diff --git a/packs/animaux.db b/packs/animaux.db index 6632ac47..286788a8 100644 --- a/packs/animaux.db +++ b/packs/animaux.db @@ -37,3 +37,4 @@ {"_id":"twCuK1GjVBTUFGXF","name":"Brolute rieuse","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"type":"creature","data":{"carac":{"taille":{"type":"number","value":"7","label":"Taille","xp":0,"derivee":false},"constitution":{"type":"number","value":"12","label":"Constitution","xp":0,"derivee":false},"force":{"type":"number","value":"11","label":"Force","xp":0,"derivee":false},"perception":{"type":"number","value":"14","label":"Perception","xp":0,"derivee":false},"volonte":{"type":"number","value":"8","label":"Volonté","xp":0,"derivee":false},"reve":{"type":"number","value":"15","label":"Rêve","xp":0,"derivee":false}},"sante":{"vie":{"type":"number","max":10,"value":10,"label":"Vie","derivee":false},"endurance":{"type":"number","max":22,"value":22,"label":"Endurance","derivee":false},"sonne":{"value":false,"label":"Sonné","round":-1}},"blessures":{"legeres":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]},"graves":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]},"critiques":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]}},"attributs":{"plusdom":{"type":"number","value":"+0","label":"+dom","derivee":true},"vitesse":{"type":"string","value":"12/24","label":"Vitesse","derivee":true},"encombrement":{"type":"number","value":"0","label":"Encombrement","derivee":false},"protection":{"type":"number","value":"0","label":"Protection","derivee":false}},"compteurs":{"etat":{"value":0,"label":"Etat général"},"surenc":{"value":0,"label":"Sur-encombrement"}},"description":"
Saut
\nLa brolute rieuse est un grand rat d’allure anthropomorphe, bipède, vertical, faisant en moyenne 1m70 pour 45 kg. Dotée du pelage du rat, de sa longue queue nue et annelée, elle se singularise néanmoins par un museau de castor et des yeux bridés.
\nLa brolute rieuse vit de préférence à l’écart des hommes et de la civilisation, mais sans habitat spécifique. Elle se nourrit de fruits, de champignons et d’œufs qu’elle dérobe habilement aux oiseaux. Ce qui la caractérise essentiellement, c’est que quand elle se sent agressée, elle a le pouvoir de créer une déchirure du rêve violette (déchirure de départ), dont elle est le centre. Le rêve d’arrivée lui est toujours profitable, lui permettant de se tirer d’affaire. Elle doit son nom à ce qu’elle adore rire aux grimaces et autres clowneries qu’on peut lui faire. Pendant ce temps, on peut se concentrer pour tenter de lui communiquer empatiquement l’image d’un lieu où l’on voudrait aller, non un lieu spécifique, mais un type de paysage\": rivage marin, forêt, agglomération urbaine, etc. Au moment où elle est le plus en train de rire, il suffit alors de stresser la brolute, et l’on a une chance que la déchirure créée mène au type d’endroit souhaité. Pour parvenir à la communication empathique, réussir EMPATHIE à -5. La brolute rieuse se distingue de la brolute ordinaire, dite brolute pointue, qui ne rit jamais et ne peut créer de déchirure. Celle-là se contente de chercher à fuir en cas d’agression, ou attaque toutes griffes dehors si elle se sent acculée. Pour la distinguer (visuellement) de la rieuse, réussir VUE/Zoologie à -5. Les caractéristiques de combat indiquées ne s’appliquent qu’à la pointue.
","notesmj":"Notes du MJ","competencecreature[0]":{"data":{"carac_value":"13","niveau":"+3"}},"competencecreature[0]]":{"data":{"dommages":"+0"}},"competencecreature[1]":{"data":{"carac_value":"13","niveau":"+3"}},"competencecreature[1]]":{"data":{"dommages":"+0"}},"competencecreature[2]":{"data":{"carac_value":"15","niveau":"+4"}},"competencecreature[2]]":{"data":{"dommages":"+0"}},"competencecreature[3]":{"data":{"carac_value":"13","niveau":"+5"}},"competencecreature[3]]":{"data":{"dommages":"+0"}},"competencecreature[4]":{"data":{"carac_value":"11","niveau":"+2"}},"competencecreature[4]]":{"data":{"dommages":"+1"}},"competencecreature[5]":{"data":{"carac_value":"14","niveau":"+3"}},"competencecreature[5]]":{"data":{"dommages":"+0"}}},"sort":100001,"flags":{"core":{"sheetClass":"wfrp4e.RdDActorCreatureSheet"}},"img":"systems/foundryvtt-reve-de-dragon/icons/creatures/brolute.svg","token":{"flags":{},"name":"Brolute rieuse","displayName":0,"img":"systems/foundryvtt-reve-de-dragon/icons/creatures/brolute_t.webp","tint":"","width":1,"height":1,"scale":1,"mirrorX":false,"mirrorY":false,"lockRotation":false,"rotation":0,"vision":false,"dimSight":0,"brightSight":0,"dimLight":0,"brightLight":0,"sightAngle":360,"lightAngle":360,"lightColor":"","lightAlpha":1,"lightAnimation":{"type":"","speed":5,"intensity":5},"actorId":"twCuK1GjVBTUFGXF","actorLink":false,"disposition":-1,"displayBars":0,"bar1":{"attribute":""},"bar2":{"attribute":""},"randomImg":false},"items":[{"_id":"shsUV8UpU18c0RJK","name":"Course","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":13,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":100000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_course.png","effects":[]},{"_id":"4GmpkphbsmQjvVVK","name":"Escalade","type":"competencecreature","data":{"categorie_parade":"","niveau":4,"default_diffLibre":0,"carac_value":15,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":300000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_escalade.png","effects":[]},{"_id":"CYpxxf1uTa78NWR9","name":"Esquive","type":"competencecreature","data":{"categorie_parade":"","niveau":5,"default_diffLibre":0,"carac_value":13,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":400000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_esquive.png","effects":[]},{"_id":"BjqRrGtHtTzuNpZB","name":"Griffes et Crocs","type":"competencecreature","data":{"categorie_parade":"","niveau":2,"default_diffLibre":0,"carac_value":11,"iscombat":true,"isparade":false,"dommages":1,"description":""},"sort":500000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/compcreature-griffes.png","effects":[]},{"_id":"lzEdMrKXbOYrWG5S","name":"Vigilance","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":14,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":600000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_vigilance.png","effects":[]},{"_id":"plIWZXJT0XGKJ5ar","name":"Saut","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":13,"iscombat":false,"isparade":false,"dommages":0,"description":null},"sort":200000,"flags":{"core":{"sourceId":"Item.JZDgJ7ySiV84llkK"}},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_saut.png","effects":[]}],"effects":[]} {"_id":"yL1XStIKWxGnhKvR","name":"Chrasme","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"type":"creature","data":{"carac":{"taille":{"type":"number","value":"7","label":"Taille","xp":0,"derivee":false},"constitution":{"type":"number","value":"9","label":"Constitution","xp":0,"derivee":false},"force":{"type":"number","value":"11","label":"Force","xp":0,"derivee":false},"perception":{"type":"number","value":"10","label":"Perception","xp":0,"derivee":false},"volonte":{"type":"number","value":"3","label":"Volonté","xp":0,"derivee":false},"reve":{"type":"number","value":"2","label":"Rêve","xp":0,"derivee":false}},"sante":{"vie":{"type":"number","max":8,"value":8,"label":"Vie","derivee":false},"endurance":{"type":"number","max":17,"value":17,"label":"Endurance","derivee":false},"sonne":{"value":false,"label":"Sonné","round":-1}},"blessures":{"legeres":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]},"graves":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]},"critiques":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]}},"attributs":{"plusdom":{"type":"number","value":"+0","label":"+dom","derivee":true},"vitesse":{"type":"string","value":"12/28","label":"Vitesse","derivee":true},"encombrement":{"type":"number","value":"0","label":"Encombrement","derivee":false},"protection":{"type":"number","value":"4","label":"Protection","derivee":false}},"compteurs":{"etat":{"value":0,"label":"Etat général"},"surenc":{"value":0,"label":"Sur-encombrement"}},"description":"Description Le chrasme (prononcer krasme) est une sorte de cafard géant à carapace de crabe aux jointures poilues. Il mesure en moyenne 1 m de haut sur 1m50 de long, et peut peser jusqu’à 50 kg. Doté de mandibules acérées et puissantes, il est redouté pour son venin mortel.
\nLe chrasme vit dans les lieux sombres, cavernes et souterrains, où il se nourrit de tout. Paranos le Moindre affirme qu’à défaut d’une meilleure chère, il peut même se sustenter de cailloux. Il déteste la lumière comme son cousin de petite taille, mais a toutefois un comportement différent: au lieu de fuir, il entre dans une rage féroce et se rue sur le porteur de lumière pour le réduire en charpie. Savez-vous, cher Paranos, que vous nous faites un peu peur ?
\nMalignité | \n3 | \n
Périodicité | \n1 miute | \n
Dommages | \n-1 point de vie | \n
Antidotes | \n-2 \\ Liqueur de Bagdol +16, Teinture d'Erozonne +10 | \n
Le bramart est un quadrupède herbivore de l’allure d’un grand cerf, au pelage brun roux à l’exception du bout des pattes qui est franchement rouge – comme s’il portait des chaussettes. Adulte, il peut faire jusqu’à 270 kg et en moyenne 160. Tout comme le cerf, il porte des bois qui tombent tous les ans et repoussent à la saison suivante avec une ramification supplémentaire.
\nHôtes des forêts où ils se nourrissent de jeunes pousses, les bramarts vivent en petits groupes. Les mâles n’hésitent pas à charger les intrus pour protéger biches et faons.
","notesmj":"Notes du MJ","competencecreature[0]":{"data":{"carac_value":"15"}},"competencecreature[0]]":{"data":{"dommages":"+0"}},"competencecreature[1]":{"data":{"carac_value":"12"}},"competencecreature[1]]":{"data":{"dommages":"+3"}},"competencecreature[2]":{"data":{"carac_value":"15"}},"competencecreature[2]]":{"data":{"dommages":"+0"}},"competencecreature[3]":{"data":{"carac_value":"10"}},"competencecreature[3]]":{"data":{"dommages":"+0"}},"competencecreature[4]":{"data":{"carac_value":"13"}},"competencecreature[4]]":{"data":{"dommages":"+0"}}},"sort":100001,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/creatures/bramart.svg","token":{"flags":{},"name":"Bramart","displayName":0,"img":"systems/foundryvtt-reve-de-dragon/icons/creatures/bramart_t.webp","tint":"","width":1,"height":1,"scale":1.9,"mirrorX":false,"mirrorY":false,"lockRotation":false,"rotation":0,"vision":false,"dimSight":0,"brightSight":0,"dimLight":0,"brightLight":0,"sightAngle":360,"lightAngle":360,"lightColor":"","lightAlpha":1,"lightAnimation":{"type":"","speed":5,"intensity":5},"actorId":"zMvyRrp10dkfcS43","actorLink":false,"disposition":-1,"displayBars":0,"bar1":{"attribute":""},"bar2":{"attribute":""},"randomImg":false},"items":[{"_id":"LWQHz5ymNBzh6ZEr","name":"Cornes","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":12,"iscombat":true,"isparade":false,"dommages":3,"description":""},"sort":200000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/compcreature-corne.png","effects":[]},{"_id":"shsUV8UpU18c0RJK","name":"Course","type":"competencecreature","data":{"categorie_parade":"","niveau":6,"default_diffLibre":0,"carac_value":15,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":300000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_course.png","effects":[]},{"_id":"CYpxxf1uTa78NWR9","name":"Esquive","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":10,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":400000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_esquive.png","effects":[]},{"_id":"lzEdMrKXbOYrWG5S","name":"Vigilance","type":"competencecreature","data":{"categorie_parade":"","niveau":6,"default_diffLibre":0,"carac_value":13,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":500000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_vigilance.png","effects":[]},{"_id":"iwQo9KoK5tfIN7sw","name":"Saut","type":"competencecreature","data":{"categorie_parade":"","niveau":6,"default_diffLibre":0,"carac_value":15,"iscombat":false,"isparade":false,"dommages":0,"description":null},"sort":100000,"flags":{"core":{"sourceId":"Item.JZDgJ7ySiV84llkK"}},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_saut.png","effects":[]}],"effects":[]} +{"_id":"ZLROmHLm6G9pElkk","name":"Bandersnatch","permission":{"default":0,"jOzRscDxoXZWpGS6":3},"type":"creature","data":{"carac":{"taille":{"type":"number","value":"33","label":"Taille","xp":0,"derivee":false},"constitution":{"type":"number","value":"26","label":"Constitution","xp":0,"derivee":false},"force":{"type":"number","value":"26","label":"Force","xp":0,"derivee":false},"perception":{"type":"number","value":"13","label":"Perception","xp":0,"derivee":false},"volonte":{"type":"number","value":"3","label":"Volonté","xp":0,"derivee":false},"reve":{"type":"number","value":"10","label":"Rêve","xp":0,"derivee":false}},"sante":{"vie":{"type":"number","max":30,"value":30,"label":"Vie","derivee":false},"endurance":{"type":"number","max":56,"value":56,"label":"Endurance","derivee":false},"sonne":{"value":false,"label":"Sonné","round":-1}},"blessures":{"legeres":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]},"graves":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""},{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]},"critiques":{"liste":[{"active":false,"premiers_soins":0,"soins_complets":0,"jours":0,"localisation":""}]}},"attributs":{"plusdom":{"type":"number","value":"+9","label":"+dom","derivee":true},"vitesse":{"type":"string","value":"16/60","label":"Vitesse","derivee":true},"encombrement":{"type":"number","value":"0","label":"Encombrement","derivee":false},"protection":{"type":"number","value":"2","label":"Protection","derivee":false}},"compteurs":{"etat":{"value":0,"label":"Etat général"},"surenc":{"value":0,"label":"Sur-encombrement"}},"description":"Le bandersnatch, parfois appelé jabberwock, est peut-être la créature la plus terrifiante qui soit rêvée par les Dragons en dehors des entités de cauchemar. Quoiqu’il possède des traits de ces dernières (résistance à la magie), c’est néanmoins un animal véritable. Énorme, pesant dans les trois tonnes, il ressemble à un gigantesque crapaud, avec une tête de cheval, des ailes de chauve-souris, une peau écailleuse, des griffes comme des dagues et des pointes barbelées sur le dos. Sans véritablement voler, ses ailes lui permettent de se déplacer par bonds pouvant faire jusqu’à 12 m. Sa carapace d’écailles le rend quasiment invulnérable et il résiste automatiquement à tous les sorts d’Hypnos et de Thanatos.
\nLe bandersnatch vit dans le profond des cavernes enténébrées, ne sortant chasser que par les nuits sombres et sans lune. Il a pour la lumière une phobie absolue et la moindre clarté le plonge dans des accès de colère démentielle et dévastatrice. Paranos le Moindre, le célèbre zoologue auteur de Nos Ennemies les Bêtes, affirme que la lumière du soleil a le pouvoir de le réduire instantanément en cendres. Merci, cher Paranos, mais comment vous y prendriez-vous pour le faire sortir de son antre en plein jour ?
","competencecreature[0]":{"data":{"carac_value":"15","niveau":"+6"}},"competencecreature[0]]":{"data":{"dommages":"+0"}},"competencecreature[1]":{"data":{"carac_value":"10","niveau":"+3"}},"competencecreature[1]]":{"data":{"dommages":"+0"}},"competencecreature[2]":{"data":{"carac_value":"13","niveau":"+8"}},"competencecreature[2]]":{"data":{"dommages":"+0"}},"competencecreature[3]":{"data":{"carac_value":"20","niveau":"+3"}},"competencecreature[3]]":{"data":{"dommages":"+2"}},"notesmj":"Notes du MJ"},"sort":100001,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/creatures/bandersnatch.svg","token":{"flags":{},"name":"Bandersnatch","displayName":0,"img":"systems/foundryvtt-reve-de-dragon/icons/creatures/bandersnatch_t.webp","tint":"","width":1,"height":1,"scale":3,"mirrorX":false,"mirrorY":false,"lockRotation":false,"rotation":0,"vision":false,"dimSight":0,"brightSight":0,"dimLight":0,"brightLight":0,"sightAngle":360,"lightAngle":360,"lightColor":"","lightAlpha":1,"lightAnimation":{"type":"","speed":5,"intensity":5},"actorId":"ZLROmHLm6G9pElkk","actorLink":false,"disposition":-1,"displayBars":0,"bar1":{"attribute":""},"bar2":{"attribute":""},"randomImg":false},"items":[{"_id":"shsUV8UpU18c0RJK","name":"Course","type":"competencecreature","data":{"categorie_parade":"","niveau":6,"default_diffLibre":0,"carac_value":15,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":100000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_course.png","effects":[]},{"_id":"CYpxxf1uTa78NWR9","name":"Esquive","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":10,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":200000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_esquive.png","effects":[]},{"_id":"BjqRrGtHtTzuNpZB","name":"Griffes et Crocs","type":"competencecreature","data":{"categorie_parade":"","niveau":8,"default_diffLibre":0,"carac_value":20,"iscombat":true,"isparade":false,"dommages":2,"description":""},"sort":500000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/compcreature-griffes.png","effects":[]},{"_id":"lzEdMrKXbOYrWG5S","name":"Vigilance","type":"competencecreature","data":{"categorie_parade":"","niveau":3,"default_diffLibre":0,"carac_value":13,"iscombat":false,"isparade":false,"dommages":0,"description":""},"sort":400000,"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_vigilance.png","effects":[]}],"effects":[]}