arch/dev/scripts
mwedel 4f74533658 Fix monster arcs that had incorrect wrists/foot (1 instead of 2)
Fix update_monster script that generated the errors in the first place.
Add body information to the player/old/*.arc for very old player files.
Move crown from misc directory to armour/helmet, add appropriate body_info.
Add needed body info for elven boots.
MSW 2002-07-15


git-svn-id: svn+ssh://svn.code.sf.net/p/crossfire/code/trunk/arch@1659 282e977c-c81d-0410-88c4-b93c2d0d6712
2002-07-16 05:02:59 +00:00
..
README Update arcs to use body_info for equipping items. 2002-07-15 04:38:58 +00:00
update_armor.pl Update arcs to use body_info for equipping items. 2002-07-15 04:38:58 +00:00
update_body.pl Update arcs to use body_info for equipping items. 2002-07-15 04:38:58 +00:00
update_monster.pl Fix monster arcs that had incorrect wrists/foot (1 instead of 2) 2002-07-16 05:02:59 +00:00
update_object.pl Update arcs to use body_info for equipping items. 2002-07-15 04:38:58 +00:00
update_shield.pl Update arcs to use body_info for equipping items. 2002-07-15 04:38:58 +00:00
updatearch Update arcs to use body_info for equipping items. 2002-07-15 04:38:58 +00:00

README

This directory includes some scripts I wrote to update various archetypes
with certain new values.

These scripts were written to get the job done - they are certainly not
in the best style.  In many cases, the same script was modified for a new
purpose, so the variable names reflect the individual script purpose.

Most all of them take a list of files to work on.  You can typically
do something like script.pl *.arc */*.arc */*/*.arc, etc to update
a large number of files at once.

Mark Wedel
July 2002

update_armor.pl: Replaces the last_heal variables with gen_sp_armour.
Note that this doesn't look at object type, and just does a straight
replacement, so should only be run against armor .arc files.

update_body.pl: Adds appropriate body_.. to equipment objects.  It
looks at the type of equipment it is to determine what body locations
to add.

update_monster.pl: Looks at the various can_use... flags and forms
body information for the object.

update_object.pl: Used to add the name_pl and client_type fields to
the objects.  The first parameter to this script is the client
type to set to, the rest of the parameters are the files to operate on.

update_shield.pl: add can_use_shield values to players/monsters.
Basically, it takes the value of can_use_armor and duplicates it for
can_use_shield.  Doesn't care about object type.

updatearch: This is a shell script which is a bit different - basically,
you provide a perl expression as its parameter, and it runs this
against all the .arc files in the directory you run it in - example:
updatearch 's/armor/prot_phys/' will make the substitution.