Ejemplo n.º 1
0
        private async void Pregnancy(PlayerHealth player)
        {
            KillHugger();
            await Task.Delay(TimeSpan.FromSeconds(pregnancyTime));

            //TODO check if the larvae was removed from stomach
            player.ApplyDamageToBodypart(
                gameObject,
                200,
                AttackType.Internal,
                DamageType.Brute,
                BodyPartType.Chest);

            Spawn.ServerPrefab(larvae, player.gameObject.RegisterTile().WorldPositionServer);
        }
Ejemplo n.º 2
0
    private async Task Pregnancy(PlayerHealth player)
    {
        await Task.Delay(TimeSpan.FromSeconds(killTime - (killTime / 8)));

        Chat.AddActionMsgToChat(player.gameObject, "Your stomach gurgles uncomfortably...",
                                $"A dangerous sounding gurgle emanates from " + player.name + "!");
        await Task.Delay(TimeSpan.FromSeconds(killTime / 8));

        player.ApplyDamageToBodypart(
            gameObject,
            200,
            AttackType.Internal,
            DamageType.Brute,
            BodyPartType.Chest);
        Spawn.ServerPrefab(larvae, player.gameObject.RegisterTile().WorldPositionServer);
    }