*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2968 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
b1e939e196
commit
37afdf7331
|
|
@ -0,0 +1,3 @@
|
||||||
|
Always update pshop1 and then run the
|
||||||
|
pshop_copier script to replicate your
|
||||||
|
changes through all the pshops.
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# creator: josh@woosworld.net
|
||||||
|
# Simple script to replicate changes made to pshop1
|
||||||
|
# to the rest of the pshops and keep the correct
|
||||||
|
# keys and exits working.
|
||||||
|
#
|
||||||
|
# Obviously this is based on some conventions I have
|
||||||
|
# don't use pshop1 anywhere else in the file etc...
|
||||||
|
#
|
||||||
|
|
||||||
|
#first rename the pshop1 dir so we don't erase it
|
||||||
|
mv pshop1 PSHOP
|
||||||
|
|
||||||
|
#then remove all the pshop files
|
||||||
|
rm -f pshop*/*
|
||||||
|
|
||||||
|
#copy PSHOP to all the pshop directories
|
||||||
|
for FILE in pshop*;do
|
||||||
|
if [ -d "$FILE" ]
|
||||||
|
then
|
||||||
|
#copy the files into the pshops directories
|
||||||
|
cp PSHOP/* "$FILE"/
|
||||||
|
|
||||||
|
#go there
|
||||||
|
cd $FILE
|
||||||
|
|
||||||
|
#for each file in the pshop directory
|
||||||
|
for MYFILE in *;do
|
||||||
|
#correct the key values on inventory checkers
|
||||||
|
sed s/pshop1/$FILE/ $MYFILE > "$MYFILE"_2
|
||||||
|
rm -f $MYFILE
|
||||||
|
mv "$MYFILE"_2 $MYFILE
|
||||||
|
done
|
||||||
|
|
||||||
|
#get the pshopnum
|
||||||
|
PSHOPNUM=`echo "$FILE" | cut -d p -f3`
|
||||||
|
|
||||||
|
#calculate HP and SP based on pshopnum
|
||||||
|
if [ $PSHOPNUM -lt 14 ]
|
||||||
|
then
|
||||||
|
#top row of shops
|
||||||
|
SP="2"
|
||||||
|
TEMPHP=`expr $PSHOPNUM \* 3`
|
||||||
|
HP=`expr $TEMPHP + 1`
|
||||||
|
else
|
||||||
|
#bottom row of shops
|
||||||
|
SP="6"
|
||||||
|
MODPSHOPNUM=`expr $PSHOPNUM - 14`
|
||||||
|
TEMPHP=`expr $MODPSHOPNUM \* 3`
|
||||||
|
HP=`expr $TEMPHP + 1`
|
||||||
|
fi
|
||||||
|
|
||||||
|
#fix the exit on gfloor
|
||||||
|
while read LINE
|
||||||
|
do
|
||||||
|
if [ "$LINE" == "slaying ../pshops_main" ]
|
||||||
|
then
|
||||||
|
#remove the 2 lines
|
||||||
|
read dummy_hp_line
|
||||||
|
read dummp_sp_line
|
||||||
|
|
||||||
|
#add the original back
|
||||||
|
echo "$LINE" >> gfloor2
|
||||||
|
|
||||||
|
#write the new lines
|
||||||
|
echo "hp $HP" >> gfloor2
|
||||||
|
echo "sp $SP" >> gfloor2
|
||||||
|
|
||||||
|
else
|
||||||
|
#just add it back to the file
|
||||||
|
echo "$LINE" >> gfloor2
|
||||||
|
fi
|
||||||
|
done < gfloor
|
||||||
|
|
||||||
|
#replace gfloor with gfloor2
|
||||||
|
rm -f gfloor
|
||||||
|
mv gfloor2 gfloor
|
||||||
|
|
||||||
|
#go back up
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
#put pshop1 back
|
||||||
|
mv PSHOP pshop1
|
||||||
|
|
||||||
|
#bye
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# creator: josh@woosworld.net
|
||||||
|
# Simple script to replicate changes made to pshop1
|
||||||
|
# to the rest of the pshops and keep the correct
|
||||||
|
# keys working.
|
||||||
|
#
|
||||||
|
# Obviously this is based on some conventions I have
|
||||||
|
# don't use pshop1 anywhere else in the file etc...
|
||||||
|
#
|
||||||
|
|
||||||
|
#first rename the pshop1 dir so we don't erase it
|
||||||
|
mv pshop1 PSHOP
|
||||||
|
|
||||||
|
#then remove all the pshop files
|
||||||
|
rm -f pshop*/*
|
||||||
|
|
||||||
|
#copy PSHOP to all the pshop directories
|
||||||
|
for FILE in pshop*;do
|
||||||
|
if [ -d "$FILE" ]
|
||||||
|
then
|
||||||
|
#copy the files into the pshops directories
|
||||||
|
cp PSHOP/* "$FILE"/
|
||||||
|
|
||||||
|
#go there
|
||||||
|
cd $FILE
|
||||||
|
|
||||||
|
#for each file in the pshop directory
|
||||||
|
for MYFILE in *;do
|
||||||
|
#correct the key values on inventory checkers
|
||||||
|
sed s/pshop1/$FILE/ $MYFILE > "$MYFILE"_2
|
||||||
|
rm -f $MYFILE
|
||||||
|
mv "$MYFILE"_2 $MYFILE
|
||||||
|
done
|
||||||
|
|
||||||
|
#get the pshopnum
|
||||||
|
PSHOPNUM=`echo "$FILE" | cut -d p -f3`
|
||||||
|
|
||||||
|
#calculate HP and SP based on pshopnum
|
||||||
|
if [ $PSHOPNUM -lt 14 ]
|
||||||
|
then
|
||||||
|
#top row of shops
|
||||||
|
SP="2"
|
||||||
|
TEMPHP=`expr $PSHOPNUM \* 3`
|
||||||
|
HP=`expr $TEMPHP + 1`
|
||||||
|
else
|
||||||
|
#bottom row of shops
|
||||||
|
SP="6"
|
||||||
|
MODPSHOPNUM=`expr $PSHOPNUM - 14`
|
||||||
|
TEMPHP=`expr $MODPSHOPNUM \* 3`
|
||||||
|
HP=`expr $TEMPHP + 1`
|
||||||
|
fi
|
||||||
|
|
||||||
|
#fix the exit on gfloor
|
||||||
|
while read LINE
|
||||||
|
do
|
||||||
|
if [ "$LINE" == "slaying ../pshops_main" ]
|
||||||
|
then
|
||||||
|
#remove the 2 lines
|
||||||
|
read dummy_hp_line
|
||||||
|
read dummp_sp_line
|
||||||
|
|
||||||
|
#add the original back
|
||||||
|
echo "$LINE" >> gfloor2
|
||||||
|
|
||||||
|
#write the new lines
|
||||||
|
echo "hp $HP" >> gfloor2
|
||||||
|
echo "sp $SP" >> gfloor2
|
||||||
|
|
||||||
|
else
|
||||||
|
#just add it back to the file
|
||||||
|
echo "$LINE" >> gfloor2
|
||||||
|
fi
|
||||||
|
done < gfloor
|
||||||
|
|
||||||
|
#replace gfloor with gfloor2
|
||||||
|
rm -f gfloor
|
||||||
|
mv gfloor2 gfloor
|
||||||
|
|
||||||
|
#go back up
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
#put pshop1 back
|
||||||
|
mv PSHOP pshop1
|
||||||
|
|
||||||
|
#bye
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
#
|
||||||
|
# Creator: josh@woosworld.net
|
||||||
|
#
|
||||||
|
|
||||||
|
TODO
|
||||||
|
*auto key tracking system? (python to rename the shop?)
|
||||||
|
|
||||||
|
v 1.2.2 -- 20 Sep 2004
|
||||||
|
*updated pshops_copy to properly set exit points
|
||||||
|
|
||||||
|
v 1.2.1 -- 20 Sep 2004
|
||||||
|
*pshops_changelog moved to brest/pshops -- no idea why I didn't have it there
|
||||||
|
to begin with...
|
||||||
|
*corrected gfloor exits to correct spot on pshop_main
|
||||||
|
|
||||||
|
v 1.2 -- 20 Sep 2004
|
||||||
|
*I have added the script I used to replicate the maps into the tarball in
|
||||||
|
case anyone else wants to play with the pshops maps
|
||||||
|
*replaced the edible hides on gfloor maps with nonedible carpet
|
||||||
|
*removed the no magic restriction on pshops_main to allow portals in/out easier
|
||||||
|
*added carpet to floor1's
|
||||||
|
*added managers office to pshopsinc
|
||||||
|
*added stairs up (to third floor) to floor1 (for future use)
|
||||||
|
*added stairs down (to basement) to gfloor (for future use)
|
||||||
|
*added unique tiles to pshopsinc under alters/gates to be a little safer
|
||||||
|
*storage room on floor1 now allows magic (for owner convenience)
|
||||||
|
*pshops_main allows magic for portaling sake (no real reason to not allow it)
|
||||||
|
|
||||||
|
v 1.1 -- 19 Sep 2004
|
||||||
|
*added key price to sign in pshopsinc
|
||||||
|
*correct a problem where you can get stuck inside a gate after buying a key :-)
|
||||||
|
|
||||||
|
v 1.0 -- 19 Sep 2004
|
||||||
|
*Initial Release
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue