summaryrefslogtreecommitdiff
path: root/indra/newview/llagentbenefits.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2019-11-15 15:13:11 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2019-11-15 15:13:11 +0000
commit65550520ed00699098b221a1166e4c1763333d58 (patch)
treebcd62aa2b6897b0dc424f8ecfadc2550d417ec4a /indra/newview/llagentbenefits.cpp
parent7df0a4ddd0c48358e7152733aaba01464f2620be (diff)
SL-10499 - benefits. Removed no-longer-needed lleconomy files and classes. Group-related costs and limits via benefits.
Diffstat (limited to 'indra/newview/llagentbenefits.cpp')
-rw-r--r--indra/newview/llagentbenefits.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/indra/newview/llagentbenefits.cpp b/indra/newview/llagentbenefits.cpp
index 09be8f46c1..5ca4ecb456 100644
--- a/indra/newview/llagentbenefits.cpp
+++ b/indra/newview/llagentbenefits.cpp
@@ -73,6 +73,10 @@ bool LLAgentBenefits::init(const LLSD& benefits_sd)
{
return false;
}
+ if (!get_required_S32(benefits_sd, "create_group_cost", m_create_group_cost))
+ {
+ return false;
+ }
if (!get_required_S32(benefits_sd, "group_membership_limit", m_group_membership_limit))
{
return false;
@@ -86,42 +90,42 @@ bool LLAgentBenefits::init(const LLSD& benefits_sd)
return false;
}
+ // FIXME PREMIUM - either use this field or get rid of it
m_initalized = true;
return true;
}
S32 LLAgentBenefits::getAnimatedObjectLimit() const
{
- //llassert(m_initalized);
return m_animated_object_limit;
}
S32 LLAgentBenefits::getAnimationUploadCost() const
{
- //llassert(m_initalized);
return m_animation_upload_cost;
}
S32 LLAgentBenefits::getAttachmentLimit() const
{
- //llassert(m_initalized);
return m_attachment_limit;
}
+S32 LLAgentBenefits::getCreateGroupCost() const
+{
+ return m_create_group_cost;
+}
+
S32 LLAgentBenefits::getGroupMembershipLimit() const
{
- //llassert(m_initalized);
return m_group_membership_limit;
}
S32 LLAgentBenefits::getSoundUploadCost() const
{
- //llassert(m_initalized);
return m_sound_upload_cost;
}
S32 LLAgentBenefits::getTextureUploadCost() const
{
- //llassert(m_initalized);
return m_texture_upload_cost;
}