Fluxxdog
Active member
It's not a major issue, but I came across this curiosity while experimenting. Given the following code:
... combat_skills() should return those skills you have that can be used in combat. When tested though, I got this (The ones in red are dependent on having certain items equipped):
As you can see, a number of skills are being reported as owned even though I don't have their appropriate gear equipped. However, Trashquake isn't being reported. I have the outfit required (and the stats to wear it) and I'm a pastamancer AND I set the location to Town Square, but it's not being reported. I also have each piece of the Arrrbor Day Aparrrel, each piece of which has their own unique skill.
Edit: tested during combat and I don't see "Release the Boots" showing up when the boots are ready. Wasn't expecting it so much, but all these skills are conditional, aren't they?
Code:
boolean[skill]my_skills(){ boolean[skill]m_s;
foreach tech in $skills[] if(have_skill(tech)) m_s[tech]=true;
return m_s;}
boolean[skill]combat_skills(){ boolean[skill]c_s;
foreach tech in my_skills() if(tech.combat) c_s[tech]=true;
return c_s;}
Code:
> ashtest combat_skills()
Returned: aggregate boolean [skill]
Cannelloni Cannon => true
CLEESH => true
Entangling Noodles => true
[COLOR="#FF0000"]Feed => true
Fire black bottle-rocket => true
Fire blue bottle-rocket => true
Fire orange bottle-rocket => true
Fire purple bottle-rocket => true
Fire red bottle-rocket => true
Give Your Opponent the Stinkeye => true[/COLOR]
Ravioli Shurikens => true
Spaghetti Spear => true
Stuffed Mortar Shell => true
Transcendent Olfaction => true
Volcanometeor Showeruption => true
Weapon of the Pastalord => true
> ash set_location($location[town square])
Returned: void
> ashtest combat_skills()
Returned: aggregate boolean [skill]
Cannelloni Cannon => true
CLEESH => true
Entangling Noodles => true
[COLOR="#FF0000"]Feed => true
Fire black bottle-rocket => true
Fire blue bottle-rocket => true
Fire orange bottle-rocket => true
Fire purple bottle-rocket => true
Fire red bottle-rocket => true
Give Your Opponent the Stinkeye => true[/COLOR]
Ravioli Shurikens => true
Spaghetti Spear => true
Stuffed Mortar Shell => true
Transcendent Olfaction => true
Volcanometeor Showeruption => true
Weapon of the Pastalord => true
Putting on outfit: Vile Vagrant Vestments
Equipment changed.
> ashtest combat_skills()
Returned: aggregate boolean [skill]
Cannelloni Cannon => true
CLEESH => true
Entangling Noodles => true
[COLOR="#FF0000"]Feed => true
Fire black bottle-rocket => true
Fire blue bottle-rocket => true
Fire orange bottle-rocket => true
Fire purple bottle-rocket => true
Fire red bottle-rocket => true
Give Your Opponent the Stinkeye => true[/COLOR]
Ravioli Shurikens => true
Spaghetti Spear => true
Stuffed Mortar Shell => true
Transcendent Olfaction => true
Volcanometeor Showeruption => true
Weapon of the Pastalord => true
> ash have_skill($skill[Fire black bottle-rocket])
Returned: true
Edit: tested during combat and I don't see "Release the Boots" showing up when the boots are ready. Wasn't expecting it so much, but all these skills are conditional, aren't they?
Last edited: