Mirror DM self-owned PC reward claiming
This commit is contained in:
parent
4fa9c4901a
commit
c2932a1f09
@ -31,7 +31,7 @@ async function saveLoot(){
|
||||
const input={id:draft.value.id,title:draft.value.title,description:draft.value.description,recipient:pc?{owner:pc.owner,character_id:pc.id}:null,items:itemList,currency:draft.value.currency};
|
||||
if(await props.mutate('loot',input)){showingLoot.value=false;draft.value=emptyLoot();error.value=''}
|
||||
}
|
||||
function canClaim(l:LootParcel){return !isDm.value&&l.status==='offered'&&l.recipient?.owner===props.self&&assigned.value.some(p=>p.owner===props.self&&p.id===l.recipient?.character_id)}
|
||||
function canClaim(l:LootParcel){return l.status==='offered'&&l.recipient?.owner===props.self&&assigned.value.some(p=>p.owner===props.self&&p.id===l.recipient?.character_id)}
|
||||
watch(()=>props.campaign.id,()=>{showingQuest.value=false;showingLoot.value=false;error.value=''});
|
||||
</script>
|
||||
<template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user