Update arcs to use body_info for equipping items.
Update armor to use gen_sp_armour instead of last_heal. can_use_shield added to necessary arcs. Add dev/scripts directory, which contains some handy scripts I wrote for updating on the items. Add item_power to the armours - needs to be done for rest of equippable items. MSW 2002-07-14 git-svn-id: svn+ssh://svn.code.sf.net/p/crossfire/code/trunk/arch@1657 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
02aecddf92
commit
87bd1d1a04
10
CHANGES
10
CHANGES
|
@ -1,5 +1,15 @@
|
|||
Changes for CVS top of tree:
|
||||
|
||||
Update arcs to use body_info for equipping items.
|
||||
Update armor to use gen_sp_armour instead of last_heal.
|
||||
can_use_shield added to many arcs.
|
||||
Add dev/scripts directory, which contains some handy scripts I wrote
|
||||
for updating on the items.
|
||||
Add item_power to the armours - needs to be done for rest of equippable
|
||||
items.
|
||||
MSW 2002-07-14
|
||||
|
||||
|
||||
MSW 2000-12-26:
|
||||
Added new archetypes & god changes for new god code. Changes by Jan E.,
|
||||
checked in my MSW.
|
||||
|
|
|
@ -12,4 +12,5 @@ material 8
|
|||
stealth 1
|
||||
editable 5120
|
||||
color_fg green
|
||||
item_power 3
|
||||
end
|
||||
|
|
|
@ -4,7 +4,6 @@ name_pl jack boots
|
|||
client_type 291
|
||||
face high_boots.111
|
||||
value 60
|
||||
last_heal 4
|
||||
weight 6500
|
||||
ac 1
|
||||
nrof 1
|
||||
|
@ -13,4 +12,6 @@ type 99
|
|||
material 24
|
||||
editable 1024
|
||||
color_fg black
|
||||
body_foot -2
|
||||
gen_sp_armour 4
|
||||
end
|
||||
|
|
|
@ -18,4 +18,6 @@ material 8
|
|||
resist_physical 3
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_foot -2
|
||||
item_power 25
|
||||
end
|
||||
|
|
|
@ -12,4 +12,6 @@ resist_physical 3
|
|||
flying 1
|
||||
editable 5120
|
||||
magicmap white
|
||||
body_foot -2
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ client_type 291
|
|||
face low_boots.111
|
||||
value 25
|
||||
color_fg brown
|
||||
last_heal 1
|
||||
weight 2000
|
||||
nrof 1
|
||||
ac 1
|
||||
|
@ -13,4 +12,6 @@ resist_physical 1
|
|||
type 99
|
||||
material 24
|
||||
editable 1024
|
||||
body_foot -2
|
||||
gen_sp_armour 1
|
||||
end
|
||||
|
|
|
@ -5,11 +5,12 @@ client_type 291
|
|||
face sandals.111
|
||||
value 5
|
||||
weight 500
|
||||
last_heal 1
|
||||
resist_physical 1
|
||||
nrof 1
|
||||
type 99
|
||||
material 24
|
||||
editable 1024
|
||||
color_fg brown
|
||||
body_foot -2
|
||||
gen_sp_armour 1
|
||||
end
|
||||
|
|
|
@ -19,4 +19,6 @@ material 8
|
|||
resist_physical 3
|
||||
editable 5120
|
||||
color_fg brown
|
||||
body_foot -2
|
||||
item_power 6
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ material 2
|
|||
weight 3000
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_wrist -2
|
||||
end
|
||||
|
|
|
@ -11,4 +11,6 @@ value 65000
|
|||
weight 3000
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_wrist -2
|
||||
item_power 2
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ material 8
|
|||
editable 1024
|
||||
nrof 1
|
||||
color_fg black
|
||||
body_shoulder -1
|
||||
end
|
||||
|
|
|
@ -14,4 +14,6 @@ material 256
|
|||
resist_magic 95
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_shoulder -1
|
||||
item_power 4
|
||||
end
|
||||
|
|
|
@ -16,4 +16,5 @@ resist_acid 70
|
|||
magic -4
|
||||
damned 1
|
||||
color_fg grey
|
||||
body_shoulder -1
|
||||
end
|
||||
|
|
|
@ -12,4 +12,6 @@ value 900
|
|||
material 32
|
||||
editable 5120
|
||||
nrof 1
|
||||
body_shoulder -1
|
||||
item_power 2
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ material 2
|
|||
weight 1800
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_hand -2
|
||||
end
|
||||
|
|
|
@ -12,4 +12,6 @@ material 2
|
|||
weight 1800
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_hand -2
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -13,4 +13,6 @@ material 2
|
|||
weight 2000
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_hand -2
|
||||
item_power 0
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ material 8
|
|||
weight 100
|
||||
editable 1024
|
||||
magicmap brown
|
||||
body_hand -2
|
||||
end
|
||||
|
|
|
@ -20,4 +20,6 @@ value 120000
|
|||
material 2
|
||||
weight 1800
|
||||
editable 5120
|
||||
body_hand -2
|
||||
item_power 2
|
||||
end
|
||||
|
|
|
@ -18,4 +18,6 @@ value 120000
|
|||
material 2
|
||||
weight 1800
|
||||
editable 5120
|
||||
body_hand -2
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -18,4 +18,6 @@ weight 2500
|
|||
value 75000
|
||||
material 8
|
||||
editable 5120
|
||||
body_waist -1
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -17,4 +17,6 @@ weight 2500
|
|||
value 85000
|
||||
material 8
|
||||
editable 5120
|
||||
body_waist -1
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -17,4 +17,6 @@ value 70000
|
|||
material 8
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_waist -1
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -19,4 +19,6 @@ weight 2500
|
|||
value 80000
|
||||
material 8
|
||||
editable 5120
|
||||
body_waist -1
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -5,11 +5,12 @@ client_type 271
|
|||
nrof 1
|
||||
type 34
|
||||
face a_helmet.111
|
||||
last_heal 5
|
||||
weight 5000
|
||||
ac 1
|
||||
resist_physical 5
|
||||
value 14
|
||||
material 2
|
||||
editable 1024
|
||||
body_head -1
|
||||
gen_sp_armour 5
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ name_pl horned helmets
|
|||
client_type 271
|
||||
type 34
|
||||
face bighorn_he.111
|
||||
last_heal 3
|
||||
ac 1
|
||||
resist_physical 5
|
||||
weight 10000
|
||||
|
@ -13,4 +12,6 @@ value 22
|
|||
material 18
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_head -1
|
||||
gen_sp_armour 3
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ Cha -2
|
|||
material 6
|
||||
editable 1024
|
||||
color_fg black
|
||||
body_head -1
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ name_pl full helmets
|
|||
client_type 271
|
||||
type 34
|
||||
face fullhelmet.111
|
||||
last_heal 10
|
||||
ac 1
|
||||
resist_physical 10
|
||||
weight 12000
|
||||
|
@ -13,4 +12,6 @@ value 16
|
|||
material 2
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_head -1
|
||||
gen_sp_armour 10
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ client_type 271
|
|||
nrof 1
|
||||
type 34
|
||||
face helmet.111
|
||||
last_heal 5
|
||||
weight 5000
|
||||
ac 1
|
||||
resist_physical 5
|
||||
|
@ -13,4 +12,6 @@ value 14
|
|||
material 2
|
||||
editable 1024
|
||||
color_fg black
|
||||
body_head -1
|
||||
gen_sp_armour 5
|
||||
end
|
||||
|
|
|
@ -13,4 +13,6 @@ Pow 2
|
|||
sp 1
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_head -1
|
||||
item_power 5
|
||||
end
|
||||
|
|
|
@ -19,4 +19,6 @@ material 2
|
|||
xrays 1
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_head -1
|
||||
item_power 3
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ name_pl horned helmets
|
|||
client_type 271
|
||||
type 34
|
||||
face hornhelmet.111
|
||||
last_heal 2
|
||||
ac 1
|
||||
resist_physical 2
|
||||
weight 6000
|
||||
|
@ -13,4 +12,6 @@ value 12
|
|||
material 18
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_head -1
|
||||
gen_sp_armour 2
|
||||
end
|
||||
|
|
|
@ -8,7 +8,6 @@ face kog.111
|
|||
Wis 1
|
||||
Cha 2
|
||||
Int 1
|
||||
last_heal 5
|
||||
weight 2000
|
||||
ac 3
|
||||
resist_physical 10
|
||||
|
@ -16,4 +15,7 @@ value 100000
|
|||
material 2
|
||||
editable 1024
|
||||
color_fg black
|
||||
body_head -1
|
||||
gen_sp_armour 5
|
||||
item_power 4
|
||||
end
|
||||
|
|
|
@ -5,10 +5,11 @@ client_type 272
|
|||
nrof 1
|
||||
type 34
|
||||
face turban.111
|
||||
last_heal 1
|
||||
weight 500
|
||||
resist_physical 1
|
||||
value 8
|
||||
material 128
|
||||
editable 1024
|
||||
body_head -1
|
||||
gen_sp_armour 1
|
||||
end
|
||||
|
|
|
@ -10,4 +10,5 @@ Cha 1
|
|||
value 140
|
||||
material 32
|
||||
editable 1024
|
||||
body_head -1
|
||||
end
|
||||
|
|
|
@ -25,4 +25,6 @@ weight 1000
|
|||
value 50000
|
||||
material 128
|
||||
editable 5120
|
||||
body_head -1
|
||||
item_power 10
|
||||
end
|
||||
|
|
|
@ -10,7 +10,6 @@ Pdragonmail.111
|
|||
Pdragonmail.112
|
||||
mina
|
||||
speed 0.2
|
||||
last_heal 9
|
||||
last_sp 13
|
||||
ac 8
|
||||
resist_physical 60
|
||||
|
@ -23,4 +22,7 @@ magic 4
|
|||
editable 5120
|
||||
identified 1
|
||||
color_fg black
|
||||
body_torso -1
|
||||
gen_sp_armour 9
|
||||
item_power 12
|
||||
end
|
||||
|
|
|
@ -6,7 +6,6 @@ client_type 253
|
|||
type 16
|
||||
face chainmail.111
|
||||
color_fg black
|
||||
last_heal 15
|
||||
last_sp 10
|
||||
material 2
|
||||
ac 4
|
||||
|
@ -14,4 +13,6 @@ resist_physical 30
|
|||
weight 60000
|
||||
value 75
|
||||
editable 1024
|
||||
body_torso -1
|
||||
gen_sp_armour 15
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ client_type 251
|
|||
nrof 1
|
||||
type 16
|
||||
face dragonmail.111
|
||||
last_heal 9
|
||||
last_sp 13
|
||||
ac 6
|
||||
resist_physical 50
|
||||
|
@ -16,4 +15,7 @@ magic 3
|
|||
editable 5120
|
||||
identified 1
|
||||
color_fg black
|
||||
body_torso -1
|
||||
gen_sp_armour 9
|
||||
item_power 5
|
||||
end
|
||||
|
|
|
@ -14,4 +14,5 @@ weight 10000
|
|||
value 10000
|
||||
material 128
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -13,4 +13,5 @@ weight 5000
|
|||
value 3000
|
||||
material 128
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -12,4 +12,5 @@ weight 4500
|
|||
value 1000
|
||||
material 128
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -17,4 +17,6 @@ weight 5000
|
|||
value 3000
|
||||
material 128
|
||||
editable 5120
|
||||
body_torso -1
|
||||
item_power 13
|
||||
end
|
||||
|
|
|
@ -11,11 +11,12 @@ resist_physical 40
|
|||
speed 2.000000
|
||||
type 16
|
||||
resist_electricity 30
|
||||
|
||||
material 8
|
||||
value 220000
|
||||
weight 10000
|
||||
last_sp 50
|
||||
editable 5120
|
||||
magicmap brown
|
||||
body_torso -1
|
||||
item_power 4
|
||||
end
|
||||
|
|
|
@ -14,4 +14,5 @@ nrof 1
|
|||
value 10
|
||||
material 8
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ name_pl leather armours
|
|||
client_type 254
|
||||
type 16
|
||||
face leather_ar.111
|
||||
last_heal 8
|
||||
last_sp 13
|
||||
ac 2
|
||||
resist_physical 10
|
||||
|
@ -14,4 +13,6 @@ value 40
|
|||
material 8
|
||||
editable 1024
|
||||
magicmap brown
|
||||
body_torso -1
|
||||
gen_sp_armour 8
|
||||
end
|
||||
|
|
|
@ -13,10 +13,12 @@ mina
|
|||
speed 0.1
|
||||
ac 6
|
||||
resist_physical 35
|
||||
last_heal 5
|
||||
last_sp 18
|
||||
weight 15000
|
||||
value 8000
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_torso -1
|
||||
gen_sp_armour 5
|
||||
item_power 1
|
||||
end
|
||||
|
|
|
@ -14,14 +14,15 @@ speed 0.3
|
|||
ac 4
|
||||
resist_physical 40
|
||||
resist_electricity 30
|
||||
|
||||
Cha 1
|
||||
Str 1
|
||||
exp 1
|
||||
magic 3
|
||||
last_heal 2
|
||||
last_sp 27
|
||||
weight 15000
|
||||
value 4000
|
||||
editable 5120
|
||||
body_torso -1
|
||||
gen_sp_armour 2
|
||||
item_power 9
|
||||
end
|
||||
|
|
|
@ -6,7 +6,6 @@ client_type 252
|
|||
type 16
|
||||
face plate_mail.111
|
||||
color_fg blue
|
||||
last_heal 30
|
||||
last_sp 7
|
||||
material 2
|
||||
ac 5
|
||||
|
@ -14,4 +13,6 @@ resist_physical 40
|
|||
weight 100000
|
||||
value 100
|
||||
editable 1024
|
||||
body_torso -1
|
||||
gen_sp_armour 30
|
||||
end
|
||||
|
|
|
@ -6,7 +6,6 @@ client_type 253
|
|||
type 16
|
||||
face ring_mail.111
|
||||
color_fg blue
|
||||
last_heal 15
|
||||
last_sp 10
|
||||
material 2
|
||||
ac 4
|
||||
|
@ -14,4 +13,6 @@ resist_physical 25
|
|||
weight 50000
|
||||
value 60
|
||||
editable 1024
|
||||
body_torso -1
|
||||
gen_sp_armour 15
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ name_pl ring mails
|
|||
client_type 253
|
||||
type 16
|
||||
face ring_mail2.111
|
||||
last_heal 15
|
||||
last_sp 11
|
||||
material 2
|
||||
ac 4
|
||||
|
@ -14,4 +13,6 @@ weight 40000
|
|||
value 85
|
||||
editable 1024
|
||||
color_fg black
|
||||
body_torso -1
|
||||
gen_sp_armour 15
|
||||
end
|
||||
|
|
|
@ -12,4 +12,5 @@ weight 10000
|
|||
value 30
|
||||
material 128
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -13,4 +13,5 @@ weight 10000
|
|||
value 9
|
||||
material 128
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -30,4 +30,6 @@ weight 5000
|
|||
value 100000
|
||||
material 128
|
||||
editable 5120
|
||||
body_torso -1
|
||||
item_power 25
|
||||
end
|
||||
|
|
|
@ -5,7 +5,6 @@ name_pl scale mails
|
|||
client_type 253
|
||||
type 16
|
||||
face scale_mail.111
|
||||
last_heal 10
|
||||
last_sp 9
|
||||
material 8
|
||||
ac 3
|
||||
|
@ -14,4 +13,6 @@ weight 20000
|
|||
value 30
|
||||
editable 1024
|
||||
color_fg black
|
||||
body_torso -1
|
||||
gen_sp_armour 10
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ nrof 1
|
|||
value 3
|
||||
material 128
|
||||
editable 1024
|
||||
body_torso -1
|
||||
end
|
||||
|
|
|
@ -11,7 +11,6 @@ wdsm.112
|
|||
wdsm.113
|
||||
mina
|
||||
speed 0.1
|
||||
last_heal 9
|
||||
last_sp 13
|
||||
cursed 1
|
||||
startequip 1
|
||||
|
@ -25,4 +24,7 @@ resist_fire 95
|
|||
magic -3
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_torso -1
|
||||
gen_sp_armour 9
|
||||
item_power 5
|
||||
end
|
||||
|
|
|
@ -23,4 +23,6 @@ weight 25000
|
|||
value 50000
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_arm -1
|
||||
item_power 5
|
||||
end
|
||||
|
|
|
@ -29,4 +29,6 @@ weight 25000
|
|||
value 100000
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_arm -1
|
||||
item_power 7
|
||||
end
|
||||
|
|
|
@ -29,4 +29,6 @@ weight 25000
|
|||
value 300000
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_arm -1
|
||||
item_power 10
|
||||
end
|
||||
|
|
|
@ -29,4 +29,6 @@ weight 25000
|
|||
value 100000
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_arm -1
|
||||
item_power 8
|
||||
end
|
||||
|
|
|
@ -14,4 +14,6 @@ weight 5000
|
|||
value 28000
|
||||
editable 5120
|
||||
identified 1
|
||||
body_arm -1
|
||||
item_power 2
|
||||
end
|
||||
|
|
|
@ -9,10 +9,11 @@ face eyeshield.111
|
|||
ac 3
|
||||
resist_physical 3
|
||||
resist_magic 30
|
||||
|
||||
weight 15000
|
||||
value 30000
|
||||
editable 5120
|
||||
identified 1
|
||||
color_fg white
|
||||
body_arm -1
|
||||
item_power 2
|
||||
end
|
||||
|
|
|
@ -12,4 +12,5 @@ value 24
|
|||
material 2
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_arm -1
|
||||
end
|
||||
|
|
|
@ -14,4 +14,6 @@ resist_drain 100
|
|||
resist_ghosthit 50
|
||||
editable 5120
|
||||
magicmap grey
|
||||
body_arm -1
|
||||
item_power 6
|
||||
end
|
||||
|
|
|
@ -19,4 +19,6 @@ weight 18000
|
|||
value 100000
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_arm -1
|
||||
item_power 2
|
||||
end
|
||||
|
|
|
@ -12,4 +12,5 @@ value 21
|
|||
material 18
|
||||
editable 1024
|
||||
magicmap orange
|
||||
body_arm -1
|
||||
end
|
||||
|
|
|
@ -12,4 +12,5 @@ weight 15000
|
|||
value 22
|
||||
editable 1024
|
||||
magicmap grey
|
||||
body_arm -1
|
||||
end
|
||||
|
|
|
@ -11,4 +11,5 @@ value 20
|
|||
material 2
|
||||
editable 1024
|
||||
magicmap brown
|
||||
body_arm -1
|
||||
end
|
||||
|
|
|
@ -13,4 +13,5 @@ value 21
|
|||
material 18
|
||||
editable 1024
|
||||
magicmap orange
|
||||
body_arm -1
|
||||
end
|
||||
|
|
|
@ -12,4 +12,6 @@ resist_physical 15
|
|||
resist_deplete 100
|
||||
editable 5120
|
||||
color_fg black
|
||||
body_arm -1
|
||||
item_power 5
|
||||
end
|
||||
|
|
|
@ -14,4 +14,6 @@ weight 6000
|
|||
magic 2
|
||||
identified 1
|
||||
editable 5120
|
||||
body_arm -1
|
||||
item_power 4
|
||||
end
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
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.
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
for ($i=0; $i<=$#ARGV; $i++) {
|
||||
if (!rename("$ARGV[$i]", "$ARGV[$i].bak")) {
|
||||
print STDERR "Unable to rename file $ARGV[$i]\n";
|
||||
next;
|
||||
}
|
||||
open(IN,"<$ARGV[$i].bak");
|
||||
open(OUT,">$ARGV[$i]");
|
||||
while (<IN>) {
|
||||
$in = $_;
|
||||
if (/^end\s*$/) {
|
||||
if ($body_info ne "" ) {
|
||||
print OUT "$body_info\n";
|
||||
print "Added $body_info to $ARGV[$i]\n";
|
||||
}
|
||||
$body_info="";
|
||||
}
|
||||
if (/^Object (.*)$/) {
|
||||
$body_info="";
|
||||
}
|
||||
if (/^last_heal (.*)$/) {
|
||||
$body_info="gen_sp_armour $1";
|
||||
next;
|
||||
}
|
||||
print OUT $in;
|
||||
}
|
||||
close(OUT);
|
||||
close(IN);
|
||||
unlink("$ARGV[$i].bak");
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
for ($i=0; $i<=$#ARGV; $i++) {
|
||||
if (!rename("$ARGV[$i]", "$ARGV[$i].bak")) {
|
||||
print STDERR "Unable to rename file $ARGV[$i]\n";
|
||||
next;
|
||||
}
|
||||
open(IN,"<$ARGV[$i].bak");
|
||||
open(OUT,">$ARGV[$i]");
|
||||
while (<IN>) {
|
||||
$in = $_;
|
||||
if (/^end\s*$/) {
|
||||
if ($body_info ne "" ) {
|
||||
print OUT "$body_info\n";
|
||||
print "Added $body_info to $ARGV[$i]\n";
|
||||
}
|
||||
$body_info="";
|
||||
}
|
||||
if (/^Object (.*)$/) {
|
||||
$body_info="";
|
||||
}
|
||||
if (/^type (.*)$/) {
|
||||
$body_info="body_skill -1" if ($1 == 43); # misc skill
|
||||
$body_info="body_range -1" if ($1 == 3); # rod
|
||||
$body_info="body_arm -2" if ($1 == 14); # bow
|
||||
$body_info="body_arm -1" if ($1 == 15); # weapon
|
||||
$body_info="body_torso -1" if ($1 == 16); # armor
|
||||
$body_info="body_arm -1" if ($1 == 33); # shield
|
||||
$body_info="body_head -1" if ($1 == 34); # helmet
|
||||
$body_info="body_range -1" if ($1 == 35); # horn
|
||||
$body_info="body_neck -1" if ($1 == 39); # amulet
|
||||
$body_info="body_finger -1" if ($1 == 70); # ring
|
||||
$body_info="body_shoulder -1" if ($1 == 87); # cloak
|
||||
$body_info="body_foot -2" if ($1 == 99); # cloak
|
||||
$body_info="body_hand -2" if ($1 == 100); # gloves
|
||||
$body_info="body_wrist -2" if ($1 == 104); # bracers
|
||||
$body_info="body_range -1" if ($1 == 109); # wand
|
||||
$body_info="body_waist -1" if ($1 == 113); # girdle
|
||||
}
|
||||
print OUT $in;
|
||||
}
|
||||
close(OUT);
|
||||
close(IN);
|
||||
unlink("$ARGV[$i].bak");
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
for ($i=0; $i<=$#ARGV; $i++) {
|
||||
if (!rename("$ARGV[$i]", "$ARGV[$i].bak")) {
|
||||
print STDERR "Unable to rename file $ARGV[$i]\n";
|
||||
next;
|
||||
}
|
||||
print "Processing $ARGV[$i]\n";
|
||||
open(IN,"<$ARGV[$i].bak");
|
||||
open(OUT,">$ARGV[$i]");
|
||||
while (<IN>) {
|
||||
$in = $_;
|
||||
if (/^end\s*$/) {
|
||||
print OUT "$body_info" if ($body_info ne "");
|
||||
print OUT "$weapon_info" if ($weapon_info ne "");
|
||||
print OUT "$wand" if ($wand ne "");
|
||||
$body_info="";
|
||||
$weapon_info="";
|
||||
$wand="";
|
||||
}
|
||||
if (/^Object (.*)$/) {
|
||||
$body_info="";
|
||||
$weapon_info="";
|
||||
$wand="";
|
||||
}
|
||||
elsif (/^can_use_shield\s+1/) {
|
||||
$weapon_info="body_arm 2\n";
|
||||
}
|
||||
elsif (/^can_use_bow\s+1/) {
|
||||
$weapon_info="body_arm 2\n";
|
||||
}
|
||||
elsif (/^can_use_weapon\s+1/) {
|
||||
$weapon_info="body_arm 2\n";
|
||||
}
|
||||
elsif (/^can_use_wand\s+1/) {
|
||||
$wand="body_range 1\n";
|
||||
}
|
||||
elsif (/^can_use_rod\s+1/) {
|
||||
$wand="body_range 1\n";
|
||||
}
|
||||
elsif (/^can_use_horn\s+1/) {
|
||||
$wand="body_range 1\n";
|
||||
}
|
||||
elsif (/^can_use_armour\s+1/) {
|
||||
$body_info .= "body_torso 1\nbody_head 1\nbody_shoulder 1\nbody_foot 1\nbody_wrist 1\nbody_hand 2\nbody_waist 1\n";
|
||||
}
|
||||
elsif (/^can_use_ring\s+1/) {
|
||||
$body_info .="body_finger 2\n";
|
||||
}
|
||||
elsif (/^can_use_skill\s+1/) {
|
||||
$body_info .="body_skill 1\n";
|
||||
}
|
||||
|
||||
print OUT $in;
|
||||
}
|
||||
close(OUT);
|
||||
close(IN);
|
||||
unlink("$ARGV[$i].bak");
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/perl
|
||||
$TYPE = $ARGV[0];
|
||||
die ("type is 0: $TYPE\n") if (($TYPE + 1) == 1);
|
||||
|
||||
for ($i=1; $i<=$#ARGV; $i++) {
|
||||
if (!rename("$ARGV[$i]", "$ARGV[$i].bak")) {
|
||||
print STDERR "Unable to rename file $ARGV[$i]\n";
|
||||
next;
|
||||
}
|
||||
open(IN,"<$ARGV[$i].bak");
|
||||
open(OUT,">$ARGV[$i]");
|
||||
while (<IN>) {
|
||||
$in = $_;
|
||||
if (/^end\s*$/) {
|
||||
print OUT "name_pl $namepl\n";
|
||||
print OUT "client_type $TYPE\n";
|
||||
$namepl="";
|
||||
}
|
||||
if (/^Object (.*)$/) {
|
||||
$namepl = $1."s";
|
||||
}
|
||||
if (/^name (.*)$/) {
|
||||
$namepl = $1."s";
|
||||
}
|
||||
print OUT $in;
|
||||
}
|
||||
close(OUT);
|
||||
close(IN);
|
||||
unlink("$ARGV[$i].bak");
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
for ($i=0; $i<=$#ARGV; $i++) {
|
||||
$changed = 0;
|
||||
open(IN,"<$ARGV[$i]");
|
||||
open(OUT,">$ARGV[$i].new");
|
||||
while (<IN>) {
|
||||
$in = $_;
|
||||
if (/^can_use_armour (.*)$/) {
|
||||
print OUT "can_use_shield $1\n";
|
||||
$changed = 1;
|
||||
}
|
||||
print OUT $in;
|
||||
}
|
||||
close(OUT);
|
||||
close(IN);
|
||||
if (! $changed) {
|
||||
unlink("$ARGV[$i].new");
|
||||
# print "$ARGV[$i] unchanged\n";
|
||||
} else {
|
||||
print "$ARGV[$i] updated\n";
|
||||
unlink("$ARGV[$i]");
|
||||
if (!rename("$ARGV[$i].new", "$ARGV[$i]")) {
|
||||
print STDERR "Unable to rename file $ARGV[$i]\n";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/csh
|
||||
|
||||
foreach i ( *.arc )
|
||||
mv $i $i.bak
|
||||
# echo "using $* on $i.bak"
|
||||
perl -p -e "$*" $i.bak > $i
|
||||
if ($status == 0) then
|
||||
rm $i.bak
|
||||
else
|
||||
mv $i.bak $i
|
||||
endif
|
||||
end
|
|
@ -11,4 +11,6 @@ identified 0
|
|||
name_pl boozes
|
||||
client_type 611
|
||||
cursed 1
|
||||
known_cursed 0
|
||||
title of poison
|
||||
end
|
||||
|
|
|
@ -26,6 +26,7 @@ wc -3
|
|||
dam 50
|
||||
level 15
|
||||
speed 0.25
|
||||
can_use_shield 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_cast_spell 1
|
||||
|
|
|
@ -24,6 +24,7 @@ wc -3
|
|||
dam 30
|
||||
level 15
|
||||
speed 0.25
|
||||
can_use_shield 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_cast_spell 1
|
||||
|
|
|
@ -33,6 +33,7 @@ last_sp 1
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
msg
|
||||
Elven god of luck, Huntsman of Goblins, Trollslayer, the Trickster
|
||||
endmsg
|
||||
|
|
|
@ -28,6 +28,7 @@ stealth 1
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
exp 1
|
||||
weight 500000
|
||||
editable 0
|
||||
|
|
|
@ -30,6 +30,7 @@ speed 0.20
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
msg
|
||||
Dwarven deity of metal smithing and warcraft, Giant basher,
|
||||
Delver of secrets
|
||||
|
@ -39,8 +40,3 @@ weight 100000
|
|||
randomitems Mostrai
|
||||
editable 0
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ speed 0.20
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
exp 1
|
||||
weight 100000
|
||||
editable 0
|
||||
|
|
|
@ -33,6 +33,7 @@ level 15
|
|||
speed 0.18
|
||||
can_cast_spell 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
msg
|
||||
Goddess of peace, Guardian of life, Mother of nature
|
||||
endmsg
|
||||
|
|
|
@ -32,6 +32,7 @@ level 15
|
|||
speed 0.18
|
||||
can_cast_spell 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
exp 1
|
||||
weight 500000
|
||||
end
|
||||
|
|
|
@ -27,6 +27,7 @@ speed 0.40
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
msg
|
||||
Lord of Storms, King of Thunder and Lightning, Sky Lord
|
||||
endmsg
|
||||
|
|
|
@ -26,6 +26,7 @@ speed 0.40
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
exp 1
|
||||
weight 1
|
||||
editable 0
|
||||
|
|
|
@ -19,4 +19,5 @@ attacktype 1
|
|||
type 14
|
||||
weight 8000
|
||||
magic 5
|
||||
body_arm -2
|
||||
end
|
||||
|
|
|
@ -23,4 +23,5 @@ startequip 1
|
|||
magicmap grey
|
||||
name_pl bracers
|
||||
client_type 310
|
||||
body_wrist -2
|
||||
end
|
||||
|
|
|
@ -24,4 +24,6 @@ editable 5120
|
|||
magicmap red
|
||||
name_pl Burning Tails of many lashings of Ruggilli
|
||||
client_type 100
|
||||
body_arm -1
|
||||
item_power 12
|
||||
end
|
||||
|
|
|
@ -28,4 +28,5 @@ resist_ghosthit -20
|
|||
weight 20000
|
||||
name_pl Gaea's Shields of Earth
|
||||
client_type 260
|
||||
body_arm -1
|
||||
end
|
||||
|
|
|
@ -25,4 +25,5 @@ Dex 2
|
|||
wc 2
|
||||
magic 1
|
||||
startequip 1
|
||||
body_hand -2
|
||||
end
|
||||
|
|
|
@ -15,5 +15,6 @@ type 34
|
|||
resist_physical 20
|
||||
resist_poison 30
|
||||
weight 7000
|
||||
last_heal 1
|
||||
gen_sp_armour 1
|
||||
body_head -1
|
||||
end
|
||||
|
|
|
@ -19,6 +19,8 @@ resist_physical 50
|
|||
resist_fire 30
|
||||
weight 50000
|
||||
magic 2
|
||||
last_heal 9
|
||||
gen_sp_armour 9
|
||||
last_sp 13
|
||||
body_torso -1
|
||||
item_power 4
|
||||
end
|
||||
|
|
|
@ -20,11 +20,13 @@ Dex 1
|
|||
Str 1
|
||||
exp 1
|
||||
magic 5
|
||||
last_heal 2
|
||||
gen_sp_armour 2
|
||||
last_sp 27
|
||||
weight 15000
|
||||
value 4000
|
||||
editable 5120
|
||||
name_pl mithril chainmails of lightning of Sorig
|
||||
client_type 250
|
||||
body_torso -1
|
||||
item_power 10
|
||||
end
|
||||
|
|
|
@ -37,6 +37,7 @@ speed 0.35
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
undead 1
|
||||
can_see_in_dark 1
|
||||
msg
|
||||
|
|
|
@ -33,6 +33,7 @@ speed 0.35
|
|||
can_cast_spell 1
|
||||
can_use_weapon 1
|
||||
can_use_armour 1
|
||||
can_use_shield 1
|
||||
undead 1
|
||||
can_see_in_dark 1
|
||||
exp 1
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue