Skip to content

Commit

Permalink
More modifications, pre boom dao canister upgrade commit
Browse files Browse the repository at this point in the history
backup
  • Loading branch information
MoAzza98 committed Oct 4, 2023
1 parent 2a0a5ff commit 2b72851
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3770,7 +3770,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7378727750467032339}
m_Enabled: 0
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 163d7adfbd388ac4eb51c9d4e90d0ee1, type: 3}
m_Name:
Expand All @@ -3780,6 +3780,7 @@ MonoBehaviour:
dialogueGUI: {fileID: 0}
dialogueBoxGUI: {fileID: 0}
character: {fileID: 0}
diaManager: {fileID: 0}
letterDelay: 0.1
letterMultiplier: 0.5
DialogueInput: 102
Expand Down
2 changes: 1 addition & 1 deletion ToyoWorld/Assets/Resources/Windows/LoginWindow.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ MonoBehaviour:
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument: MainBattle
m_StringArgument: PlayerScene
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &470613945293397725
Expand Down
2 changes: 1 addition & 1 deletion ToyoWorld/Assets/Scenes/MainBattle.unity
Original file line number Diff line number Diff line change
Expand Up @@ -11165,7 +11165,7 @@ AudioSource:
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 48f59bfcc6765d043afa327436b3cd01, type: 3}
m_PlayOnAwake: 1
m_Volume: 0
m_Volume: 0.3
m_Pitch: 1
Loop: 1
Mute: 0
Expand Down
44 changes: 33 additions & 11 deletions ToyoWorld/Assets/Scenes/PlayerScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_BindingMode: 4
m_FollowOffset: {x: 0, y: 0.8038982, z: -6.959702}
m_FollowOffset: {x: 0, y: 6, z: -3}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1
Expand Down Expand Up @@ -1226,7 +1226,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_BindingMode: 4
m_FollowOffset: {x: 0, y: 0.8038982, z: -6.959702}
m_FollowOffset: {x: 0, y: 6, z: -3}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1
Expand Down Expand Up @@ -1916,6 +1916,10 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 1413962507}
m_Modifications:
- target: {fileID: 1585356682828404593, guid: 4f405a8b39d408543b777537134440bd, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6957890892541525328, guid: 4f405a8b39d408543b777537134440bd, type: 3}
propertyPath: m_Name
value: ChatBubble
Expand Down Expand Up @@ -2302,7 +2306,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 688731503}
m_LocalRotation: {x: 0.4834514, y: -0.000000026536691, z: 0.0000000146557255, w: 0.8753712}
m_LocalRotation: {x: 0.48345143, y: 0.000000021300846, z: -0.000000011764065, w: 0.8753712}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
Expand Down Expand Up @@ -2670,7 +2674,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_BindingMode: 4
m_FollowOffset: {x: 0, y: 0.8038982, z: -6.959702}
m_FollowOffset: {x: 0, y: 6, z: -3}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1
Expand Down Expand Up @@ -3220,7 +3224,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 837303047}
m_LocalRotation: {x: 0.48345137, y: -0.00000004544638, z: 0.0000000250992, w: 0.8753712}
m_LocalRotation: {x: 0.48345143, y: 0.00000003367959, z: -0.00000001860062, w: 0.8753712}
m_LocalPosition: {x: 4.983409, y: 41.924, z: -18.356527}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
Expand Down Expand Up @@ -3395,13 +3399,14 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 919116554}
m_Enabled: 0
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a627f16cd9a62d4bbe8fcefbdb724d8, type: 3}
m_Name:
m_EditorClassIdentifier:
dialoguePanel: {fileID: 1913774586629484095, guid: bb9f8adb2b341954693739377a605239, type: 3}
panelText: {fileID: 0}
dialoguePanel: {fileID: 2023583160}
panelText: {fileID: 1291809471}
nameText: {fileID: 2142331186}
--- !u!4 &919116556
Transform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3735,7 +3740,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1016719601}
m_LocalRotation: {x: 0.41313744, y: -0.000000038381813, z: 0.00000001741244, w: 0.91066873}
m_LocalRotation: {x: 0.41313747, y: -0.00000001566935, z: 0.0000000071086173, w: 0.91066873}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
Expand Down Expand Up @@ -4375,6 +4380,17 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 50d4f5fbddcdbcb47a03cfa3de86b121, type: 3}
--- !u!114 &1291809471 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2871230111851729414, guid: 4f405a8b39d408543b777537134440bd, type: 3}
m_PrefabInstance: {fileID: 552684167}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &1325820252
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -6096,8 +6112,8 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1962508989}
m_LocalRotation: {x: 0.3263303, y: 0.000000027539746, z: -0.000000009507537, w: 0.9452558}
m_LocalPosition: {x: 0, y: -0.743412, z: -1.25284}
m_LocalRotation: {x: 0.4422421, y: -0.000000016021092, z: 0.000000007899694, w: 0.89689577}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
Expand Down Expand Up @@ -6234,6 +6250,11 @@ Transform:
m_CorrespondingSourceObject: {fileID: 4013860934539580, guid: 50d4f5fbddcdbcb47a03cfa3de86b121, type: 3}
m_PrefabInstance: {fileID: 1196502566}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2023583160 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6957890892541525328, guid: 4f405a8b39d408543b777537134440bd, type: 3}
m_PrefabInstance: {fileID: 552684167}
m_PrefabAsset: {fileID: 0}
--- !u!4 &2033440094 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4000010392036792, guid: 7ae254bddcf0def478298b88c82e882a, type: 3}
Expand Down Expand Up @@ -11029,6 +11050,7 @@ MonoBehaviour:
dialogueGUI: {fileID: 0}
dialogueBoxGUI: {fileID: 0}
character: {fileID: 0}
diaManager: {fileID: 0}
letterDelay: 0.1
letterMultiplier: 0.5
DialogueInput: 102
Expand Down
1 change: 1 addition & 0 deletions ToyoWorld/Assets/Scripts/Battle/BattleDialogBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ private void SetCurrentAction()

