Skip to content

Commit 39af8ac

Browse files
committed
Added getCETCommand().
1 parent b8927c9 commit 39af8ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Mods/Items/BaseItem.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,12 @@ public function getItemCode() : string
8989
{
9090
return $this->data->getString(ItemInfoInterface::KEY_CODE);
9191
}
92+
93+
public function getCETCommand() : string
94+
{
95+
return sprintf(
96+
'Game.AddToInventory("Items.%s")',
97+
$this->getItemCode()
98+
);
99+
}
92100
}

0 commit comments

Comments
 (0)