Ejemplo n.º 1
0
    internal static void StealTreasure(Monument stone)
    {
        Instance.Team.OnTreasureFound.Invoke(stone.Treasure);
        stone.Treasure = 0;

        SoundController.PlayStinger(SoundBank.Stinger.Sneaking);

        BigStoneView.CloseStone();

        //if (Random.value < 0.6f)
        stone.SpawnDead(Instance.Team);
    }
Ejemplo n.º 2
0
    internal static void SacGoblin(Goblin goblin, Monument sacrificeStone)
    {
        Instance.Team.Members.Remove(goblin);

        SoundController.PlayStinger(SoundBank.Stinger.Sacrifice);

        LegacySystem.OnConditionEvent.Invoke(LegacySystem.UnlockCondition.GoblinSacrifice);

        goblin.Speak(SoundBank.GoblinSound.Death);

        goblin.Team = null;

        goblin.transform.parent = sacrificeStone.transform;

        goblin.tag = "Enemy";

        //goblin.CharacterRace = Character.Race.Undead;

        goblin.Health = 0;

        BigStoneView.CloseStone();
    }