diff --git a/gamedir/Data-1.13/Scripts/Overhead.lua b/gamedir/Data-1.13/Scripts/Overhead.lua index 5117a1238..4c9370c17 100644 --- a/gamedir/Data-1.13/Scripts/Overhead.lua +++ b/gamedir/Data-1.13/Scripts/Overhead.lua @@ -596,6 +596,7 @@ InteractiveAction = PICTURE_DELIVERY = 63, -- 2-tile Poster: 'Delivery' PICTURE_GENERALSTORE = 64, -- 2-tile Poster: 'General Store' PICTURE_SHADYLADY = 65, -- 2-tile Poster: 'Shady Lady' + COOK_COWMEAT_TO_STEAK = 66, -- take cow meat from merc, add steak to merc } -- We have an array of 1000 signed integers that a modder can use to set whatever data he wants. @@ -1744,6 +1745,23 @@ function HandleInteractiveActionResult(sSectorX, sSectorY, bSectorZ, sGridNo, bL elseif ( sLuaactionid == InteractiveAction.PICTURE_SHADYLADY ) then DisplayPictureTactical("Interface\\shady_lady.png", 0) + + elseif ( sLuaactionid == InteractiveAction.COOK_COWMEAT_TO_STEAK ) then + + -- 1565 cow meat + -- 1559 Steak + + if ( HasItemInInventory(ubID, 1565) ) then + + CreateItemInvOrFloor(ubID, 1559) + + DestroyOneItemInInventory(ubID, 1565) + + PlaySound("Sounds\\cooking.wav") + + SetScreenMsg(FontColour.FONT_MCOLOR_DKWHITE, "Cooked a steak.") + + end end diff --git a/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml b/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml index 0107e8922..a028ea3a3 100644 --- a/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml +++ b/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml @@ -1178,6 +1178,15 @@ 6 65 + + + + furn_6.sti + 22 + 23 + 6 + 66 + diff --git a/gamedir/Data/Sounds/cooking.wav b/gamedir/Data/Sounds/cooking.wav new file mode 100644 index 000000000..9be63fde6 Binary files /dev/null and b/gamedir/Data/Sounds/cooking.wav differ