Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

11/08/2009 - Xuri

	Added support for LOOT and PACKITEM dfn tags in item-defintions, for pre-adding items to containers (Shudderz)
  • Loading branch information...
commit 569376ba103c436dc9833f021cdb2ab9250aa72c 1 parent dab8427
xuridabur authored
Showing with 5 additions and 0 deletions.
  1. +3 −0  source/Changelog.txt
  2. +2 −0  source/items.cpp
View
3  source/Changelog.txt
@@ -1,3 +1,6 @@
+11/08/2009 - Xuri
+ Added support for LOOT and PACKITEM dfn tags in item-defintions, for pre-adding items to containers (Shudderz)
+
5/11/2009 - Xuri
Fixed client/server synch-issue with boats by changing prSend( 1 ) to prSend( 0 ) in boat movement code (Jediman)
Added stablemaster JS-script and assigned it to the animal-trainer vendors (Xuri)
View
2  source/items.cpp
@@ -229,6 +229,8 @@ bool ApplyItemSection( CItem *applyTo, ScriptSection *toApply )
case DFNTAG_SPAWNOBJ:
case DFNTAG_SPAWNOBJLIST:
break;
+ case DFNTAG_LOOT: Items->AddRespawnItem( applyTo, cdata, true, true); break;
+ case DFNTAG_PACKITEM: Items->AddRespawnItem( applyTo, cdata, true, false); break;
default: Console.Warning( "Unknown items dfn tag %i %s %i %i ", tag, cdata.c_str(), ndata, odata ); break;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.