1
This commit is contained in:
parent
a009046449
commit
cbf57dccc9
@ -3380,23 +3380,23 @@ void Human::ProcBlueStoneItem(AddItemDTO& dto)
|
|||||||
if (entity && entity->IsEntityType(ET_Loot)) {
|
if (entity && entity->IsEntityType(ET_Loot)) {
|
||||||
((Loot*)entity)->count -= add_num;
|
((Loot*)entity)->count -= add_num;
|
||||||
}
|
}
|
||||||
|
SyncVolume(IS_BLUE_STONE);
|
||||||
dto.handled = true;
|
dto.handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Human::ProcPurpleStoneItem(AddItemDTO& dto)
|
void Human::ProcPurpleStoneItem(AddItemDTO& dto)
|
||||||
{
|
{
|
||||||
//护盾
|
//护盾
|
||||||
if (GetInventory(IS_BLUE_STONE) >= GetVolume(IS_BLUE_STONE)) {
|
if (GetInventory(IS_PURPLE_STONE) >= GetVolume(IS_PURPLE_STONE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AddInventory(IS_BLUE_STONE, 1);
|
AddInventory(IS_PURPLE_STONE, 1);
|
||||||
gemstone += 1;
|
|
||||||
room->frame_event.AddPropChg
|
room->frame_event.AddPropChg
|
||||||
(
|
(
|
||||||
GetWeakPtrRef(),
|
GetWeakPtrRef(),
|
||||||
kPropYellowStone,
|
kPropPurpleStone,
|
||||||
0,
|
0,
|
||||||
gemstone,
|
GetInventory(IS_PURPLE_STONE),
|
||||||
false);
|
false);
|
||||||
|
|
||||||
//刷新数量
|
//刷新数量
|
||||||
@ -3405,6 +3405,7 @@ void Human::ProcPurpleStoneItem(AddItemDTO& dto)
|
|||||||
if (entity && entity->IsEntityType(ET_Loot)) {
|
if (entity && entity->IsEntityType(ET_Loot)) {
|
||||||
((Loot*)entity)->count -= add_num;
|
((Loot*)entity)->count -= add_num;
|
||||||
}
|
}
|
||||||
|
SyncVolume(IS_PURPLE_STONE);
|
||||||
dto.handled = true;
|
dto.handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user