while there is still time to make changes to the file format: s/probability/weight/

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1338 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-10 20:22:11 +00:00
parent 4200e4ae0a
commit ac6b8f77ac
3 changed files with 25 additions and 22 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ class PackItem : public IntrusivePtrBase<PackItem> {
String name; ///< Name of the pack to select cards from
Scriptable<int> amount; ///< Number of cards of this type
Scriptable<double> probability; ///< Relative probability of picking this item
Scriptable<double> weight; ///< Relative probability of picking this item
/// Update scripts, returns true if there is a change
bool update(Context& ctx);
@@ -201,7 +201,7 @@ class PackInstance : public IntrusivePtrBase<PackInstance> {
int depth; //< 0 = no items, otherwise 1+max depth of items refered to
vector<CardP> cards; //< All cards that pass the filter
size_t count; //< Total number of non-empty cards/items
double total_probability; //< Sum of item and card probabilities
double total_weight; //< Sum of item and card weights
size_t requested_copies; //< The requested number of copies of this pack
size_t card_copies; //< The number of cards that were chosen to come from this pack
double expected_copies;