Ticket #60: script.sed

File script.sed, 2.3 KB (added by takkaria, 13 years ago)

sed script to perform replacements, run using `sed -i script.sed *.c"

Line 
1s/p_ptr->blind/p_ptr->timed\[TMD_BLIND\]/g
2s/p_ptr->confused/p_ptr->timed\[TMD_CONFUSED\]/g
3s/p_ptr->poisoned/p_ptr->timed\[TMD_POISONED\]/g
4s/p_ptr->afraid/p_ptr->timed\[TMD_AFRAID\]/g
5s/p_ptr->paralyzed/p_ptr->timed\[TMD_PARALYZED\]/g
6s/p_ptr->image/p_ptr->timed\[TMD_IMAGE\]/g
7s/p_ptr->fast/p_ptr->timed\[TMD_FAST\]/g
8s/p_ptr->slow/p_ptr->timed\[TMD_SLOW\]/g
9s/p_ptr->shield/p_ptr->timed\[TMD_SHIELD\]/g
10s/p_ptr->blessed/p_ptr->timed\[TMD_BLESSED\]/g
11s/p_ptr->hero/p_ptr->timed\[TMD_HERO\]/g
12s/p_ptr->shero/p_ptr->timed\[TMD_SHERO\]/g
13s/p_ptr->protevil/p_ptr->timed\[TMD_PROTEVIL\]/g
14s/p_ptr->invuln/p_ptr->timed\[TMD_INVULN\]/g
15s/p_ptr->tim_invis/p_ptr->timed\[TMD_SINVIS\]/g
16s/p_ptr->tim_infra/p_ptr->timed\[TMD_SINFRA\]/g
17s/p_ptr->oppose_acid/p_ptr->timed\[TMD_OPP_ACID\]/g
18s/p_ptr->oppose_elec/p_ptr->timed\[TMD_OPP_ELEC\]/g
19s/p_ptr->oppose_fire/p_ptr->timed\[TMD_OPP_FIRE\]/g
20s/p_ptr->oppose_cold/p_ptr->timed\[TMD_OPP_COLD\]/g
21s/p_ptr->oppose_pois/p_ptr->timed\[TMD_OPP_POIS\]/g
22s/p_ptr->cut/p_ptr->timed\[TMD_CUT\]/g
23s/p_ptr->stun/p_ptr->timed\[TMD_STUN\]/g
24s/set_blind[(]/set_timed\(TMD_BLIND, /g
25s/set_confused[(]/set_timed\(TMD_CONFUSED, /g
26s/set_poisoned[(]/set_timed\(TMD_POISONED, /g
27s/set_afraid[(]/set_timed\(TMD_AFRAID, /g
28s/set_paralyzed[(]/set_timed\(TMD_PARALYZED, /g
29s/set_image[(]/set_timed\(TMD_IMAGE, /g
30s/set_fast[(]/set_timed\(TMD_FAST, /g
31s/set_slow[(]/set_timed\(TMD_SLOW, /g
32s/set_shield[(]/set_timed\(TMD_SHIELD, /g
33s/set_blessed[(]/set_timed\(TMD_BLESSED, /g
34s/set_hero[(]/set_timed\(TMD_HERO, /g
35s/set_shero[(]/set_timed\(TMD_SHERO, /g
36s/set_protevil[(]/set_timed\(TMD_PROTEVIL, /g
37s/set_invuln[(]/set_timed\(TMD_INVULN, /g
38s/set_tim_invis[(]/set_timed\(TMD_SINVIS, /g
39s/set_tim_infra[(]/set_timed\(TMD_SINFRA, /g
40s/set_stun[(]/set_timed\(TMD_STUN, /g
41s/set_cut[(]/set_timed\(TMD_CUT, /g
42s/set_oppose_acid[(]/set_timed\(TMD_OPP_ACID, /g
43s/set_oppose_elec[(]/set_timed\(TMD_OPP_ELEC, /g
44s/set_oppose_fire[(]/set_timed\(TMD_OPP_FIRE, /g
45s/set_oppose_cold[(]/set_timed\(TMD_OPP_COLD, /g
46s/set_oppose_pois[(]/set_timed\(TMD_OPP_POIS, /g
47s/p_ptr->timed\[TMD_SLOW\]_digest/p_ptr->slow_digest/g
48s/set_timed[(]\(.*\), p_ptr->timed\[\(.*\)\] + \(.*\)[)]/inc_timed\(\1, \3\)/g
49s/set_timed[(]\(.*\), p_ptr->timed\[\(.*\)\] - \(.*\)[)]/dec_timed\(\1, \3\)/g
50s/set_timed[(]\(.*\), 0[)]/clear_timed\(\1)/g