Commit fb47f09
committed
Fix: thiefstone put items into a bag of tricks
Bags of tricks for some reason return true from Is_container despite not
actually being usable as one. This meant that thiefstones could teleport
items into a bag of tricks, which could then not easily be gotten out
(it was possible, via wand of opening or polymorphing the bag, but this
was certainly not intended in the first place).
Adding an exception so bags of tricks don't count as containers breaks
them in several ways, however, so instead I changed thiefstone behavior
such that they now ignore bags completely. It's cleaner this way (rather
than special-casing an exception only for bags of tricks) and slightly
more thematic; sending items to a treasure chest makes more sense than a
"treasure bag".1 parent a1bd4f7 commit fb47f09
3 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1885 | 1885 | | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | | - | |
1889 | | - | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
1890 | 1895 | | |
1891 | 1896 | | |
1892 | | - | |
| 1897 | + | |
1893 | 1898 | | |
1894 | 1899 | | |
1895 | 1900 | | |
1896 | 1901 | | |
1897 | 1902 | | |
1898 | 1903 | | |
1899 | | - | |
| 1904 | + | |
1900 | 1905 | | |
1901 | 1906 | | |
1902 | 1907 | | |
1903 | | - | |
| 1908 | + | |
1904 | 1909 | | |
1905 | 1910 | | |
1906 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4136 | 4136 | | |
4137 | 4137 | | |
4138 | 4138 | | |
| 4139 | + | |
4139 | 4140 | | |
4140 | 4141 | | |
4141 | 4142 | | |
| |||
4146 | 4147 | | |
4147 | 4148 | | |
4148 | 4149 | | |
4149 | | - | |
4150 | | - | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
4151 | 4158 | | |
4152 | 4159 | | |
4153 | 4160 | | |
| |||
4325 | 4332 | | |
4326 | 4333 | | |
4327 | 4334 | | |
4328 | | - | |
4329 | | - | |
4330 | | - | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
4331 | 4340 | | |
4332 | 4341 | | |
4333 | 4342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1934 | 1934 | | |
1935 | 1935 | | |
1936 | 1936 | | |
1937 | | - | |
| 1937 | + | |
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
| |||
0 commit comments