New Content - Implemented Item -> Skill -> Effect

Veracity

Developer
Staff member
We detect new items and generate data file lines for them.
One of the things we recognize is the "Grants Skill" - which includes a link to the skill ID.
It would be nice if we recognized that the skill ID was unknown and looked that up in turn.
Especially since that can tell us about new effects.

desc_item.php?whichitem=778248097:
Code:
Grants Skill: <a class=hand onClick='javascript:poop("desc_skill.php?whichskill=164&self=true","skill", 350, 300)'><b>Fifteen Minutes of Flame</b></a>

desc_skill.php?whichskill=164:
Code:
<div id="description"><center><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/fire.gif" width=30 height=30><br><font face="Arial,Helvetica"><b>Fifteen Minutes of Flame</b><p><div id="smallbits" class=small><b>Type:</b> Noncombat<br><b>MP Cost:</b> 50</div><p></center><blockquote class=small>You really know how to get the art world to set you on fire.<p><Center>Gives Effect: <b><a class=nounder href="desc_effect.php?whicheffect=69dcf3d8fe46c29e7fb6075d06448c95">Your Fifteen Minutes</a></b><br>(15 Adventures)</center></blockquote></font></font></div>

desc_effect.php?whicheffect=69dcf3d8fe46c29e7fb6075d06448c95:

... stuff ...

Could generate this:

Code:
> test newitem 778248097
--------------------
9259	Pop Art: a Guide	778248097	book4.gif	usable	t	0
Item	Pop Art: a Guide	Skill: "Fifteen Minutes of Flame"
--------------------
164	Fifteen Minutes of Flame	fire.gif	3	50	15
--------------------
--------------------
2153	Your Fifteen Minutes	fire.gif	69dcf3d8fe46c29e7fb6075d06448c95
Effect	Your Fifteen Minutes	Hot Damage: +15, Hot Spell Damage: +15, Initiative: +15
--------------------
 

Veracity

Developer
Staff member
Revision 17511 makes it so.

I suppose that we could write a "checkskills" debugging command, a la checkitems and checkeffects, given this.
 

Bale

Minion
I love updates like this since it makes mafia so wonderfully adaptive to new content.

Thanks, Veracity.
 

Veracity

Developer
Staff member
You bet. Not only does it mean that people can use the new Stuff before we add it, but logging it like that in the session log makes it really easy to update the data files.
 
Top