Wired in the encounters triggering and saving
This commit is contained in:
@@ -36,7 +36,14 @@ namespace Nox.Game {
|
|||||||
gameDataState.activeSessionId = latestSession.sessionId;
|
gameDataState.activeSessionId = latestSession.sessionId;
|
||||||
gameDataState.savedPartyPosition = saveData.partyPosition.ToVector3();
|
gameDataState.savedPartyPosition = saveData.partyPosition.ToVector3();
|
||||||
gameDataState.ActiveParty = saveData.activeParty;
|
gameDataState.ActiveParty = saveData.activeParty;
|
||||||
adventureData = saveData.adventureData;
|
adventureData.isPartyMoving = saveData.adventureData.isPartyMoving;
|
||||||
|
adventureData.isEncounterActive = saveData.adventureData.isEncounterActive;
|
||||||
|
adventureData.currentDay = saveData.adventureData.currentDay;
|
||||||
|
adventureData.suppliesAvailable = saveData.adventureData.suppliesAvailable;
|
||||||
|
adventureData.currentTime = saveData.adventureData.currentTime;
|
||||||
|
adventureData.currentDayPhase = saveData.adventureData.currentDayPhase;
|
||||||
|
adventureData.completedEncounterIds.Clear();
|
||||||
|
adventureData.completedEncounterIds.AddRange(saveData.adventureData.completedEncounterIds);
|
||||||
|
|
||||||
if(gameLogStore != null && saveData.gameLogData != null) {
|
if(gameLogStore != null && saveData.gameLogData != null) {
|
||||||
gameLogStore.RestoreFromSaveData(saveData.gameLogData);
|
gameLogStore.RestoreFromSaveData(saveData.gameLogData);
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using Jovian.Calendar;
|
using Jovian.Calendar;
|
||||||
using Jovian.EncounterSystem;
|
using Jovian.EncounterSystem;
|
||||||
using Jovian.PopupSystem;
|
using Jovian.PopupSystem;
|
||||||
@@ -8,18 +9,23 @@ using Nox.Core;
|
|||||||
using Nox.Platform;
|
using Nox.Platform;
|
||||||
using Nox.Game.UI;
|
using Nox.Game.UI;
|
||||||
using Nox.UI;
|
using Nox.UI;
|
||||||
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.AddressableAssets;
|
using UnityEngine.AddressableAssets;
|
||||||
using ZLinq;
|
using ZLinq;
|
||||||
|
using Object = UnityEngine.Object;
|
||||||
using PlayMode = Nox.Core.PlayMode;
|
using PlayMode = Nox.Core.PlayMode;
|
||||||
|
|
||||||
namespace Nox.Game {
|
namespace Nox.Game {
|
||||||
|
[Serializable]
|
||||||
public class AdventureData {
|
public class AdventureData {
|
||||||
public bool isPartyMoving;
|
public bool isPartyMoving;
|
||||||
|
public bool isEncounterActive;
|
||||||
public int currentDay = 0;
|
public int currentDay = 0;
|
||||||
public int suppliesAvailable = -1;
|
public int suppliesAvailable = -1;
|
||||||
public float currentTime = -1f;
|
public float currentTime = -1f;
|
||||||
public DayPhase currentDayPhase = DayPhase.Morning;
|
public DayPhase currentDayPhase = DayPhase.Morning;
|
||||||
|
public List<string> completedEncounterIds = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AdventurePlayMode : IPlayMode {
|
public class AdventurePlayMode : IPlayMode {
|
||||||
@@ -115,12 +121,15 @@ namespace Nox.Game {
|
|||||||
partyInventoryHandler ??= new PartyInventoryHandler(adventureData, adventureSettings);
|
partyInventoryHandler ??= new PartyInventoryHandler(adventureData, adventureSettings);
|
||||||
partyInventoryHandler.Initialize();
|
partyInventoryHandler.Initialize();
|
||||||
|
|
||||||
var calendarSettings = Addressables.LoadAssetAsync<CalendarSettings>("CalendarSettings").WaitForCompletion();
|
var calendarSettings = Addressables.LoadAssetAsync<CalendarSettings>("CalendarSettings").WaitForCompletion();
|
||||||
var worldClock = new WorldClock(calendarSettings);
|
var worldClock = new WorldClock(calendarSettings);
|
||||||
|
var totalMinutes = adventureData.currentDay * calendarSettings.MinutesPerDay
|
||||||
|
+ (int)(adventureData.currentTime * calendarSettings.MinutesPerDay);
|
||||||
|
worldClock.AdvanceMinutes(totalMinutes);
|
||||||
timeHandler ??= new TimeHandler(adventureSettings, adventureData, worldClock);
|
timeHandler ??= new TimeHandler(adventureSettings, adventureData, worldClock);
|
||||||
|
|
||||||
zoneSystem ??= new ZoneSystem(mapRef.zonesObjectHolder);
|
zoneSystem ??= new ZoneSystem(mapRef.zonesObjectHolder);
|
||||||
encounterHandler = new EncounterHandler(zoneSystem, encounterRegistry, encounterPrefabs);
|
encounterHandler = new EncounterHandler(zoneSystem, encounterRegistry, encounterPrefabs, adventureData);
|
||||||
partyMovementHandler ??= new PartyMovementHandler(
|
partyMovementHandler ??= new PartyMovementHandler(
|
||||||
partyRef,
|
partyRef,
|
||||||
cameraController,
|
cameraController,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using Jovian.EncounterSystem;
|
using Jovian.EncounterSystem;
|
||||||
using Jovian.ZoneSystem;
|
using Jovian.ZoneSystem;
|
||||||
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Nox.Game {
|
namespace Nox.Game {
|
||||||
@@ -7,14 +8,19 @@ namespace Nox.Game {
|
|||||||
private readonly ZoneSystem zoneSystem;
|
private readonly ZoneSystem zoneSystem;
|
||||||
private readonly EncounterRegistry encounterRegistry;
|
private readonly EncounterRegistry encounterRegistry;
|
||||||
private readonly EncounterView encounterView;
|
private readonly EncounterView encounterView;
|
||||||
|
private readonly AdventureData adventureData;
|
||||||
|
private Vector3 lastKnownPosition;
|
||||||
private string previousZoneId;
|
private string previousZoneId;
|
||||||
private IEncounter activeEncounter;
|
private IEncounter activeEncounter;
|
||||||
|
private int lastCheckedDay;
|
||||||
|
|
||||||
public EncounterHandler(ZoneSystem zoneSystem, EncounterRegistry encounterRegistry, EncounterPrefabs encounterPrefabs) {
|
public EncounterHandler(ZoneSystem zoneSystem, EncounterRegistry encounterRegistry, EncounterPrefabs encounterPrefabs, AdventureData adventureData) {
|
||||||
this.zoneSystem = zoneSystem;
|
this.zoneSystem = zoneSystem;
|
||||||
this.encounterRegistry = encounterRegistry;
|
this.encounterRegistry = encounterRegistry;
|
||||||
|
this.adventureData = adventureData;
|
||||||
encounterView = new EncounterView(encounterPrefabs);
|
encounterView = new EncounterView(encounterPrefabs);
|
||||||
encounterView.OptionSelected += OnOptionSelected;
|
encounterView.OptionSelected += OnOptionSelected;
|
||||||
|
lastCheckedDay = adventureData.currentDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AskForRandomEncounter(ZoneContext zoneContext, string encounterTableId, out IEncounter encounter) {
|
public bool AskForRandomEncounter(ZoneContext zoneContext, string encounterTableId, out IEncounter encounter) {
|
||||||
@@ -35,7 +41,7 @@ namespace Nox.Game {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var randomChance = Random.Range(0f, 1f);
|
var randomChance = UnityEngine.Random.Range(0f, 1f);
|
||||||
var shouldTrigger = randomChance <= zoneContext.finalEncounterChance;
|
var shouldTrigger = randomChance <= zoneContext.finalEncounterChance;
|
||||||
|
|
||||||
if(!shouldTrigger) {
|
if(!shouldTrigger) {
|
||||||
@@ -43,29 +49,72 @@ namespace Nox.Game {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
encounter = encounterKind == null
|
var filter = new Predicate<IEncounter>(e => e != null && !IsAlreadyCompleted(e));
|
||||||
? encounterRegistry.GetRandomEncounter(encounterTableId)
|
|
||||||
: encounterRegistry.GetRandomEncounter(encounterTableId, encounterKind);
|
|
||||||
|
|
||||||
var resultName = encounter?.EncounterDefinition?.name ?? "none";
|
if(encounterKind == null) {
|
||||||
Debug.Log($"Rolled for encounter '{encounterTableId}': {randomChance:F2}/{zoneContext.finalEncounterChance:F2} -> {resultName}");
|
encounter = encounterRegistry.GetRandomEncounter(filter, encounterTableId);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var table = encounterRegistry.GetEncounterTable(encounterTableId);
|
||||||
|
if(table == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
for(var attempt = 0; attempt <= table.encounters.Count; attempt++) {
|
||||||
|
encounter = encounterRegistry.GetRandomEncounter(encounterTableId, encounterKind);
|
||||||
|
if(encounter == null || !IsAlreadyCompleted(encounter)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(encounter != null && IsAlreadyCompleted(encounter)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var name = encounter?.EncounterDefinition?.name ?? "none";
|
||||||
|
Debug.Log($"Rolled for encounter '{encounterTableId}': {randomChance:F2}/{zoneContext.finalEncounterChance:F2} -> {name}");
|
||||||
return encounter != null;
|
return encounter != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void VerifyZones(Vector3 position) {
|
private bool IsAlreadyCompleted(IEncounter encounter) {
|
||||||
var zoneContext = zoneSystem.QueryZone(position);
|
var def = encounter?.EncounterDefinition;
|
||||||
if(string.IsNullOrEmpty(zoneContext.resolvedZoneId)) {
|
if(def == null || string.IsNullOrEmpty(def.id)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// no properties → defaults to repeatable (true). So can't be "already completed".
|
||||||
|
if(encounter.EncounterProperties is not { isRepeatable: false }) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return adventureData.completedEncounterIds.Contains(def.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RecordEncounterCompleted(IEncounter encounter) {
|
||||||
|
var def = encounter?.EncounterDefinition;
|
||||||
|
if(def == null || string.IsNullOrEmpty(def.id)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// only record non-repeatable encounters that have explicit properties
|
||||||
|
if(encounter.EncounterProperties is not { isRepeatable: false }) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!adventureData.completedEncounterIds.Contains(def.id)) {
|
||||||
|
adventureData.completedEncounterIds.Add(def.id);
|
||||||
|
Debug.Log($"Recorded non-repeatable encounter: {def.id}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TrackZoneTransition(Vector3 position) {
|
||||||
|
var zoneContext = zoneSystem.QueryZone(position);
|
||||||
var currentZoneId = zoneContext.resolvedZoneId;
|
var currentZoneId = zoneContext.resolvedZoneId;
|
||||||
|
|
||||||
if(currentZoneId != previousZoneId) {
|
if(currentZoneId != previousZoneId) {
|
||||||
if(!string.IsNullOrEmpty(currentZoneId)) {
|
if(!string.IsNullOrEmpty(currentZoneId)) {
|
||||||
Debug.Log($"Entered zone: {currentZoneId} (encounter: {zoneContext.encounterTableId}, safe: {zoneContext.isSafe})");
|
Debug.Log($"Entered zone: {currentZoneId} (encounter: {zoneContext.encounterTableId}, safe: {zoneContext.isSafe})");
|
||||||
if(ResolveEncounter(zoneContext, zoneContext.encounterTableId, out var encounter)) {
|
|
||||||
TriggerEncounter(encounter);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(!string.IsNullOrEmpty(previousZoneId)) {
|
else if(!string.IsNullOrEmpty(previousZoneId)) {
|
||||||
Debug.Log($"Left zone: {previousZoneId}");
|
Debug.Log($"Left zone: {previousZoneId}");
|
||||||
@@ -74,18 +123,36 @@ namespace Nox.Game {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DailyEncounterCheck(Vector3 position) {
|
||||||
|
var zoneContext = zoneSystem.QueryZone(position);
|
||||||
|
if(string.IsNullOrEmpty(zoneContext.resolvedZoneId) || zoneContext.isSafe) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(ResolveEncounter(zoneContext, zoneContext.encounterTableId, out var encounter)) {
|
||||||
|
TriggerEncounter(encounter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void TriggerEncounter(IEncounter encounter) {
|
private void TriggerEncounter(IEncounter encounter) {
|
||||||
switch(encounter.EncounterDefinition.Kind) {
|
switch(encounter.EncounterDefinition.Kind) {
|
||||||
case CombatKind:
|
case CombatKind:
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
activeEncounter = encounter;
|
activeEncounter = encounter;
|
||||||
|
adventureData.isEncounterActive = true;
|
||||||
encounterView?.SetCurrentEncounter(encounter);
|
encounterView?.SetCurrentEncounter(encounter);
|
||||||
encounterView?.Show();
|
encounterView?.Show();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void FinishEncounter() {
|
||||||
|
RecordEncounterCompleted(activeEncounter);
|
||||||
|
encounterView?.Hide();
|
||||||
|
activeEncounter = null;
|
||||||
|
adventureData.isEncounterActive = false;
|
||||||
|
}
|
||||||
|
|
||||||
private void OnOptionSelected(int optionIndex) {
|
private void OnOptionSelected(int optionIndex) {
|
||||||
if(activeEncounter == null) {
|
if(activeEncounter == null) {
|
||||||
return;
|
return;
|
||||||
@@ -93,16 +160,16 @@ namespace Nox.Game {
|
|||||||
|
|
||||||
var options = activeEncounter.EncounterDialogOptionSet?.options;
|
var options = activeEncounter.EncounterDialogOptionSet?.options;
|
||||||
if(options == null || optionIndex < 0 || optionIndex >= options.Count) {
|
if(options == null || optionIndex < 0 || optionIndex >= options.Count) {
|
||||||
|
FinishEncounter();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ResolveOption(activeEncounter, options[optionIndex]);
|
ResolveOption(activeEncounter, options[optionIndex]);
|
||||||
encounterView?.Hide();
|
|
||||||
activeEncounter = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ResolveOption(IEncounter encounter, EncounterDialogOption option) {
|
private void ResolveOption(IEncounter encounter, EncounterDialogOption option) {
|
||||||
if(option?.events == null) {
|
if(option?.events == null) {
|
||||||
|
FinishEncounter();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,6 +181,7 @@ namespace Nox.Game {
|
|||||||
switch(encounterEvent) {
|
switch(encounterEvent) {
|
||||||
case ChainToEncounterEvent chain:
|
case ChainToEncounterEvent chain:
|
||||||
if(AskForEncounter(chain.nextEncounterId, out var next)) {
|
if(AskForEncounter(chain.nextEncounterId, out var next)) {
|
||||||
|
RecordEncounterCompleted(activeEncounter);
|
||||||
TriggerEncounter(next);
|
TriggerEncounter(next);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -127,13 +195,21 @@ namespace Nox.Game {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FinishEncounter();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CheckForEncounters(Vector3 position) {
|
public void CheckForEncounters(Vector3 position) {
|
||||||
VerifyZones(position);
|
lastKnownPosition = position;
|
||||||
|
TrackZoneTransition(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick() { }
|
public void Tick() {
|
||||||
|
if(adventureData.currentDay != lastCheckedDay) {
|
||||||
|
lastCheckedDay = adventureData.currentDay;
|
||||||
|
DailyEncounterCheck(lastKnownPosition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
if(encounterView != null) {
|
if(encounterView != null) {
|
||||||
@@ -141,6 +217,7 @@ namespace Nox.Game {
|
|||||||
encounterView.Dispose();
|
encounterView.Dispose();
|
||||||
}
|
}
|
||||||
activeEncounter = null;
|
activeEncounter = null;
|
||||||
|
adventureData.isEncounterActive = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,12 @@ namespace Nox.Game {
|
|||||||
HandleClickableLocation();
|
HandleClickableLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(adventureData.isEncounterActive) {
|
||||||
|
partyCanMove = false;
|
||||||
|
adventureData.isPartyMoving = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!partyCanMove) {
|
if(!partyCanMove) {
|
||||||
adventureData.isPartyMoving = false;
|
adventureData.isPartyMoving = false;
|
||||||
return;
|
return;
|
||||||
@@ -111,11 +117,12 @@ namespace Nox.Game {
|
|||||||
}
|
}
|
||||||
|
|
||||||
adventureData.isPartyMoving = true;
|
adventureData.isPartyMoving = true;
|
||||||
partyReference.transform.position = Vector3.MoveTowards(
|
var pos = Vector3.MoveTowards(
|
||||||
new Vector3(partyReference.transform.position.x, 0,
|
new Vector3(partyReference.transform.position.x, 0,
|
||||||
partyReference.transform.position.z), targetPosition,
|
partyReference.transform.position.z), targetPosition,
|
||||||
Time.deltaTime * adventureSettings.partyBaseSpeed);
|
Time.deltaTime * adventureSettings.partyBaseSpeed);
|
||||||
encounterHandler?.CheckForEncounters(partyReference.transform.position);
|
partyReference.transform.position = pos;
|
||||||
|
encounterHandler?.CheckForEncounters(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleHover() {
|
private void HandleHover() {
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ namespace Nox.Game {
|
|||||||
|
|
||||||
if(localTime >= adventureSettings.dayLength) {
|
if(localTime >= adventureSettings.dayLength) {
|
||||||
localTime -= adventureSettings.dayLength;
|
localTime -= adventureSettings.dayLength;
|
||||||
|
adventureData.currentDay++;
|
||||||
}
|
}
|
||||||
|
|
||||||
var normalized = localTime / adventureSettings.dayLength;
|
var normalized = localTime / adventureSettings.dayLength;
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ MonoBehaviour:
|
|||||||
rid: 1352971465325281417
|
rid: 1352971465325281417
|
||||||
<EncounterProperties>k__BackingField:
|
<EncounterProperties>k__BackingField:
|
||||||
difficulty: 0
|
difficulty: 0
|
||||||
|
isRepeatable: 0
|
||||||
<EncounterVisuals>k__BackingField:
|
<EncounterVisuals>k__BackingField:
|
||||||
icon: {fileID: 21300000, guid: ea02ea44fa86ee445be0f7ca82098b75, type: 3}
|
icon: {fileID: 21300000, guid: ea02ea44fa86ee445be0f7ca82098b75, type: 3}
|
||||||
encounterColor: {r: 0, g: 0, b: 0, a: 0}
|
encounterColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
@@ -38,6 +39,7 @@ MonoBehaviour:
|
|||||||
rid: 1352971465325281421
|
rid: 1352971465325281421
|
||||||
<EncounterProperties>k__BackingField:
|
<EncounterProperties>k__BackingField:
|
||||||
difficulty: 0
|
difficulty: 0
|
||||||
|
isRepeatable: 0
|
||||||
<EncounterVisuals>k__BackingField:
|
<EncounterVisuals>k__BackingField:
|
||||||
icon: {fileID: 21300000, guid: ea02ea44fa86ee445be0f7ca82098b75, type: 3}
|
icon: {fileID: 21300000, guid: ea02ea44fa86ee445be0f7ca82098b75, type: 3}
|
||||||
encounterColor: {r: 0, g: 0, b: 0, a: 0}
|
encounterColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
@@ -52,11 +54,9 @@ MonoBehaviour:
|
|||||||
nextEncounter:
|
nextEncounter:
|
||||||
table: {fileID: 11400000}
|
table: {fileID: 11400000}
|
||||||
internalId: 882ecaa9-29d9-452e-aa88-beb533f97882
|
internalId: 882ecaa9-29d9-452e-aa88-beb533f97882
|
||||||
questTitle:
|
|
||||||
- rid: 1352971465325281421
|
- rid: 1352971465325281421
|
||||||
type: {class: QuestKind, ns: Jovian.EncounterSystem, asm: Jovian.EncounterSystem}
|
type: {class: QuestKind, ns: Jovian.EncounterSystem, asm: Jovian.EncounterSystem}
|
||||||
data:
|
data:
|
||||||
nextEncounter:
|
nextEncounter:
|
||||||
table: {fileID: 0}
|
table: {fileID: 0}
|
||||||
internalId:
|
internalId:
|
||||||
questTitle:
|
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 8497d766078e5764a9c7c0dd5d671561, type: 3}
|
m_Script: {fileID: 11500000, guid: 8497d766078e5764a9c7c0dd5d671561, type: 3}
|
||||||
m_Name: South_Road
|
m_Name: South_Road
|
||||||
m_EditorClassIdentifier: Jovian.ZoneSystem::Jovian.ZoneSystem.ZoneData
|
m_EditorClassIdentifier: Jovian.ZoneSystem::Jovian.ZoneSystem.ZoneData
|
||||||
zoneId: adventure_generic_!
|
zoneId: adventure_generic_1
|
||||||
zoneName: South Road
|
zoneName: South Road
|
||||||
role: 0
|
role: 0
|
||||||
priority: 10
|
priority: 10
|
||||||
debugColor: {r: 0, g: 0.7563188, b: 1, a: 0.25}
|
debugColor: {r: 0, g: 0.7563188, b: 1, a: 0.25}
|
||||||
encounterTableId: Adventure_Random_Easy
|
encounterTableId: TestEncounterTable
|
||||||
baseDifficultyTier: 1
|
baseDifficultyTier: 1
|
||||||
baseEncounterChance: 1
|
baseEncounterChance: 1
|
||||||
encounterChanceMultiplier: 1
|
encounterChanceMultiplier: 1
|
||||||
|
|||||||
@@ -169,12 +169,12 @@ MonoBehaviour:
|
|||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 15.55
|
m_fontSize: 18.2
|
||||||
m_fontSizeBase: 36
|
m_fontSizeBase: 36
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 1
|
m_enableAutoSizing: 1
|
||||||
m_fontSizeMin: 7.8
|
m_fontSizeMin: 7.8
|
||||||
m_fontSizeMax: 15.55
|
m_fontSizeMax: 18.2
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 1
|
m_HorizontalAlignment: 1
|
||||||
m_VerticalAlignment: 256
|
m_VerticalAlignment: 256
|
||||||
@@ -323,7 +323,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.8264123}
|
m_AnchorMin: {x: 0, y: 0.8264123}
|
||||||
m_AnchorMax: {x: 0.6627312, y: 1}
|
m_AnchorMax: {x: 0.6627312, y: 1}
|
||||||
m_AnchoredPosition: {x: -0.80999756, y: -15.642975}
|
m_AnchoredPosition: {x: -0.80999756, y: -15.64296}
|
||||||
m_SizeDelta: {x: 1.62, y: -33.7364}
|
m_SizeDelta: {x: 1.62, y: -33.7364}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &3458576624150439327
|
--- !u!222 &3458576624150439327
|
||||||
@@ -381,12 +381,12 @@ MonoBehaviour:
|
|||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 45.4
|
m_fontSize: 30.36
|
||||||
m_fontSizeBase: 36
|
m_fontSizeBase: 36
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 1
|
m_enableAutoSizing: 1
|
||||||
m_fontSizeMin: 13.94
|
m_fontSizeMin: 13.94
|
||||||
m_fontSizeMax: 45.4
|
m_fontSizeMax: 30.36
|
||||||
m_fontStyle: 1
|
m_fontStyle: 1
|
||||||
m_HorizontalAlignment: 2
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
@@ -572,12 +572,12 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.CanvasScaler
|
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.CanvasScaler
|
||||||
m_UiScaleMode: 0
|
m_UiScaleMode: 1
|
||||||
m_ReferencePixelsPerUnit: 100
|
m_ReferencePixelsPerUnit: 100
|
||||||
m_ScaleFactor: 1
|
m_ScaleFactor: 1
|
||||||
m_ReferenceResolution: {x: 800, y: 600}
|
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||||
m_ScreenMatchMode: 0
|
m_ScreenMatchMode: 0
|
||||||
m_MatchWidthOrHeight: 0
|
m_MatchWidthOrHeight: 0.5
|
||||||
m_PhysicalUnit: 3
|
m_PhysicalUnit: 3
|
||||||
m_FallbackScreenDPI: 96
|
m_FallbackScreenDPI: 96
|
||||||
m_DefaultSpriteDPI: 96
|
m_DefaultSpriteDPI: 96
|
||||||
@@ -654,8 +654,8 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
m_AnchoredPosition: {x: -12.132874, y: 7.188507}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: -534.61, y: -277.0435}
|
m_SizeDelta: {x: -1120.4478, y: -616.4321}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &7810011449154573601
|
--- !u!222 &7810011449154573601
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|||||||
@@ -46,8 +46,9 @@ namespace Jovian.EncounterSystem {
|
|||||||
public Sprite encounterArt;
|
public Sprite encounterArt;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class EncounterProperties {
|
public class EncounterProperties {
|
||||||
public int difficulty;
|
public int difficulty;
|
||||||
|
public bool isRepeatable = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user