Temple Termagant
Posts: 14
Joined: Sunday, 29th March 2015, 16:00
Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.
Temple Termagant
Posts: 14
Joined: Sunday, 29th March 2015, 16:00
Ziggurat Zagger
Posts: 6454
Joined: Tuesday, 30th October 2012, 19:06
Dungeon Master
Posts: 3618
Joined: Thursday, 23rd December 2010, 12:43
Ziggurat Zagger
Posts: 6454
Joined: Tuesday, 30th October 2012, 19:06
Dungeon Master
Posts: 1613
Joined: Thursday, 16th December 2010, 21:54
Tartarus Sorceror
Posts: 1774
Joined: Tuesday, 23rd December 2014, 23:39
Dungeon Master
Posts: 3618
Joined: Thursday, 23rd December 2010, 12:43
Temple Termagant
Posts: 14
Joined: Sunday, 29th March 2015, 16:00
function ready()
missiles_have = {["bolt"]={},["arrow"]={},["sling bullet"]={},["needle"]={},["stone"]={},["large rock"]={},["throwing net"]={},["tomahawk"]={},["javelin"]={}}
for it in iter.invent_iterator:new(items.inventory()) do
if it.class(true) == "missile" then
missiles_have[it.subtype(true)][tostring(it.ego(true))] = true
end
end
end
add_autopickup_func(function(it, name)
if it.class(true) == "missile" then
return missiles_have[it.subtype(true)][tostring(it.ego(true))]
end
end)
Tartarus Sorceror
Posts: 1776
Joined: Monday, 21st February 2011, 15:57
Location: South Carolina
Return to Game Design Discussion
Users browsing this forum: No registered users and 43 guests