Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Assets/Gothic-Core/Scripts/Models/Config/DeveloperConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,14 @@ public class DebugChannelTypesCollection : CollectionWrapper<DeveloperConfigEnum
public bool EnableDecalVisuals;
public bool EnableParticleEffects;

[Tooltip("Show 'Level +5' button in MarvinMode panel. Adds 5 levels (+50 LP, +60 HP max). Repeatable.")]
public bool EnableLevel5Cheat;

[Tooltip("Show 'Guild → Novice' button in MarvinMode panel. Sets hero guild to GIL_NOV.")]
public bool EnableGuildCheat;

[Tooltip("Show 'Skip Time +30min' button in MarvinMode panel. Advances game time and recalculates NPC routines.")]
public bool EnableTimeSkip;

}
}
9 changes: 9 additions & 0 deletions Assets/Gothic-Core/Scripts/Services/Npc/NpcService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,15 @@ public NpcContainer GetHeroContainer()
return ((NpcInstance)_gameStateService.GothicVm.GlobalHero).GetUserData();
}

public void SyncHeroInstanceToVob()
{
var hero = GetHeroContainer();
hero.Vob.Level = hero.Instance.Level;
hero.Vob.Xp = hero.Instance.Exp;
hero.Vob.XpNextLevel = hero.Instance.ExpNext;
hero.Vob.Lp = hero.Instance.Lp;
}

public GameObject GetHeroGameObject()
{
return ((NpcInstance)_gameStateService.GothicVm.GlobalHero).GetUserData().Go;
Expand Down
26 changes: 18 additions & 8 deletions Assets/Gothic-VR/Resources/VR/Prefabs/HVR - Player.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 3866233120056885002}
- component: {fileID: 8397018797139013143}
m_Layer: 0
m_Name: HVR - Player
m_TagString: Untagged
Expand Down Expand Up @@ -203,6 +204,18 @@ Transform:
- {fileID: 5178568052186272030}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8397018797139013143
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 778145573255517820}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 977abd6b6b52b6349b0da41931fe76a2, type: 3}
m_Name:
m_EditorClassIdentifier: Gothic.VR::Gothic.VR.Adapters.UI.VRMenuCheatAdapter
--- !u!1 &5690067108025510331
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -338,14 +351,14 @@ MonoBehaviour:
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
m_Version: 2
--- !u!1001 &389902283970083402
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1521,14 +1534,14 @@ MonoBehaviour:
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
m_Version: 2
--- !u!4 &1465965334603602870 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 930940621509673985, guid: c43ac1b5fbd2fc24ea40fb28bae6be3e, type: 3}
Expand Down Expand Up @@ -1621,7 +1634,6 @@ MonoBehaviour:
m_Calls: []
_grabBag: {fileID: 0}
GrabBags: []
_allowGrabbing: 0
GrabControl: 0
GrabDetectionType: 1
CheckHandOverlap: 0
Expand Down Expand Up @@ -1750,14 +1762,14 @@ MonoBehaviour:
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
m_Version: 2
--- !u!4 &3469872688271879209 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2923976313507361694, guid: c43ac1b5fbd2fc24ea40fb28bae6be3e, type: 3}
Expand Down Expand Up @@ -2210,7 +2222,6 @@ MonoBehaviour:
m_Calls: []
_grabBag: {fileID: 0}
GrabBags: []
_allowGrabbing: 0
GrabControl: 0
GrabDetectionType: 1
CheckHandOverlap: 0
Expand Down Expand Up @@ -2340,7 +2351,6 @@ MonoBehaviour:
m_Calls: []
_grabBag: {fileID: 0}
GrabBags: []
_allowGrabbing: 0
GrabControl: 0
GrabDetectionType: 1
CheckHandOverlap: 0
Expand Down Expand Up @@ -2414,14 +2424,14 @@ MonoBehaviour:
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
m_Version: 2
--- !u!4 &5027004475127813370 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 6733158296146905933, guid: c43ac1b5fbd2fc24ea40fb28bae6be3e, type: 3}
Expand Down Expand Up @@ -2504,14 +2514,14 @@ MonoBehaviour:
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
m_Version: 2
--- !u!4 &7369524044816577371 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 9148698939618798828, guid: c43ac1b5fbd2fc24ea40fb28bae6be3e, type: 3}
Expand Down
Loading