public override bool ActivateByObject(ObjectInteraction ObjectUsed)
{
//ObjectInteraction objI=ObjectUsed.GetComponent<ObjectInteraction>();
if (ObjectUsed != null)
{
if (ObjectUsed.GetItemType() == ObjectInteraction.A_BLACKROCK_GEM)
{
if (ObjectUsed.owner == 1)
{
int thisGemIndex = ObjectUsed.item_id - 280;
int bitField = (1 << thisGemIndex);
Quest.instance.x_clocks[2]++;
Quest.instance.QuestVariables[130] |= bitField;
UWHUD.instance.MessageScroll.Add(StringController.instance.GetString(1, 338));
UWHUD.instance.MessageScroll.Add(StringController.instance.GetString(1, 338 + Quest.instance.x_clocks[2]));
CameraShake.instance.ShakeEarthQuake(Quest.instance.x_clocks[2] * 0.2f);
ObjectUsed.consumeObject();
}
else
{
UWHUD.instance.MessageScroll.Add(StringController.instance.GetString(1, 347));
}
CurrentObjectInHand = null;
return(true);
}
}
return(false);
}