From 3af01658a1a423850f7fd02a1d3c02dc054517f5 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Wed, 9 Jul 2014 00:56:22 +0200 Subject: [PATCH] Addons can now load additional stores data --- game/modules/tome/class/Game.lua | 1 + game/modules/tome/class/Store.lua | 2 +- ideas/events | 2 + tiled-maps/zigur.tmx | 124 ++++++------------------------ 4 files changed, 27 insertions(+), 102 deletions(-) diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index 734931fc35..5b742bd5d6 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -632,6 +632,7 @@ Campaign: %s]]):format( end function _M:getStore(def) + print("[STORE] Grabbing", def) return Store.stores_def[def]:clone() end diff --git a/game/modules/tome/class/Store.lua b/game/modules/tome/class/Store.lua index 121bb7f556..2884a5e86f 100644 --- a/game/modules/tome/class/Store.lua +++ b/game/modules/tome/class/Store.lua @@ -26,7 +26,7 @@ module(..., package.seeall, class.inherit(Store)) _M.stores_def = {} function _M:loadStores(f) - self.stores_def = self:loadList(f) + self:loadList(f, nil, self.stores_def) end function _M:init(t, no_default) diff --git a/ideas/events b/ideas/events index 0183041df5..acca710aeb 100644 --- a/ideas/events +++ b/ideas/events @@ -11,3 +11,5 @@ * kill a huge worm => get a new stair to a worm hole * levers on a level => open a trap door to a vault + +* push event: Lina Reverse ! diff --git a/tiled-maps/zigur.tmx b/tiled-maps/zigur.tmx index 5e8f06ca9a..36a1fced84 100644 --- a/tiled-maps/zigur.tmx +++ b/tiled-maps/zigur.tmx @@ -37,11 +37,21 @@ <property name="display" value="t"/> </properties> </tile> + <tile id="69"> + <properties> + <property name="display" value="]"/> + </properties> + </tile> <tile id="72"> <properties> <property name="display" value="~"/> </properties> </tile> + <tile id="81"> + <properties> + <property name="display" value="^"/> + </properties> + </tile> <tile id="117"> <properties> <property name="display" value="^"/> @@ -148,6 +158,11 @@ <property name="display" value="#"/> </properties> </tile> + <tile id="2"> + <properties> + <property name="display" value="~"/> + </properties> + </tile> <tile id="4"> <properties> <property name="display" value="3"/> @@ -183,110 +198,17 @@ <property name="display" value="'"/> </properties> </tile> + <tile id="35"> + <properties> + <property name="display" value="+"/> + </properties> + </tile> </tileset> <layer name="Terrain" width="50" height="50"> <data encoding="base64" compression="zlib"> - eJzt2EtOAzEMBuCwrdRVD1CJS3DdbjkAh+DNkt6AHWLJDo2UCMuKnd/2JJMKKllD23TkbxxnMhxSSofOcTMgehusjl2OEY4dGNxxJoGeA3X1yF/KIeJoWSKGMxDS+Og1sTq0cy75XCmBOK4bgVpGOz7I5yVX6SVZyrVAHXwNkRzlvN/k75qDRsugWSyO2lqoOZb3R+FzyVFetzk0izQ/NYe0pmt9zh1aP6O1oA5q8Tgsa8kRHGcxUIvFgdaC58+jh6NYPpPeHx5DcdDf1RzUaHHQvuF9gjos9ZActRqhDt77iEP63juvtDlW63NtvSoGq8MayLyK9kjr3m65d0t7J68DWX/RPUpkT+hdrySPZY8Vcdzn40PS79Ujwzqv1grrHh8xzOx4CzhGWJbcXvLxOR+/gJw1Q82xJzGiPtZAnwf3aU6L9/8Ma3mse2aPAXmujVhq+5tWj/PxiAFxUEv0GiIOWkPUYHVYLJLjMef9lI+vFYe1Fh6Hty49ewN1bLke93SMtPw7MMdsFtSxtaXliTpm8VgcM1usjpall+lUiajD4kG97w4HtUQca5m89Til3zm2liPqv3RHsczs4PNHG9faS27lKLmXPtQsdNzWfa7lxi214M8pMztqnta+aQYHkicammFUn69l4TW6dMca+8S/6rgb5PgBYjdSQA== + eJzt2c0NwyAMBeBs0jGyAQOwa4epskoPvTQSsvgzfrYTwuGpqtQgf7GBQ/dt2/ZMAiBv5u9zdUjycoqV40OyHDbGKzq4ntoa3g7UHl8OW4OHg65ZWncGxx3uwCc50HPlnRkMHItlPUcmd3XUvkvnKrfvNO68mRxnvhlHaVYkDst565n7qztG7jvvfT6zA2Xyrh1l8a4bZfGumZ7Dx40diL5c2cHxPM0RHBwae8TKoX0flhxSX3pWSQ05R0g+a7Ui+6Th6E36X4bU5WVAZ7T++I/2vGg6WgbqoPNjlTjo4NZKzwO09ayzZqj1RBKkJa2z5dDwaPSEmkqOlqc2N/Q59D5q1YzqjcZ8oh0tm9Y+Q1l6+iTtJecZpCMy1u2ZPe57QFu030FrxldWVp6RH0fSBak= </data> </layer> - <objectgroup name="addSpot" width="50" height="50"> - <object name="portal" x="1030" y="230" width="18" height="18"> - <properties> - <property name="subtype" value=""portal""/> - <property name="type" value=""portal""/> - </properties> - </object> - <object name="portal" x="1253" y="262" width="18" height="18"> - <properties> - <property name="subtype" value=""portal""/> - <property name="type" value=""portal""/> - </properties> - </object> - <object name="portal" x="1223" y="486" width="18" height="18"> - <properties> - <property name="subtype" value=""portal""/> - <property name="type" value=""portal""/> - </properties> - </object> - <object name="portal" x="1031" y="485" width="18" height="18"> - <properties> - <property name="subtype" value=""portal""/> - <property name="type" value=""portal""/> - </properties> - </object> - <object name="POP" x="1127" y="360" width="18" height="18"> - <properties> - <property name="subtype" value=""arena""/> - <property name="type" value=""quest""/> - </properties> - </object> - <object name="POP" x="901" y="390" width="18" height="18"> - <properties> - <property name="subtype" value=""outside-arena""/> - <property name="type" value=""quest""/> - </properties> - </object> - <object name="rhaloren" x="489" y="1001" width="176" height="144"> - <properties> - <property name="subtype" value=""rhaloren""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="900" y="520" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="772" y="232" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="293" y="421" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="325" y="965" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="583" y="679" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="933" y="1127" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="ziguranth" x="996" y="741" width="52" height="49"> - <properties> - <property name="subtype" value=""ziguranth""/> - <property name="type" value=""arrival""/> - </properties> - </object> - <object name="POP" x="933" y="391" width="18" height="18"> - <properties> - <property name="subtype" value=""sealed-gate""/> - <property name="type" value=""quest""/> - </properties> - </object> - </objectgroup> - <objectgroup name="Actor" width="50" height="50"> - <object name="Myssil" x="616" y="165" width="17" height="19"> - <properties> - <property name="display" value="@"/> - <property name="value" value=""PROTECTOR_MYSSIL""/> - </properties> - </object> - </objectgroup> + <objectgroup name="addSpot" width="50" height="50"/> + <objectgroup name="Actor" width="50" height="50"/> </map> -- GitLab