Skip to content

Commit

Permalink
Added More Classifications in Points System
Browse files Browse the repository at this point in the history
  • Loading branch information
uchop committed Mar 19, 2023
1 parent 0d13965 commit 9ece3c2
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 14 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified Assets/.DS_Store
Binary file not shown.
14 changes: 7 additions & 7 deletions Assets/DisplayScores.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ void Update()
sanityScore = ScoreManager.instance.GetSanityScore();
sanityScoreElement.text = "Sanity Score: " + sanityScore.ToString();

if (sanityScore <= -40)
if (sanityScore <= -35)
{
if (reputation <= -40)
if (reputation <= -35)
{
//scared
anarchistOrPacifist.text = "Heavy Anarchist";
Expand All @@ -39,12 +39,12 @@ void Update()
anarchistOrPacifist.text = "Moderate Anarchist";
}
}
else if (sanityScore <= -20)
else if (sanityScore <= -15)
{
if (reputation <= 5)
if (reputation < 10)
{
//mixed
anarchistOrPacifist.text = "Moderate Anarchist";
anarchistOrPacifist.text = "Light Anarchist";
}
else
{
Expand All @@ -62,13 +62,13 @@ void Update()
else
{
//positive
anarchistOrPacifist.text = "Moderate Pacifist";
anarchistOrPacifist.text = "Light Pacifist";

}
}
else
{
if (reputation <= 20)
if (reputation <= 25)
{
//positive
anarchistOrPacifist.text = "Moderate Pacifist";
Expand Down
8 changes: 8 additions & 0 deletions Assets/FinalDoorKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public class FinalDoorKey : MonoBehaviour
public bool playerIsClose;
public AudioSource audioSource_;
private bool pointsAdded = false;
public TMP_Text lvl3_npc_dialogue_8;
public TMP_Text lvl3_npc_dialogue_10;
public TMP_Text lvl3_npc_dialogue_11;
public TMP_Text lvl3_npc_dialogue_14;

// Start is called before the first frame update
// void Start()
Expand All @@ -25,6 +29,10 @@ void Update()
{
door_.GetComponent<SpriteRenderer>().sprite = doorOpen;
door_.GetComponent<BoxCollider2D> ().enabled = false;
lvl3_npc_dialogue_8.text = "We're Free!";
lvl3_npc_dialogue_10.text = "We're Free!";
lvl3_npc_dialogue_11.text = "We're Free!";
lvl3_npc_dialogue_14.text = "We're Free!";
if (!pointsAdded)
{
ScoreManager.instance.AdddPoints(15, 15);
Expand Down
10 changes: 5 additions & 5 deletions Assets/NextLevelDialogueScripts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ void Update()
Debug.Log("Open Sesame");
int sanityScore = ScoreManager.instance.GetSanityScore();
int reputation = ScoreManager.instance.GetReputationScore();
if (sanityScore <= -40)
if (sanityScore <= -35)
{
if (reputation <= -40)
if (reputation <= -35)
{
//scared
lvl3_npc_dialogue_1.text = "Please don't kill us!";
Expand All @@ -44,9 +44,9 @@ void Update()
lvl3_npc_dialogue_4.text = "Will you spare our lives?";
}
}
else if (sanityScore <= -20)
else if (sanityScore <= -15)
{
if (reputation <= -20)
if (reputation < 10)
{
//mixed
lvl3_npc_dialogue_1.text = "Just because he killed some prisoners doesn't mean he'll kill us.";
Expand Down Expand Up @@ -85,7 +85,7 @@ void Update()
}
else
{
if (reputation <= 20)
if (reputation <= 25)
{
//positive
lvl3_npc_dialogue_1.text = "Help us!";
Expand Down
2 changes: 1 addition & 1 deletion Assets/PrisonerShot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void Update()
Destroy(gameObject);
Destroy(lvl3_npc_dialogue);
ScoreManager.instance.PrisonerDestroyed();
ScoreManager.instance.AdddPoints(-10, -10);
ScoreManager.instance.AdddPoints(-20, -20);
}
}
void OnTriggerEnter2D(Collider2D other){
Expand Down
4 changes: 4 additions & 0 deletions Assets/Scenes/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -7717,6 +7717,10 @@ MonoBehaviour:
doorOpen: {fileID: 21300160, guid: 29c9cded5e558164aaf8c9bf08aa1510, type: 3}
playerIsClose: 0
audioSource_: {fileID: 789426161}
lvl3_npc_dialogue_8: {fileID: 167225073}
lvl3_npc_dialogue_10: {fileID: 2042413598}
lvl3_npc_dialogue_11: {fileID: 92404742}
lvl3_npc_dialogue_14: {fileID: 550196121}
--- !u!1001 &1302152440
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down
2 changes: 1 addition & 1 deletion Assets/hammerPrisoners.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void Update()
Destroy(gameObject);
Destroy(lvl3_npc_dialogue);
ScoreManager.instance.PrisonerDestroyed();
ScoreManager.instance.AdddPoints(-5, -5);
ScoreManager.instance.AdddPoints(-15, -15);
pointsAdded = true;
}
}
Expand Down

0 comments on commit 9ece3c2

Please sign in to comment.