public void SetMoveNames(List<Move> moves)
{
Debug.Log("Setting moves");
for(int i = 0; i < moveTexts.Count; i++)
{
if(i < moves.Count)
Expand Down
1 change: 1 addition & 0 deletions ToyoWorld/Assets/Scripts/Battle/BattleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void Update()

public IEnumerator SetupBattle()
{

playerUnit.Setup(playerParty.GetHealthyToyo());
playerHUD.SetData(playerUnit.Toyo);

Expand Down
2 changes: 2 additions & 0 deletions ToyoWorld/Assets/Scripts/DialogueManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public class DialogueManager : MonoBehaviour
{
[SerializeField] public GameObject dialoguePanel;
[SerializeField] public TextMeshProUGUI panelText;
[SerializeField] public TextMeshProUGUI nameText;


// Start is called before the first frame update
void Start()
Expand Down
16 changes: 16 additions & 0 deletions ToyoWorld/Assets/Scripts/DialogueSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class DialogueSystem : MonoBehaviour
public Transform dialogueBoxGUI;
public NPC character;

public DialogueManager diaManager;


public float letterDelay = 0.1f;
public float letterMultiplier = 0.5f;
Expand All @@ -39,11 +41,25 @@ void Start()
dialogueText.text = "";
}

void Awake()
{
SetDialogueRefs();
}

void Update()
{

}

void SetDialogueRefs()
{
diaManager = FindAnyObjectByType<DialogueManager>();
nameText = diaManager.nameText;
dialogueText = diaManager.panelText;
dialogueGUI = diaManager.dialoguePanel;
dialogueBoxGUI = diaManager.dialoguePanel.transform;
}

public void NPCName()
{
outOfRange = false;
Expand Down
12 changes: 8 additions & 4 deletions ToyoWorld/Assets/Scripts/NPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ void Start()

void Update()
{
//Vector3 npcPos = gameObject.transform.position;
//Vector3 delta = new Vector3(playerPos.position.x - npcPos.x, 0.0f, playerPos.position.z - npcPos.z);
//Quaternion rotation = Quaternion.LookRotation(delta);
//gameObject.transform.rotation = rotation;
if(playerPos == null)
{
playerPos = FindObjectOfType<PlayerMovement>().transform;
}
Vector3 npcPos = gameObject.transform.position;
Vector3 delta = new Vector3(playerPos.position.x - npcPos.x, 0.0f, playerPos.position.z - npcPos.z);
Quaternion rotation = Quaternion.LookRotation(delta);
gameObject.transform.rotation = rotation;
}

public void OnTriggerStay(Collider other)
Expand Down
10 changes: 10 additions & 0 deletions ToyoWorld/Assets/Scripts/Toyos/Toyo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ public void Init()
}
}

/*
public void FullRestore()
{
HP = MaxHP;
foreach(var move in Moves)
{
move.PP = move.Base.Pp;
}
}*/

public int Attack
{
get { return Mathf.FloorToInt((Base.Attack * Level) / 100f) + 5; }
Expand Down
3 changes: 3 additions & 0 deletions ToyoWorld/ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Scenes/MainScene.unity
guid: 9fc0d4010bbf28b4594072e72b8655ab
- enabled: 1
path: Assets/Scenes/PlayerScene.unity
guid: bf9ed643a8b9d9d45b3f8a2ac95fb431
- enabled: 1
path: Assets/Scenes/MainBattle.unity
guid: 2cda34965e592d243bfd3d7913a37901
Expand Down
1 change: 1 addition & 0 deletions ToyoWorld/ProjectSettings/QualitySettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ QualitySettings:
Nintendo Switch: 5
PS4: 5
PSP2: 2
Server: 0
Stadia: 5
Standalone: 5
WebGL: 3
Expand Down

0 comments on commit 2b72851

Please sign in to comment.