mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user