diff --git a/changelogs/changelog.0.98.1.md b/changelogs/changelog.0.98.1.md new file mode 100755 index 00000000..7e0899a9 --- /dev/null +++ b/changelogs/changelog.0.98.1.md @@ -0,0 +1,21 @@ +### New Features +- Initial support for Object type actors +- Toggling containers +- Updates Spanish translation + +### Github changelist +- [847](https://github.com/Rughalt/D35E/issues/847) - [Bug] Hook `dropActorSheetData` is not invoked. ActorSheetPF `_onDrop` doesn't call super method from base Foundry ActorSheet closed +- [843](https://github.com/Rughalt/D35E/issues/843) - Bug: Fractional base attack option drop to zero salvations closed +- [842](https://github.com/Rughalt/D35E/issues/842) - Bug Report: Templates still add HP closed +- [839](https://github.com/Rughalt/D35E/issues/839) - Can't find some words to translate them in the en.json closed +- [838](https://github.com/Rughalt/D35E/issues/838) - [Bug] Spell Card Actions not working. closed +- [834](https://github.com/Rughalt/D35E/issues/834) - Feature Request: Remove Power Point Limit closed +- [831](https://github.com/Rughalt/D35E/issues/831) - Some Aristocrat class skills are unmarked (Forgery and Gather information). closed +- [830](https://github.com/Rughalt/D35E/issues/830) - FR: Collapsible containers closed +- [829](https://github.com/Rughalt/D35E/issues/829) - FR: Popout chat messages closed +- [828](https://github.com/Rughalt/D35E/issues/828) - Casting a Power increases power points instead of decreasing. closed +- [827](https://github.com/Rughalt/D35E/issues/827) - Caster level of wands doesn't work closed +- [825](https://github.com/Rughalt/D35E/issues/825) - BUG: some "default NPC roll modes" don't work. closed +- [822](https://github.com/Rughalt/D35E/issues/822) - Bug: Bonus Power Points Not Working closed +- [821](https://github.com/Rughalt/D35E/issues/821) - use token character pic instead of primary pic for party HUD thumbnails closed +- [820](https://github.com/Rughalt/D35E/issues/820) - BUG: Low-light vision dont stay selected closed \ No newline at end of file diff --git a/lang/es.json b/lang/es.json index 8e8b7351..fa3c297d 100755 --- a/lang/es.json +++ b/lang/es.json @@ -2,11 +2,13 @@ "D35E 1": "D35E", "D35E.title": "D35E", "D35E.description": "Un sistema de juego completo para ejecutar juegos de D35E 1 en el entorno Foundry VTT.", + "D35E.ActorSheetPFCharacter": "Personaje", "D35E.ActorSheetPFNPC": "PNJ", "D35E.ActorSheetPFNPCLite": "PNJ (Lite)", "D35E.ActorSheetPFNPCMonster": "PNJ (Características)", "D35E.ActorSheetPFNPCLoot": "Botín", + "SETTINGS.D35EDiagN": "Regla de movimiento diagonal", "SETTINGS.D35EDiagL": "Configure qué regla de movimiento diagonal se debe usar para los juegos dentro de este sistema.", "SETTINGS.D35EInitTBN": "Desempate de Destreza de Iniciativa", @@ -35,6 +37,7 @@ "SETTINGS.D35ELowLightVisionModeH": "Cuando se marca, los jugadores que no tienen una ficha seleccionada no se beneficiarán de la visión con poca luz de ninguna de sus fichas (esto también se aplica a la visión en la oscuridad)", "SETTINGS.D35PreloadCompendiumsN": "Compendios de precarga", "SETTINGS.D35PreloadCompendiumsH": "Para precargar navegadores de compendio al cargar la página", + "SETTINGS.D35EHealthConfigName": "Configuración de salud", "SETTINGS.D35EHealthConfigLabel": "Configurar salud", "SETTINGS.D35EHealthConfigHint": "Configurar cálculos de salud para actores.", @@ -54,44 +57,55 @@ "SETTINGS.D35EHealthConfigWoundsAndVigorPCHint": "Usar el reglamento opcional de heridas y vigor para PJs.", "SETTINGS.D35EHealthConfigWoundsAndVigorNPCName": "Heridas y vigor para NPC", "SETTINGS.D35EHealthConfigWoundsAndVigorNPCHint": "Usa el conjunto de reglas opcionales Heridas y Vigor para personajes que no son jugadores.", + "SETTINGS.D35EUnitsN": "Sistema de unidades", "SETTINGS.D35EUnitsL": "Sistema de unidades a utilizar en el mundo", + "TOKEN.VisionLowLight": "Visión con poca luz", "TOKEN.VisionDarkvision": "Visión en la oscuridad", + "D35E.ApplyDamage": "Aplicar daño", "D35E.ApplyCriticalDamage": "Aplicar daño crítico", "D35E.ApplyHealing": "Aplicar curación", "D35E.ApplyCriticalHealing": "Aplicar sanación crítica", + "D35E.RollsForInitiative": "¡{0} tira iniciativa!", + "D35E.FlagsInstructions": "Configure las características y los rasgos de carácter que afinan los comportamientos del sistema D35E.", "D35E.FlagsTitle": "Configurar rasgos especiales", "D35E.FlagsSave": "Actualizar rasgos especiales", + "D35E.AbilityStr": "Fuerza", "D35E.AbilityDex": "Destreza", "D35E.AbilityCon": "Constitución", "D35E.AbilityInt": "Inteligencia", "D35E.AbilityWis": "Sabiduría", "D35E.AbilityCha": "Carisma", + "D35E.AbilityShortStr": "Fue", "D35E.AbilityShortDex": "Des", "D35E.AbilityShortCon": "Con", "D35E.AbilityShortInt": "Int", "D35E.AbilityShortWis": "Sab", "D35E.AbilityShortCha": "Car", + "D35E.SavingThrowFort": "Fortaleza", "D35E.SavingThrowRef": "Reflejos", "D35E.SavingThrowWill": "Voluntad", + "D35E.ACNormal": "CA", - "D35E.ACTouch": "De toque", + "D35E.ACTouch": "Toque", "D35E.ACFlatFooted": "Desprevenido", "D35E.CMDFlatFooted": "CMD desprevenido", - "D35E.ACTypeNormal": "Desvio", + + "D35E.ACTypeNormal": "Desvio", "D35E.ACTypeTouch": "Esquivar", "D35E.ACTypeFlatFooted": "Misc Desprevenido", - "D35E.CondBlind": "Ciego", + + "D35E.CondBlind": "Cegado", "D35E.CondDazzled": "Deslumbrado", - "D35E.CondDeaf": "Sordo", - "D35E.CondEntangled": "Enredado", + "D35E.CondDeaf": "Ensordecido", + "D35E.CondEntangled": "Enmarañado", "D35E.CondFatigued": "Fatigado", "D35E.CondExhausted": "Exhausto", "D35E.CondGrappled": "Apresado", @@ -99,8 +113,9 @@ "D35E.CondParalyzed": "Paralizado", "D35E.CondPinned": "Sujeto", "D35E.CondFear": "Miedo (cualquiera)", - "D35E.CondSickened": "Nauseado", + "D35E.CondSickened": "Afectado", "D35E.CondStunned": "Aturdido", + "D35E.CondTypeBleed": "Sangrando", "D35E.CondTypeBlind": "Ciego", "D35E.CondTypeConfuse": "Confusión", @@ -118,11 +133,14 @@ "D35E.CondTypePetrify": "Petrificación", "D35E.CondTypeStun": "Aturdir", "D35E.CondTypeSleep": "Dormir", + "D35E.CostGP": "Coste (PO)", + "D35E.ClassType": "Tipo de clase", "D35E.ClassTypeBase": "Clase base", "D35E.ClassTypePrestige": "Clase de prestigio", "D35E.ClassTypeRacial": "HD racial", + "D35E.ActionMWAK": "Ataque con arma cuerpo a cuerpo", "D35E.ActionRWAK": "Ataque con arma a distancia", "D35E.ActionMSAK": "Ataque de hechizo cuerpo a cuerpo", @@ -131,23 +149,27 @@ "D35E.ActionSave": "Tiro de salvación", "D35E.ActionHeal": "Curación", "D35E.ActionOther": "Otro", + "D35E.AlignmentLG": "Legal Bueno", "D35E.AlignmentNG": "Neutral Bueno", - "D35E.AlignmentCG": "Caotico bueno", + "D35E.AlignmentCG": "Caótico bueno", "D35E.AlignmentLN": "Legal Neutral", "D35E.AlignmentTN": "Neutral", - "D35E.AlignmentCN": "Caotico Neutral", - "D35E.AlignmentLE": "Legal malvado", - "D35E.AlignmentNE": "Neutral Malvado", - "D35E.AlignmentCE": "Caótico malvado", + "D35E.AlignmentCN": "Caótico Neutral", + "D35E.AlignmentLE": "Legal Maligno", + "D35E.AlignmentNE": "Neutral Maligno", + "D35E.AlignmentCE": "Caótico Maligno", + "D35E.ChatReqMats": "Materiales requeridos", "D35E.ChatOtherFormula": "Otra fórmula", + "D35E.Currency": "Moneda", "D35E.WeightlessCurrency": "Moneda sin peso", "D35E.CurrencyPP": "PPT", "D35E.CurrencyGP": "PO", "D35E.CurrencySP": "PP", "D35E.CurrencyCP": "PC", + "D35E.DistPersonal": "Personal", "D35E.DistTouch": "Toque", "D35E.DistClose": "Cercano", @@ -155,6 +177,7 @@ "D35E.DistLong": "Largo", "D35E.DistFt": "Pies", "D35E.DistMi": "Millas", + "D35E.ItemContainerCapacity": "Capacidad", "D35E.ItemContainerCapacityItems": "Artículos", "D35E.ItemContainerCapacityType": "Tipo de capacidad", @@ -163,20 +186,24 @@ "D35E.ItemContainerHeader": "Contenedores", "D35E.ItemContainerProperties": "Propiedades del contenedor", "D35E.ItemContainerWeightless": "Contenido sin peso", + "D35E.LootTypeGear": "Equipo", "D35E.LootTypeAmmo": "Munición", "D35E.LootTypeTradeGoods": "Bienes comerciales", + "D35E.SenseBS": "Visión ciega", "D35E.SenseDV": "Visión en la oscuridad", "D35E.SenseTS": "Temblor", "D35E.SenseTR": "Vista verdadera", "D35E.SenseLL": "Luz baja", + "D35E.FlyManeuverabilityClumsy": "Torpe", "D35E.FlyManeuverabilityPoor": "Pobre", "D35E.FlyManeuverabilityAverage": "Promedio", "D35E.FlyManeuverabilityGood": "Bueno", "D35E.FlyManeuverabilityPerfect": "Perfecto", - "D35E.BuffTarAC": "C.A", + + "D35E.BuffTarAC": "CA", "D35E.BuffTarACGeneric": "Genérico", "D35E.BuffTarACArmor": "Armadura", "D35E.BuffTarACShield": "Proteger", @@ -195,6 +222,7 @@ "D35E.BuffTarIntChecks": "Pruebas de inteligencia", "D35E.BuffTarWisChecks": "Pruebas de sabiduría", "D35E.BuffTarChaChecks": "Pruebas de carisma", + "D35E.SkillApr": "Tasación", "D35E.SkillBlc": "Equilibrio", "D35E.SkillBlf": "Engañar", @@ -206,28 +234,28 @@ "D35E.SkillDev": "Inutilizar mecanismo", "D35E.SkillDis": "Disfrazarse", "D35E.SkillEsc": "Escapismo", - "D35E.SkillFog": "Falsificación", + "D35E.SkillFog": "Falsificar", "D35E.SkillGif": "Reunir información", "D35E.SkillHan": "Trato con animales", "D35E.SkillHea": "Sanar", "D35E.SkillHid": "Esconderse", "D35E.SkillInt": "Intimidar", "D35E.SkillJmp": "Saltar", - "D35E.SkillKAr": "Saber (Arcano)", - "D35E.SkillKDu": "Saber (mazmorras)", - "D35E.SkillKEn": "Saber (Ingeniería)", - "D35E.SkillKGe": "Saber (Geografía)", - "D35E.SkillKHi": "Saber (Historia)", + "D35E.SkillKAr": "Saber (arcano)", + "D35E.SkillKDu": "Saber (dungeons)", + "D35E.SkillKEn": "Saber (arquitectura e ingeniería)", + "D35E.SkillKGe": "Saber (geografía)", + "D35E.SkillKHi": "Saber (historia)", "D35E.SkillKLo": "Saber (local)", "D35E.SkillKNa": "Saber (naturaleza)", - "D35E.SkillKNo": "Saber (nobleza)", - "D35E.SkillKPl": "Saber (planos)", + "D35E.SkillKNo": "Saber (nobleza y realeza)", + "D35E.SkillKPl": "Saber (los Planos)", "D35E.SkillKRe": "Saber (religión)", "D35E.SkillLis": "Escuchar", "D35E.SkillMos": "Moverse sigilosamente", "D35E.SkillOpl": "Abrir cerraduras", "D35E.SkillPrf": "Interpretar", - "D35E.SkillPro": "Profesión", + "D35E.SkillPro": "Oficio", "D35E.SkillRid": "Montar", "D35E.SkillSrc": "Buscar", "D35E.SkillSen": "Averiguar intenciones", @@ -239,6 +267,8 @@ "D35E.SkillTmb": "Piruetas", "D35E.SkillUMD": "Usar objeto mágico", "D35E.SkillUro": "Uso de cuerdas", + "D35E.SkillSpk": "Hablar un idioma", + "D35E.TargetAlly": "Aliado", "D35E.TargetCreature": "Criatura", "D35E.TargetCylinder": "Cilindro", @@ -253,6 +283,7 @@ "D35E.TargetSquare": "Cuadrado", "D35E.TargetSpace": "Espacio", "D35E.TargetWall": "Pared", + "D35E.TimeInst": "Instantáneo", "D35E.TimeTurn": "Turnos", "D35E.TimeRound": "Rondas", @@ -262,22 +293,28 @@ "D35E.TimeMonth": "Meses", "D35E.TimeYear": "Años", "D35E.TimePerm": "Permanente", + "D35E.TraitArmorProf": "Competencias en armaduras", "D35E.TraitWeaponProf": "Competencias en armas", + "D35E.SpellPrepAtWill": "A voluntad", "D35E.SpellPrepPrepared": "Preparado", "D35E.SpellPrepSpontaneous": "Espontáneo", + "D35E.SpellComponentVerbal": "Verbal", "D35E.SpellComponentSomatic": "Somático", "D35E.SpellComponentMaterial": "Material", "D35E.SpellComponentFocus": "Foco", "D35E.SpellComponentDivineFocus": "Foco divino", + "D35E.SpellComponentDivineFocusAlone": "DF", "D35E.SpellComponentDivineFocusMaterial": "M / DF", "D35E.SpellComponentDivineFocusFocus": "F / DF", + "D35E.MeasureTemplateCone": "Cono", "D35E.MeasureTemplateCircle": "Circulo", "D35E.MeasureTemplateRay": "Rayo", + "D35E.ItemTypeWeapon": "Arma", "D35E.ItemTypeEquipment": "Equipo", "D35E.ItemTypeLoot": "Botín", @@ -287,11 +324,13 @@ "D35E.ItemTypeSpell": "Conjuro", "D35E.ItemTypeFeat": "Dote", "D35E.ItemTypeAttack": "Ataque", + "D35E.WeaponType": "Tipo de arma", "D35E.WeaponTypeSimple": "Sencilla", "D35E.WeaponTypeMartial": "Marcial", "D35E.WeaponTypeExotic": "Exótica", "D35E.WeaponTypeSplash": "Deflagradora", + "D35E.WeaponPropBlocking": "Bloqueo", "D35E.WeaponPropBrace": "Abrazadera", "D35E.WeaponPropDouble": "Doble", @@ -307,13 +346,16 @@ "D35E.WeaponPropSunder": "Romper", "D35E.WeaponPropThrown": "Arrojadizo", "D35E.WeaponPropTrip": "Viaje", + "D35E.WeaponSubtype": "Subtipo de arma", "D35E.WeaponPropLight": "Ligero", "D35E.WeaponPropOneHanded": "Una mano", "D35E.WeaponPropTwoHanded": "Dos manos", "D35E.WeaponSubtypeRanged": "A distancia", + "D35E.EquipTypeShield": "Escudo", "D35E.EquipTypeArmor": "Armadura", + "D35E.EquipTypeLight": "Armadura ligera", "D35E.EquipTypeMedium": "Armadura media", "D35E.EquipTypeHeavy": "Armadura pesada", @@ -323,7 +365,8 @@ "D35E.EquipTypeTowerShield": "Escudo de torre", "D35E.EquipTypeOtherShield": "Escudo misceláneo", "D35E.EquipTypeClothing": "Ropa", - "D35E.EquipTypeWondrousItem": "Artículo maravilloso", + "D35E.EquipTypeWondrousItem": "Objeto maravilloso", + "D35E.EquipSlotSlotless": "Sin ranura", "D35E.EquipSlotArmor": "Armadura", "D35E.EquipSlotShield": "Escudo", @@ -339,11 +382,13 @@ "D35E.EquipSlotHands": "Manos", "D35E.EquipSlotRing": "Anillo", "D35E.EquipSlotFeet": "Pies", + "D35E.ConsumableTypePotion": "Poción / Aceite", "D35E.ConsumableTypePoison": "Veneno", "D35E.ConsumableTypeDrug": "Droga", "D35E.ConsumableTypeScroll": "Pergamino", "D35E.ConsumableTypeWand": "Varita mágica", + "D35E.AttackTypeWeapon": "Ataque con arma", "D35E.AttackTypeWeaponPlural": "Ataques con armas", "D35E.AttackTypeNatural": "Ataque natural", @@ -352,10 +397,12 @@ "D35E.AttackTypeAbilityPlural": "Habilidades de clase", "D35E.AttackTypeRacial": "Habilidad racial", "D35E.AttackTypeRacialPlural": "Habilidades Raciales", + "D35E.FeatTypeFeat": "Dote", "D35E.FeatTypeClassFeat": "Característica de clase", "D35E.FeatTypeTraits": "Rasgo", "D35E.FeatTypeRacial": "Rasgo racial", + "D35E.ActivationTypePassive": "Pasivo", "D35E.ActivationTypeFree": "Acción gratuita", "D35E.ActivationTypeSwift": "Acción rápida", @@ -368,6 +415,7 @@ "D35E.ActivationTypeMinute": "Minuto", "D35E.ActivationTypeHour": "Hora", "D35E.ActivationTypeSpecial": "Especial", + "D35E.ActivationTypeFreePlural": "Acciones gratuitas", "D35E.ActivationTypeSwiftPlural": "Acciones rápidas", "D35E.ActivationTypeImmediatePlural": "Acciones inmediatas", @@ -378,10 +426,12 @@ "D35E.ActivationTypeRoundPlural": "Asaltos", "D35E.ActivationTypeMinutePlural": "Minutos", "D35E.ActivationTypeHourPlural": "Horas", + "D35E.LimitedUseSingle": "De un solo uso", "D35E.LimitedUseDay": "Por día", "D35E.LimitedUseWeek": "Por semana", "D35E.LimitedUseCharges": "Cargas", + "D35E.ActorSizeFine": "Minúsculo", "D35E.ActorSizeDiminutive": "Diminuto", "D35E.ActorSizeTiny": "Menudo", @@ -391,6 +441,7 @@ "D35E.ActorSizeHuge": "Enorme", "D35E.ActorSizeGargantuan": "Gargantuesco", "D35E.ActorSizeColossal": "Colosal", + "D35E.SpellSchoolAbjuration": "Abjuración", "D35E.SpellSchoolConjuration": "Conjuración", "D35E.SpellSchoolDivination": "Adivinación", @@ -400,6 +451,7 @@ "D35E.SpellSchoolNecromancy": "Nigromancia", "D35E.SpellSchoolTransmutation": "Transmutación", "D35E.SpellSchoolUniversal": "Universal", + "D35E.SpellLevel0": "Trucos / Oraciones", "D35E.SpellLevel1": "1º nivel", "D35E.SpellLevel2": "2º nivel", @@ -410,20 +462,25 @@ "D35E.SpellLevel7": "7º nivel", "D35E.SpellLevel8": "8º nivel", "D35E.SpellLevel9": "9º nivel", + "D35E.FavouredClassBonuses": "Bonos de clase predilecta", "D35E.FavouredClassHP": "Puntos de golpe", "D35E.FavouredClassSkill": "Habilidades", "D35E.FavouredClassAlt": "Alt", + "D35E.ArmorProfLight": "Armadura ligera", "D35E.ArmorProfMedium": "Armadura intermedia", "D35E.ArmorProfHeavy": "Armadura pesada", "D35E.ArmorProfShield": "Escudos", "D35E.ArmorProfTowerShield": "Escudos de torre", + "D35E.WeaponProfSimple": "Armas sencillas", "D35E.WeaponProfMartial": "Armas marciales", + "D35E.InventoryWeapons": "Armas", "D35E.InventoryArmorEquipment": "Armadura / Equipo", "D35E.InventoryConsumables": "Consumibles", + "D35E.ChangeFlagLoseDexToAC": "Pierde Des a CA", "D35E.ChangeFlagNoDex": "0 Des", "D35E.ChangeFlagNoStr": "0 Fue", @@ -433,6 +490,7 @@ "D35E.ChangeFlagDwarflikeEncumbrance": "Carga transportada como enano", "D35E.ChangeFlagMediumArmorFullSpeed": "Velocidad máxima en armadura intermedia", "D35E.ChangeFlagHeavyArmorFullSpeed": "Máxima velocidad en armadura pesada", + "D35E.ErrorNoActorPermission": "No tienes permiso para controlar a este actor", "D35E.ErrorNoFormula": "¡{0} no tiene una fórmula para lanzar el dado!", "D35E.ErrorItemNoOwner": "Este artículo no tiene propietario", @@ -443,6 +501,7 @@ "D35E.ErrorUnauthorizedAction": "No está autorizado para realizar esa acción", "D35E.WarningNoSizeDie": "No se pudo determinar el tamaño apropiado del dado para {0}, de manera predeterminada, se lanza {1}", "D35E.NotificationCreatedAttack": "Ataque creado para {0}", + "D35E.CMDNotes": "Notas de CMD", "D35E.AttackNotes": "Notas de ataque", "D35E.EffectNotes": "Notas de efectos", @@ -451,18 +510,22 @@ "D35E.ACNotes": "Notas CA", "D35E.SaveNotes": "Guardar notas", "D35E.NonApplicable": "N / A", + "D35E.SkillTypeAdventure": "Aventuras", "D35E.SkillTypeBackground": "Trasfondo", - "D35E.ACP": "ACP", - "D35E.ACPTooltip": "Penalizacion de armadura a tiradas", - "D35E.CS": "CS", - "D35E.CSTooltip": "Habilidad de clase", - "D35E.RT": "RT", - "D35E.RTTooltip": "Requiere Entrenamiento", + + "D35E.ACP": "PCA", + "D35E.ACPTooltip": "Penalizacion de Clase de Armadura", + "D35E.CS": "HC", + "D35E.CSTooltip": "Habilidad Clásea", + "D35E.RT": "SE", + "D35E.RTTooltip": "Sólo Entrenada", + "D35E.BrowseSpells": "Buscar Hechizos", "D35E.BrowseItems": "Buscar Artículos", "D35E.BrowseBestiary": "Buscar en el Bestiario", "D35E.BrowseFeats": "Buscar Dotes", + "D35E.CreatureTypeAberration": "Aberración", "D35E.CreatureTypeAnimal": "Animal", "D35E.CreatureTypeConstruct": "Constructo", @@ -476,10 +539,12 @@ "D35E.CreatureTypePlant": "Planta", "D35E.CreatureTypeUndead": "Muerto viviente", "D35E.CreatureTypeVermin": "Sabandija", + "D35E.Rest": "Descanso", "D35E.RestoreHealth": "Recuperar salud", "D35E.RestoreDailyUses": "Restaurar usos diarios", "D35E.LongTermCare": "Cuidado a largo plazo", + "D35E.Action": "Acción", "D35E.All": "Todas", "D35E.Attack": "Ataque", @@ -495,7 +560,7 @@ "D35E.ConRes": "Resistencias de condición", "D35E.Critical": "Crítico", "D35E.CriticalConfirmation": "Confirmación crítica", - "D35E.Damage": "Dañar", + "D35E.Damage": "Daño", "D35E.DamageCritical": "Daño crítico", "D35E.DamageRoll": "Tirada de daño", "D35E.DamageType": "Tipo de daño", @@ -545,11 +610,11 @@ "D35E.Size": "Tamaño", "D35E.Special": "Especial", "D35E.Speed": "Velocidad", - "D35E.SpeedBurrow": "Velocidad de escavado", - "D35E.SpeedLand": "Velocidad terrestre", - "D35E.SpeedClimb": "Velocidad de trepar", - "D35E.SpeedSwim": "Velocidad de natación", - "D35E.SpeedFly": "Velocidad de vuelo", + "D35E.SpeedBurrow": "Vel. de escavado", + "D35E.SpeedLand": "Vel. terrestre", + "D35E.SpeedClimb": "Vel. de trepar", + "D35E.SpeedSwim": "Vel. de natación", + "D35E.SpeedFly": "Vel. de vuelo", "D35E.SpeedMisc": "Movimiento misceláneo", "D35E.Spells": "Hechizos", "D35E.Items": "Artículos", @@ -572,9 +637,9 @@ "D35E.TempHP": "Puntos de vida temporales", "D35E.Nonlethal": "No letal", "D35E.Initiative": "Iniciativa", - "D35E.MaxDexShort": "Max Des", + "D35E.MaxDexShort": "Des Max", "D35E.Type": "Tipo", - "D35E.ActionPlural": "Comportamiento", + "D35E.ActionPlural": "Acciones", "D35E.ChargePlural": "Cargas", "D35E.ConditionPlural": "Condiciones", "D35E.Add": "Añadir", @@ -621,7 +686,7 @@ "D35E.SpellResistanceNote": "Resistencia a hechizos {0}", "D35E.ImmunityPlural": "Inmunidades", "D35E.BABAbbr": "Ataque base", - "D35E.BAB": "Bonificación de ataque base", + "D35E.BAB": "Bonif. de ataque base", "D35E.CMBAbbr": "Presa", "D35E.CMB": "Presa", "D35E.CMDAbbr": "Ignora esto", @@ -676,8 +741,8 @@ "D35E.Usage": "Uso", "D35E.Slot": "Espacio", "D35E.MaxDexterityModifier": "Max. Modificador de destreza", - "D35E.ArmorCheckPenalty": "Penalización por comprobación de armadura", - "D35E.ArcaneSpellFailure": "Fracaso de hechizo arcano", + "D35E.ArmorCheckPenalty": "Penalizador de Armadura", + "D35E.ArcaneSpellFailure": "Fallo de conjuro arcano", "D35E.DailyPowerPointsFormula": "Fórmula de puntos de poder diarios", "D35E.SkillsPerLevel": "Habilidades / Nivel", "D35E.Source": "Fuente", @@ -1008,13 +1073,15 @@ "D35E.Filter": "Filtrar", "D35E.FilterDescriptionAddAbilities": "Escribe aquí para filtrar las habilidades disponibles", "D35E.NotAddingAbilityWithNoUID": "Habilidad {0} no fue añadida automáticamente al actor porque no tiene UID", + "D35E.Combat": "Combate", "D35E.SetLevelData": "Guardar datos de nivel", "D35E.WeaponFightingMode": "Modo de empuñado de arma", "D35E.TwoWeaponTwoHanded": "A dos manos", + "D35E.SpeedAndMovement": "Velocidad y movimiento", "D35E.AbilityScores": "Puntuaciones de característica", - "D35E.UsePointBuy": "Utilizar compra de puntos", + "D35E.UsePointBuy": "Compra de puntos", "D35E.SpecialQualities": "Cualidades especiales", "D35E.CMBNotes": "Notas al CMB", "D35E.None-FrF": "Ninguna", @@ -1041,8 +1108,8 @@ "D35E.PrepareSpell": "Preparar conjuro", "D35E.UnprepareSpell": "No preparar el conjuro", "D35E.PrepareMetamagicSpell": "Preparar conjuro metamágico", - "D35E.CR": "ND", - "D35E.XP": "PEX", + "D35E.CR": "VD", + "D35E.XP": "PX", "D35E.RandomizeHP": "Aleatorizar PG", "D35E.Material": "Material", "D35E.NoMaterial": "Sin material", @@ -1060,13 +1127,14 @@ "D35E.SpellSpecializationGrantedPowers": "Poderes otorgados", "D35E.Configuration": "Configuración", "D35E.HasSpecialSpellSlot": "Tiene un espacio especial para conjuros (Dominio / Escuela)", + "D35E.Or": "O", "D35E.or": "o", "D35E.And": "Y", "D35E.and": "y", - "D35E.AlignmentGood": "Bien", + "D35E.AlignmentGood": "Bueno", "D35E.AlignmentLawful": "Legal", - "D35E.AlignmentEvil": "Malvado", + "D35E.AlignmentEvil": "Maligno", "D35E.AlignmentChaotic": "Caótico", "D35E.Resistances": "Resistencias", "D35E.DamageApplied": "Daño aplicado", @@ -1108,6 +1176,7 @@ "D35E.ConditionsAndBuffs": "Condiciones y mejoras", "D35E.ListDragAndDropCompendium": "Compendio", "D35E.LegacyAttributes": "Atributos de actor heredado", + "D35E.SpecialSlotPrepared": "Preparado en la ranura de escuela/dominio", "D35E.SpellReplacement": "Conjurar al usar Conversión espontánea", "D35E.SpellSpecialized": "Conjuro de lista de conjuros de escuelas/ dominios", @@ -1116,6 +1185,7 @@ "D35E.CastAsReplacementDesc": "Este conjuro se lanzará como", "D35E.IsSpontanousReplacemet": "Reemplazo espontáneo", "D35E.PrepareAsSpecialSpell": "Preparar el conjuro en el espacio de Escuela/Dominio", + "D35E.BaseWeaponAttackBonus": "Bonificación de ataque base de arma", "D35E.AttackRoll": "Bonificación de ataque base de arma", "D35E.WeaponDamageAlignment": "Alineamiento de daño de arma", @@ -1126,7 +1196,7 @@ "D35E.AddAllKnownSpells": "Agrega todos los conjuros de clase conocidos para este nivel", "D35E.KnowsAllSpells": "La clase conoce todos los conjuro", "D35E.ClassTypeTemplate": "Plantilla", - "D35E.BaseCR": "ND Base", + "D35E.BaseCR": "VD Base", "D35E.BaseHD": "PG Base", "D35E.MeasureTemplateCube": "Cubo", "D35E.ChangeFlagNoCon": "0 Con", @@ -1136,15 +1206,18 @@ "D35E.AddEffect": "Agregar efecto", "D35E.AddConditional": "Agregar modificador condicional", "D35E.Licenses": "Licencias", + "D35E.Energy": "Energía", "D35E.BaseDamage": "Daño base", "D35E.ERLethalDamage": "Daño letal en caso de criaturas con regeneración", "D35E.LethalDamageFrom": "Daño letal de", + "D35E.FullAttackDropDescription": "Arrastra aquí el ataque del actor para configurarlo.", "D35E.FullAttackAttacks": "Ataques en ataque completo", "D35E.FullAttackDescription": "Descripción completa del ataque", "D35E.FullAttackAttackCount": "Recuento de ataques", - "D35E.ACRollDefense": "Lanzar defensa", + + "D35E.ACRollDefense": "Tirar defensa", "D35E.ACBonus": "Bono de CA situacional", "D35E.ACDialogModifiers": "Modificadores de clase de armadura", "D35E.ACDialogOptions": "Anulaciones", @@ -1168,7 +1241,7 @@ "D35E.Flanking": "Flanqueando", "D35E.Prone": "Tumbado", "D35E.Concealment": "Ocultación", - "D35E.FullConcealment": "Ocultación total", + "D35E.FullConcealment": "Ocultación total (50%)", "D35E.Charge": "Carga", "D35E.HighGround": "Terreno elevado", "D35E.BehindCover": "A cubierto", @@ -1220,15 +1293,18 @@ "D35E.ChangeFlagHasted": "Acelerado", "D35E.SpellAttackCount": "Conteo de hechizos / ataques de habilidad", "D35E.CloseQuartersShot": "Disparar a combate CaC", + "D35E.BuffTarPerfSkills": "Habilidades de interpretar", "D35E.BuffTarCraftSkills": "Habilidades de arte", "D35E.BuffTarKnowSkills": "Habilidades de conocimiento", "D35E.BuffTarProfSkills": "Habilidades de profesión", + "D35E.LightControlledToken": "Los ajustes de iluminación de esta ficha se establecen utilizando elementos del actor (como antorchas o elementos mágicos). Los siguientes ajustes se sobreescribirán a partir de los datos del actor. Para cambiar esto, vaya a la página de configuración de Actor.", "D35E.NoTokenOverride": "No sobreescriba la imagen del token", "D35E.NoTokenOverrideH": "Esta opción desactiva la sobreescritura de la imagen y el tamaño del token del actor, por lo que puede usar imágenes de token animadas. ¡Esto deshabilita el tamaño automático y el cambio de imagen al usar Alterar el propio aspecto y modificaciones de cambio! Esta configuración estará en efecto después de la próxima actualización del actor tras cambiarlo. ", "D35E.NoLightOverride": "No sobreescribir luz del Token", "D35E.NoLightOverrideH": "Esta opción deshabilita la sobreescritura por parte de objetos de la configuración de luz de Token. ¡Esto deshabilita la funcionalidad de antorchas y objetos mágicos que desprenden luz! Esta configuración estará en efecto después de la próxima actualización del actor después de cambiarla. ", + "D35E.CondShaken": "Estremecido", "D35E.LinkedCharge": "Cargos / Usos vinculados a", "D35E.UnlinkCharge": "Desvincular", @@ -1252,6 +1328,228 @@ "D35E.GRRollGrapple": "Tirada de presa", "D35E.GRBonus": "Bono situacional de presa", "D35E.GRDialogModifiers": "Modificadores de presa", + "D35E.CompanionPersonalKey": "Use your personal API Key", + "D35E.CompanionUUID": "Companion UUID", + "D35E.AutosyncCompanion": "Automatically sync to Player's Companion", + "D35E.CompanionGMLockChanges": "Lock Changes from Players", + + "D35E.ChargesToDeduct": "Charges per use", + "D35E.Image": "Image", + "D35E.RaceSubtypePlural": "Suptypes", + "D35E.Value": "Value", + "D35E.VsTouchAc": "Against Touch AC", + "D35E.SpellAttackCountExample": "ex. floor(@cl/2)", + "D35E.LockEditingByPlayers": "Lock Editing by non-GM Users", + + "D35E.CasterLevelShort": "NL", + "D35E.Aura": "Aura", + "D35E.Traits": "Rasgos", + "D35E.AdditionalData": "Datos Misceláneos", + "D35E.NaturalArmorShort": "Nat. Armor", + "D35E.LockEditingByPlayersDesc": "Locks this character sheet from being edited by non-GM users. This setting can be changed only by GM.", + "D35E.SortInventory": "Limpiar el inventario agrupando los objetos con el mismo nombre en cada categoría.", + "D35E.HasUnmetRequirements": "This item has unmet requirements!", + "D35E.RequirementGeneric": "Generic Requirement", + "D35E.CombatChangesRange": "Combat Changes Range (Slider)", + "D35E.MaximumRange": "Maximum Range Value", + "D35E.MaximumRangeFormula": "Maximum Range Value Formula", + "D35E.RangeSliderAbout": "Range Slider can be used as (@range) in Combat Changes.", + "D35E.AmmoRecovered": "Ammo recovered", + "D35E.NotAddingAbilityWithStarUIDRace": "Racial ability {0} was not automatically added to actor because its UID ends with *. Make a copy of this ability and change its uid to use with Race.", + "D35E.CMBOptional": "Grapple (Optional)", + "D35E.CompanionLockGM": "Lock Companion setup changes from Players", + "D35E.CompanionLockGMInfo": "Character Companion Sync was set up by GM. ", + "D35E.CompanionLockGMInfoGM": "Turn off Lock Companion setup setting to make changes.", + "D35E.CompanionPublicUUID": "Public Companion Id", + "D35E.DisplayInCompanion": "View in Player's Companion", + "D35E.ValueDependsOnTWF": "Value depends on Wield Mode. If you change wield mode it will be set according to standard rules.", + "D35E.MaxChargesPerUse": "Maximum charges per use (0 for no limit)", + "D35E.EquippedWeightless": "Eq. weightless", + "D35E.CombatChangesSettings": "Combat Changes Settings", + "D35E.ApplySpecialActionsOnce": "Apply Special Action only with first attack", + "D35E.SpecialAction": "Special Action", + "D35E.ERHalfDamage": "Half damage from Energy", + "D35E.JumpSkillAdjustments": "Speed affects Jump Skill", + + "D35E.DimRadius": "Dim Radius", + "D35E.BrightRadius": "Bright Radius", + "D35E.LightAngle": "Light Emission Angle", + "D35E.CustomAlpha": "Light Color Opacity", + "D35E.DistFtShort": "ft.", + "D35E.DistMiShort": "mi.", + "D35E.AttackBonus": "Atk.", + + + "D35E.AttackTypeWeaponShort": "Weapon", + "D35E.AttackTypeNaturalShort": "Natural", + "D35E.AttackTypeAbilityShort": "Class", + "D35E.AttackTypeRacialShort": "Racial", + + "D35E.SKBonus": "Situational Skill Bonus", + "D35E.SKDialogModifiers": "Skill Modifiers", + "D35E.Take10": "Take 10", + "D35E.Take20": "Take 20", + "D35E.SkillsOptional": "Skills (Optional)", + "D35E.RangeSliderAccessWith": "@range", + "D35E.Slider": "Slider", + + "D35E.SpellEmpowered": "Empowered", + "D35E.SpellQuickened": "Quickened", + "D35E.SpellEnhanced": "Enhanced", + "D35E.SpellEnlarged": "Enlarged", + "D35E.SpellExtended": "Extended", + "D35E.SpellMaximized": "Maximized", + "D35E.SpellIntensified": "Intensified", + "D35E.SpellSilent": "Silent", + "D35E.SpellStill": "Still", + "D35E.SpellWidened": "Widened", + + "D35E.SpellLevel10": "Epic Spells", + "D35E.CreateMetamagicSpell": "Create Metamagic Spell", + "D35E.AvailableMetamagicFeats": "Available Metamagic Feats", + "D35E.RollTableDraw": "Roll Table Draw", + "D35E.RollTableDrawFormula": "Roll Table Draw (empty for default)", + "D35E.UnlinkRolltable": "Unlink Roll Table", + "D35E.LinkedRolltable": "Linked Roll Table", + "D35E.DropRolltable": "Drop Roll Table", + "D35E.ResourceNeedDropFromCompendium": "Dropped item must come from Compendium", + + "D35E.Incorporeal": "Incorporal", + "D35E.SpellslotAbility": "Bonus Spell Slot Ability", + "D35E.Thrown": "Thrown", + "D35E.Returning": "Returning", + "D35E.WeaponTreatAsMagic": "Treat as Magic for purpose of DR", + "D35E.WeaponTreatAsEpic": "Treat as Epic for purpose of DR", + "D35E.ClassHasUnmetRequirements": "This class has unmet requirements", + "D35E.Junk": "Objetos Basura (Tipos de Objetos Inutilizables)", + "D35E.FixContainers": "Fix Containers in Containers", + "D35E.FixContainersDesc": "This action fixes containers that have been put inside a containers in cyclic fashion by removing all container in container associations.", + "D35E.Fix": "Fix", + + "D35E.NoBuffDisplay": "No Buff Icons on Actor Token", + "D35E.NoBuffDisplayH": "Do not display buff icons on token for this actor for people other then OWNER and GM", + + "D35E.NotificationSyncSuccessfull": "Manual sync to LotD Players Companion for {0} was successful!", + "D35E.NotificationSyncError": "Manual sync to LotD Players Companion for {0} encountered an error! Check Companion setup for both World and Character!", + + "D35E.Senses": "Sentidos", + "D35E.SensesConfig": "Configure Senses", + "D35E.SensesConfigHint": "Configure any special sensory perception abilities that this actor possesses.", + "D35E.SenseDarkvision": "Darkvision", + "D35E.SenseBlindsight": "Blindsight", + "D35E.SenseTremorsense": "Tremorsense", + "D35E.SenseTruesight": "Truesight", + "D35E.SenseSpecial": "Special Senses", + + "D35E.VisionLowLight": "Low-light Vision", + + "D35E.DistMeterShort": "m", + + "D35E.NoVisionOverride": "No sobreescribir la Visión del Token", + "D35E.NoVisionOverrideH": "Esta opción deshabilita la sobreescritura de la configuración de la visión del Token del actor y los objetos.", + + "D35E.OnlyPrepared": "Solo preparado", + + "D35E.EmptyCombatChange": "Item {0} has an empty Combat Change", + "D35E.BuffSpellbookSpellsPrepared": "Maximum Prepared Spells", + "D35E.BuffSpellbookSpellsPreparedLevel": "Spellbook {0}, Level {1}", + "D35E.BuffSpellbookSpellcastingAbility": "Spellbook Spellcasting/Spellslot Ability", + "D35E.CustomName":"Custom Name", + "D35E.CustomReferenceName":"Custom Chat Card Name", + "D35E.LeaveEmptyForItemName": "Leave empty to use Item name", + "D35E.Attacks": "Ataca", + "D35E.ModifiedFieldPlaceholder": "Select from list or enter custom", + "D35E.DrawCards":"Draw Cards", + "D35E.SpellCards":"Spell Cards", + "D35E.Cards":"Spell Cards", + "D35E.SpellDeckCasterLevelTotal":"Spell Deck Total Caster Level", + "D35E.HandSize":"Hand Size", + "D35E.DeckSize":"Deck Size", + "D35E.CardDeckBookForClass":"Spell Card Deck for {0}", + "D35E.DeckName":"Deck Name", + "D35E.DeckClass":"Deck Class", + "D35E.DeckAddHalfOtherLevels":"Add Half of Other Levels to Spellcaster Level", + "D35E.RechargeMechanicOnUse":"Use Timed Recharge Mechanic", + "D35E.RechargeTimeFormula":"Recharge Time Formula", + "D35E.RechargeTimeFormulaInfo":"Number of rounds that the action recharges for after use. Accepts simple rolls only.", + "D35E.AutoScaleAttack":"Scale attacks numbers with BAB", + "D35E.FastHealingInfo":"Fast Healing will display in chat and needs to be applied manually", + "D35E.RegenerationInfo":"Regeneration will display in chat and needs to be applied manually", + "D35E.Metamagic":"Metamagic", + "D35E.NaturalArmor":"Armadura Natural", + "D35E.Supernatural":"Supernatural", + "D35E.Extraordinary":"Extraordinary", + "D35E.Natural":"Natural", + "D35E.AbilityType":"Ability Type", + "D35E.Actual":"Actual", + "D35E.PsionicFocus":"Psionic Focus", + "D35E.LinkedItemMissing":"Linked Item is Missing", + "D35E.LinkAddedBy":"Added by", + "D35E.Grapple":"Grapple", + "D35E.Skill":"Skill", + "D35E.GenericCarryLabel": "{0} lbs", + "D35E.GenericCarryLabelKg": "{0} kg", + "D35E.Concealment20": "Ocultación (20%)", + "D35E.ConcealmentBase": "Base Concealment", + "D35E.Encumbrance": "Encumbrance", + "D35E.Gear": "Gear", + "D35E.NotLimited": "Not limited", + "D35E.Auras": "Auras", + "D35E.Enemy": "Enemy", + "D35E.Ally": "Ally", + "D35E.Both": "Both", + "D35E.AuraTarget": "Aura Targets", + "D35E.AuraRange": "Aura Range", + "D35E.PerRound": "Per Round", + "D35E.ShowSpellcastingTab": "Show Spells Tab", + "D35E.ShowDeckTab": "Show Cards Tab", + "D35E.ChatContextDamage": "Apply Damage", + "D35E.ChatContextHealing": "Apply Healing", + "D35E.ChatContextDoubleDamage": "Apply Double Damage", + "D35E.ChatContextHalfDamage": "Apply Half Damage", + "D35E.HandSizeFormula":"Hand Size Formula", + "D35E.DeckSizeFormula":"Deck Size Formula", + "D35E.Bonus":"Bonus", + "D35E.RequiresPsionicFocus": "Requires Psionic Focus!", + "D35E.HalfCasterLevel": "Half Caster Level", + "D35E.IncorporealMiss": "Miss (Incorporeal)", + "D35E.SpellPowerResistance": "Spell/Power Resistance", + "D35E.SpellPowerResistanceOptional": "Spell/Power Resistance (Optional)", + "D35E.ResBonus": "Spell/Power Resistance Bonus", + "D35E.ResRollResistance": "Roll Spell/Power Resistance", + "D35E.ResDialogModifiers": "Spell/Power Resistance Modifiers", + "D35E.ImproveMonster": "Improve Monster", + "D35E.AdvancemenMonsterWindow": "Improve Monster", + "D35E.Advancement": "Advancement", + "D35E.AdvancementChanges": "Advancement Changes", + "D35E.AdvancementHD": "Improved HD", + "D35E.AdvancementSize": "Size Change", + "D35E.AdvancementCR": "CR Change", + "D35E.AdvancementNewHP": "New HP", + "D35E.AdvancementStrengthBonus": "Strength Bonus", + "D35E.AdvancementDexterityBonus": "Dexterity Bonus", + "D35E.AdvancementConstitutionBonus": "Constitution Bonus", + "D35E.AdvancementNaturalACBonus": "Natural AC Bonus", + "D35E.BaseSpellCL": "Consumable Spell Caster Level", + "D35E.MaxDamageDice": "Max Damage Dice formula", + "D35E.AlternativeDamage": "Alternative Damage", + "D35E.AlternativeDamageFormula": "Alternative Damage Formula", + "D35E.ApplyAlt": "Apply Alt", + "D35E.RestParty": "Rest Party", + "D35E.PartyRestedHeader": "Long Rest Completed", + "D35E.PartyRested": "Everyone have rested. Daily uses have been reset, and characters were healed.", + "D35E.ImprovedCover":"Improved Cover", + "D35E.ConcealmentBaseInPercent":"Ocultación (0-100%)", + "D35E.BehindImprovedCover":"Tras cobertura mejorada", + "D35E.STAutoHalfHD": "10 + ½ HD", + "D35E.STAutoHD": "10 + HD", + "D35E.STAutoHalfHDRacial": "10 + ½ Racial HD", + "D35E.STAutoHDRacial": "10 + Racial HD", + "D35E.UseAutoDC": "Automatic DC Calculation", + "D35E.Disable": "Disable", + "D35E.NoAbility": "No Ability", + + "SETTINGS.D35EShowPartyHudN": "Mostrar HUD de grupo", "SETTINGS.D35EShowPartyHudL": "Como mostrar HUD de grupo de personajes", "SETTINGS.D35ECustomSkinN": "Usar interfaz personalizada", diff --git a/module/actor/sheets/base.js b/module/actor/sheets/base.js index ed2df13f..70759655 100755 --- a/module/actor/sheets/base.js +++ b/module/actor/sheets/base.js @@ -2379,7 +2379,7 @@ export class ActorSheetPF extends ActorSheet { /** * @override */ - async _onDrop(event) { + async _onDropActor(event) { event.preventDefault(); if (this.actor.data.data.lockEditingByPlayers && !game.user.isGM) { ui.notifications.error(game.i18n.localize("D35E.GMLockedCharacterSheet")); @@ -2395,67 +2395,86 @@ export class ActorSheetPF extends ActorSheet { } let dataType = ""; const actor = this.actor; - if (data.type === "Item") { - let itemData = {}; - // Case 1 - Import from a Compendium pack - if (data.pack) { - dataType = "compendium"; - const pack = game.packs.find(p => p.collection === data.pack); - const packItem = await pack.getDocument(data.id); - if (packItem != null) { - itemData = packItem.data.toObject(false); - itemData.data.originPack = data.pack; - itemData.data.originId = packItem.id; - } - } - - // Case 2 - Data explicitly provided - else if (data.data) { - let sameActor = data.actorId === actor._id; - if (sameActor && actor.isToken) sameActor = data.tokenId === actor.token.id; - if (sameActor) return this._onSortItem(event, data.data); // Sort existing items + let actorData = {}; + // Case 1 - Import from a Compendium pack + if (data.pack) { + dataType = "compendium"; + const pack = game.packs.find(p => p.collection === data.pack); + const packItem = await pack.getEntity(data.id); + if (packItem != null) actorData = packItem.data; + } - dataType = "data"; - itemData = data.data; - } + // Case 2 - Data explicitly provided + else if (data.data) { + let sameActor = data.actorId === actor._id; + if (sameActor && actor.isToken) sameActor = data.tokenId === actor.token.id; + if (sameActor) return this._onSortItem(event, data.data); // Sort existing items - // Case 3 - Import from World entity - else { - dataType = "world"; - itemData = game.items.get(data.id).data.toObject(false); - } + dataType = "data"; + actorData = data.data; + } - this.enrichDropData(itemData); - return this.importItem(itemData, dataType); - } else if (data.type === "Actor") { - let actorData = {}; - // Case 1 - Import from a Compendium pack - if (data.pack) { - dataType = "compendium"; - const pack = game.packs.find(p => p.collection === data.pack); - const packItem = await pack.getEntity(data.id); - if (packItem != null) actorData = packItem.data; - } + // Case 3 - Import from World entity + else { + dataType = "world"; + actorData = game.actors.get(data.id).data; + } - // Case 2 - Data explicitly provided - else if (data.data) { - let sameActor = data.actorId === actor._id; - if (sameActor && actor.isToken) sameActor = data.tokenId === actor.token.id; - if (sameActor) return this._onSortItem(event, data.data); // Sort existing items + this.enrichDropData(actorData); + return this.importActor(actorData, dataType); + } - dataType = "data"; - actorData = data.data; + /** + * @override + */ + async _onDropItem(event) { + event.preventDefault(); + if (this.actor.data.data.lockEditingByPlayers && !game.user.isGM) { + ui.notifications.error(game.i18n.localize("D35E.GMLockedCharacterSheet")); + return; + } + // Try to extract the data + let data; + try { + data = JSON.parse(event.dataTransfer.getData('text/plain')); + if (data.type !== "Item" && data.type !== "Actor") return; + } catch (err) { + return false; + } + let dataType = ""; + const actor = this.actor; + let itemData = {}; + // Case 1 - Import from a Compendium pack + if (data.pack) { + dataType = "compendium"; + const pack = game.packs.find(p => p.collection === data.pack); + const packItem = await pack.getDocument(data.id); + if (packItem != null) { + itemData = packItem.data.toObject(false); + itemData.data.originPack = data.pack; + itemData.data.originId = packItem.id; } + } - // Case 3 - Import from World entity - else { - dataType = "world"; - actorData = game.actors.get(data.id).data; - } + // Case 2 - Data explicitly provided + else if (data.data) { + let sameActor = data.actorId === actor._id; + if (sameActor && actor.isToken) sameActor = data.tokenId === actor.token.id; + if (sameActor) return this._onSortItem(event, data.data); // Sort existing items + + dataType = "data"; + itemData = data.data; + } - this.enrichDropData(actorData); - return this.importActor(actorData, dataType); + // Case 3 - Import from World entity + else { + dataType = "world"; + itemData = game.items.get(data.id).data.toObject(false); } + + this.enrichDropData(itemData); + return this.importItem(itemData, dataType); + } get currentPrimaryTab() { diff --git a/system.json b/system.json index eead819f..971d6363 100755 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "D35E", "title": "3.5e SRD", "description": "Implementation of 3.5 edition System Reference Document for Foundry VTT. Aiming to provide 100% SRD coverage.", - "version": "0.98.0", + "version": "0.98.1", "author": "Rughalt", "templateVersion": 2, "scripts": [], diff --git a/templates/actors/parts/actor-inventory.html b/templates/actors/parts/actor-inventory.html index e163949c..b1c9324a 100644 --- a/templates/actors/parts/actor-inventory.html +++ b/templates/actors/parts/actor-inventory.html @@ -110,12 +110,12 @@
dropActorSheetData
is not invoked. ActorSheetPF _onDrop
doesn’t call super method from base Foundry ActorSheet closed