X-Git-Url: https://deadsoftware.ru/gitweb?p=cavecraft.git;a=blobdiff_plain;f=src%2Fworldgen.mpsrc;h=e9e7a0618bd60cf31207f7de75c59255a0b7e903;hp=d49159a2428d1f9293956bc1a2aefd0c86cab6a3;hb=4d7cf2ab1e10d9926d03afb5a3f883bcf5312469;hpb=9115be0a19d5716f33a2e2cba76f3447ce0f4c2f diff --git a/src/worldgen.mpsrc b/src/worldgen.mpsrc index d49159a..e9e7a06 100644 --- a/src/worldgen.mpsrc +++ b/src/worldgen.mpsrc @@ -17,7 +17,8 @@ interface implementation -uses maps,randoms,vars,items,func, player, chest, items_store; + + uses maps, randoms, vars, func, player, chest, items_store, Items, Blocks; function rnd_min:integer; begin @@ -575,8 +576,8 @@ procedure create_bonus_chest(chx,chy:integer); l:=rnd(26); if rnd(75)=rnd(75) then begin - chest.setItem(133 ,l, id); - chest.setSum(getItemMax(133), l, id); + chest.setItem(Items.pickaxe3 ,l, id); + chest.setSum(Items.GetMaximum(Items.pickaxe3), l, id); end; else if rnd(25)=rnd(25) then begin