all: add an optional junk bag

game: start implementing basic functions: give/drop/information
  start to implement the identify spell which by goal works weaker
   for an object in the junk bag

Notes:
- you can always add an item in the junk bag.
- you can only give/drop an item in the junk bag
  if you are in a "friendly" city (or if you are in the same city where
   you put the item in the bag :  to avoid making some impossible scenarios).
- the identification spell only "works" if you are in a "friendly" city.
This commit is contained in:
ALONSO Laurent
2022-01-23 14:05:56 +01:00
committed by Celtic Minstrel
parent bfd8676808
commit a182c61a50
19 changed files with 500 additions and 147 deletions

View File

@@ -9,6 +9,7 @@
<button name='pc4' type='small' def-key='4' top='397' left='89'><key/></button>
<button name='pc5' type='small' def-key='5' top='397' left='174'><key/></button>
<button name='pc6' type='small' def-key='6' top='397' left='259'><key/></button>
<button name='junk' type='regular' def-key='7' top='377' left='334'>Bag</button>
<button name='up' type='up' def-key='up' top='5' left='342'/>
<button name='down' type='down' def-key='down' top='346' left='342'/>
<pict name='pc1-g' type='pc' num='0' top='348' left='123'/>

View File

@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='cancel'>
<text top='190' left='11' width='184' height='18'>Hit a button or type '1'-'6'.</text>
<text top='215' left='11' width='184' height='18'>Hit a button or type '1'-'6'.</text>
<pict type='dlog' num='6' top='8' left='8'/>
<button name='pick1' type='regular' def-key='1' top='31' left='69'><key/></button>
<button name='pick2' type='regular' def-key='2' top='56' left='69'><key/></button>
@@ -9,12 +9,14 @@
<button name='pick4' type='regular' def-key='4' top='106' left='69'><key/></button>
<button name='pick5' type='regular' def-key='5' top='131' left='69'><key/></button>
<button name='pick6' type='regular' def-key='6' top='156' left='69'><key/></button>
<button name='junk' type='regular' def-key='7' top='181' left='69'><key/></button>
<text name='pc1' framed='true' top='35' left='138' width='139' height='16'/>
<text name='pc2' framed='true' top='60' left='138' width='139' height='16'/>
<text name='pc3' framed='true' top='85' left='138' width='139' height='16'/>
<text name='pc4' framed='true' top='110' left='138' width='139' height='16'/>
<text name='pc5' framed='true' top='135' left='138' width='139' height='16'/>
<text name='pc6' framed='true' top='160' left='138' width='139' height='16'/>
<text name='junk-text' framed='true' top='185' left='138' width='139' height='16'>Bag</text>
<text name='title' size='large' top='10' left='49' width='228' height='16'>Select a PC:</text>
<button name='cancel' type='regular' top='187' left='214'>Cancel</button>
<button name='cancel' type='regular' top='212' left='214'>Cancel</button>
</dialog>