GuildTycoon/Assets/_/Features/Tests/Runtime/Triche.cs
2025-09-06 23:56:47 +02:00

29 lines
803 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using Core.Runtime;
using Player.Runtime;
using Quests.Runtime;
using UnityEngine;
namespace TestFacts.Runtime
{
public class Triche : BaseMonobehaviour
{
[ContextMenu("Add 99999 Gold")]
void AddInfiniteGold()
{
PlayerClass profile = GetFact<PlayerClass>(GameManager.Instance.Profile);
profile.Money = 99999;
Info("99999 Gold added");
SaveFacts();
}
[ContextMenu("MAJ Facts = Créer l'historique des events ")]
void CreateHistory()
{
SetFact<Dictionary<Guid, List<QuestEvent>>>("events_quests_history", new Dictionary<Guid, List<QuestEvent>>(), FactPersistence.Persistent);
SaveFacts();
}
}
}