Skip to content

Commit

Permalink
Fix: missing attributes on writeable/readable items (otland#4135)
Browse files Browse the repository at this point in the history
  • Loading branch information
torresmon authored and EPuncker committed May 23, 2023
1 parent 00972b1 commit 7f2814f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions data/items/items.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@
<item id="1950" article="a" name="book">
<attribute key="maxTextLen" value="1023" />
<attribute key="weight" value="1300" />
<attribute key="writeOnceItemId" value="1971" />
<attribute key="readable" value="true" />
</item>
<item id="1951" article="a" name="blank parchment">
<attribute key="weight" value="200" />
Expand All @@ -1485,12 +1485,15 @@
<attribute key="writeOnceItemId" value="1968" />
</item>
<item id="1953" article="a" name="parchment">
<attribute key="readable" value="true" />
<attribute key="weight" value="200" />
</item>
<item id="1954" article="a" name="sheet of paper">
<attribute key="readable" value="true" />
<attribute key="weight" value="50" />
</item>
<item id="1955" article="a" name="book">
<attribute key="readable" value="true" />
<attribute key="weight" value="1300" />
</item>
<item id="1956" article="a" name="map">
Expand All @@ -1500,6 +1503,7 @@
<attribute key="weight" value="790" />
</item>
<item fromid="1958" toid="1966" article="a" name="book">
<attribute key="readable" value="true" />
<attribute key="weight" value="1300" />
</item>
<item id="1967" article="a" name="parchment">
Expand All @@ -1508,7 +1512,7 @@
<attribute key="weight" value="200" />
</item>
<item id="1968" article="a" name="document">
<attribute key="writeable" value="true" />
<attribute key="readable" value="true" />
<attribute key="maxTextLen" value="1023" />
<attribute key="weight" value="150" />
</item>
Expand All @@ -1518,6 +1522,7 @@
<attribute key="weight" value="200" />
</item>
<item id="1970" article="the" name="holy Tible">
<attribute key="readable" value="true" />
<attribute key="weight" value="1300" />
</item>
<item id="1971" article="a" name="book">
Expand Down Expand Up @@ -17114,6 +17119,7 @@
<attribute key="weight" value="1000" />
</item>
<item fromid="9663" toid="9668" article="an" name="old piece of paper">
<attribute key="readable" value="true" />
<attribute key="weight" value="200" />
</item>
<item fromid="9669" toid="9670" article="a" name="wall mirror" />
Expand Down Expand Up @@ -17964,6 +17970,7 @@
</item>
<item id="10006" name="Jean Pierre's Cookbook I">
<attribute key="description" value="It was given to you by the djinn mantre and contains the collection of recipes you cooked." />
<attribute key="readable" value="true" />
<attribute key="weight" value="1500" />
</item>
<item id="10007" article="a" name="dead mutated human">
Expand Down Expand Up @@ -21313,6 +21320,7 @@
<item id="12496" article="a" name="heavy crate" />
<item id="12497" name="Jean Pierre's Cookbook II">
<attribute key="description" value="It was given to you by the djinn maitre and contains new recipes you cooked." />
<attribute key="readable" value="true" />
<attribute key="weight" value="1500" />
</item>
<item id="12498" article="a" name="fish tail">
Expand Down Expand Up @@ -22305,7 +22313,9 @@
<item id="13262" article="a" name="sugar">
<attribute key="weight" value="500" />
</item>
<item id="13263" article="a" name="book" />
<item id="13263" article="a" name="book">
<attribute key="readable" value="true" />
</item>
<item fromid="13264" toid="13268" name="pressed winterberries" />
<item fromid="13269" toid="13271" article="a" name="stone" />
<item id="13272" article="a" name="magic tile">
Expand Down Expand Up @@ -24730,12 +24740,15 @@
<attribute key="description" value="The identity of some deepling is written there." />
</item>
<item id="15427" article="a" name="seashell book">
<attribute key="readable" value="true" />
<attribute key="weight" value="1300" />
</item>
<item id="15428" article="a" name="seashell book">
<attribute key="readable" value="true" />
<attribute key="weight" value="1300" />
</item>
<item id="15429" article="a" name="seashell book">
<attribute key="readable" value="true" />
<attribute key="weight" value="1300" />
</item>
<item id="15430" name="deepling scales" plural="deepling scales">
Expand Down
2 changes: 1 addition & 1 deletion data/scripts/actions/others/spellbook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ function spellbook.onUse(player, item, fromPosition, target, toPosition, isHotke
return true
end

spellbook:id(2175, 6120, 8900, 8901, 8902, 8903, 8904, 8918, 16112, 18401, 22422, 22423, 22424, 23771)
spellbook:id(2175, 6120, 8900, 8901, 8902, 8903, 8904, 8918, 12647, 16112, 18401, 22422, 22423, 22424, 23771)
spellbook:register()

0 comments on commit 7f2814f

Please sign in to comment.