version 1.1 | | version 1.2 |
---|
| | |
xmin = xmax = ymin = ymax = 0; | | xmin = xmax = ymin = ymax = 0; |
More = 0; | | More = 0; |
dam = type = magical = ac = armour = weight = last_sp = 0; | | dam = type = magical = ac = armour = weight = last_sp = 0; |
att = prot = immune = 0; | | att = prot = immune = invisible = 0; |
} | | } |
| | |
/^type/ { type = $2 } | | /^type/ { type = $2 } |
| | |
/^slaying/ { slay = $2; } | | /^slaying/ { slay = $2; } |
/^magic/ { magical = $2 } | | /^magic/ { magical = $2 } |
/^name/ { name = substr($0, 6) } | | /^name/ { name = substr($0, 6) } |
| | /^invisible/ { invisible = $2 } |
/^end/ { | | /^end/ { |
# but they are in the worthless, we ignore it | | # but they are in the worthless, we ignore it |
if (artifact[type] && !worthless[name]) { | | if (artifact[type] && !worthless[name] && !invisible) { |
| | |
if(!valuable[type] || (valuable[type] ~ name)) | | if(!valuable[type] || (valuable[type] ~ name)) |
if(keeprepeat[type] || !(oldname ~ name)) | | if(keeprepeat[type] || !(oldname ~ name)) |