Compare commits

...

4 Commits

Author SHA1 Message Date
34039547f9 修改物品摆放bug 2025-10-23 19:35:35 +08:00
284ace6683 修改背包物品摆放位置逻辑bug 2025-10-23 18:54:09 +08:00
3842f9b8f2 修改鱼获摆放位置bug 2025-10-23 09:59:26 +08:00
cb029ce971 修改鱼获获取界面 ui显示bug 2025-10-23 08:37:57 +08:00
8 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -24,7 +24,7 @@ void UContainerInfo::InitContainerByShape(UShapeAsset* InContainerShape)
bool UContainerInfo::AddContainerItem(FContainerItem Item, int32& ItemID)
{
if (IsItemInContainerShape(Item))
if (!IsItemInContainerShape(Item))
{
return false;
}
@ -98,8 +98,8 @@ bool UContainerInfo::IsItemInContainerShape(FContainerItem NewItem)
{
for (int y = 0; y < NewItem.GetItemHeight(); y++)
{
if ( (x + NewItem.ContainerStartPos.X) > 0 && (x + NewItem.ContainerStartPos.X) < ContainerShape->GetShapeWidth() &&
(y + NewItem.ContainerStartPos.Y) > 0 && (y + NewItem.ContainerStartPos.Y) < ContainerShape->GetShapeHeight()
if ( (x + NewItem.ContainerStartPos.X) >= 0 && (x + NewItem.ContainerStartPos.X) < ContainerShape->GetShapeWidth() &&
(y + NewItem.ContainerStartPos.Y) >= 0 && (y + NewItem.ContainerStartPos.Y) < ContainerShape->GetShapeHeight()
)
{
if (!ContainerShape->IsSlotActive(NewItem.ContainerStartPos.X + x, NewItem.ContainerStartPos.Y + y))

View File

@ -86,8 +86,8 @@ public:
break;
case EItemDegreeType::TwentySeven:
{
BeforeRotationPos.X = Position.X;
BeforeRotationPos.Y = GetItemHeight() - Position.Y- 1;
BeforeRotationPos.X= GetItemHeight() - Position.Y - 1;
BeforeRotationPos.Y= Position.X;
}
break;
}