Skip to content

Commit 35ebb2a

Browse files
committed
* - Added new attributies to /attr: text, writer, duration, weight, imbuementslot, tier, hitchance, shootrange, special and quicklootcontainer.
1 parent cb4d6a6 commit 35ebb2a

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

data/scripts/talkactions/god/attributes.lua

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,66 @@ local itemFunctions = {
107107
return item:setAttribute(ITEM_ATTRIBUTE_ARMOR, target)
108108
end,
109109
},
110+
["text"] = {
111+
isActive = true,
112+
targetFunction = function(item, target)
113+
return item:setAttribute(ITEM_ATTRIBUTE_TEXT, target)
114+
end,
115+
},
116+
["writer"] = {
117+
isActive = true,
118+
targetFunction = function(item, target)
119+
return item:setAttribute(ITEM_ATTRIBUTE_WRITER, target)
120+
end,
121+
},
122+
["duration"] = {
123+
isActive = true,
124+
targetFunction = function(item, target)
125+
return item:setAttribute(ITEM_ATTRIBUTE_DURATION, target)
126+
end,
127+
},
128+
["weight"] = {
129+
isActive = true,
130+
targetFunction = function(item, target)
131+
return item:setAttribute(ITEM_ATTRIBUTE_WEIGHT, target)
132+
end,
133+
},
134+
["imbuementslot"] = {
135+
isActive = true,
136+
targetFunction = function(item, target)
137+
return item:setAttribute(ITEM_ATTRIBUTE_IMBUEMENT_SLOT, target)
138+
end,
139+
},
140+
["tier"] = {
141+
isActive = true,
142+
targetFunction = function(item, target)
143+
return item:setAttribute(ITEM_ATTRIBUTE_TIER, target)
144+
end,
145+
},
146+
["hitchance"] = {
147+
isActive = true,
148+
targetFunction = function(item, target)
149+
return item:setAttribute(ITEM_ATTRIBUTE_HITCHANCE, target)
150+
end,
151+
},
152+
["shootrange"] = {
153+
isActive = true,
154+
targetFunction = function(item, target)
155+
return item:setAttribute(ITEM_ATTRIBUTE_SHOOTRANGE, target)
156+
end,
157+
},
158+
["special"] = {
159+
isActive = true,
160+
targetFunction = function(item, target)
161+
return item:setAttribute(ITEM_ATTRIBUTE_SPECIAL, target)
162+
end,
163+
},
164+
["quicklootcontainer"] = {
165+
isActive = true,
166+
targetFunction = function(item, target)
167+
return item:setAttribute(ITEM_ATTRIBUTE_QUICKLOOTCONTAINER, target)
168+
end,
169+
},
110170
}
111171

112172
local creatureFunctions = {

markdowns/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
### Features
77

88
- Added new attributes to outfits. Check `outfits.xml` for examples. ([Tryller](https://github.com/jprzimba))
9+
- Added new attributies to /attr: `text`, `writer`, `duration`, `weight`, `imbuementslot`, `tier`, `hitchance`, `shootrange`, `special` and `quicklootcontainer`. ([Tryller](https://github.com/jprzimba))
910
- Added new flags: `CanMoveFromFar`, `HasFullLight`, `AllowIdle`, `CanWearAllMounts`, and `NotGainUnjustified`. ([Tryller](https://github.com/jprzimba))
1011
- Added Vibrancy imbuement. ([pennaor](https://github.com/pennaor))
1112

@@ -16,6 +17,7 @@
1617
## Modified files
1718

1819
- data/modules/scripts/gamestore/init.lua
20+
- data/scripts/talkactions/god/attributes.lua
1921
- data/XML/groups.xml
2022
- data/XML/outfits.xml
2123
- data-global/scripts/quests/ferumbras_ascension/actions_lever_first.lua

0 commit comments

Comments
 (0)