mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
Added statuses.
Signed-off-by: RosimInc <rosim_inc@hotmail.com>
This commit is contained in:
parent
83c77a4b49
commit
fdba06bdc8
@ -1512,6 +1512,22 @@ Prefab:
|
||||
propertyPath: DetailsPanel
|
||||
value:
|
||||
objectReference: {fileID: 1197925315}
|
||||
- target: {fileID: 11432906, guid: 136ea38d5deb4c9418beb879167d9b03, type: 2}
|
||||
propertyPath: strategy.deathNoticing.modifier
|
||||
value: .200000003
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11432906, guid: 136ea38d5deb4c9418beb879167d9b03, type: 2}
|
||||
propertyPath: levelOptions.NumPeople
|
||||
value: 50
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11432906, guid: 136ea38d5deb4c9418beb879167d9b03, type: 2}
|
||||
propertyPath: levelOptions.AvgNumFriends
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11432906, guid: 136ea38d5deb4c9418beb879167d9b03, type: 2}
|
||||
propertyPath: levelOptions.FriendshipLikeliness
|
||||
value: .600000024
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 136ea38d5deb4c9418beb879167d9b03, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
|
||||
@ -154,7 +154,7 @@ namespace DeathBook.Model
|
||||
|
||||
AwarenessLevel = Mathf.Min(AwarenessLevel + strategyOutput, 1f);
|
||||
|
||||
if (Random.value < 0.3f)
|
||||
if (Random.value < 0.2f)
|
||||
{
|
||||
CurrentStatus = new Status(GameLevel.GameTime, f);
|
||||
}
|
||||
@ -170,23 +170,23 @@ namespace DeathBook.Model
|
||||
return !(time < ConnectionTime && time > DisconnectionTime);
|
||||
}
|
||||
|
||||
private void ShareStatus()
|
||||
/*private void ShareStatus()
|
||||
{
|
||||
if (Random.value < 0.3f)
|
||||
{
|
||||
foreach (Friendship f in friendsList)
|
||||
f.Friend.ReceiveStatus(CurrentStatus);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
public void ReceiveStatus(Status newStatus)
|
||||
/*public void ReceiveStatus(Status newStatus)
|
||||
{
|
||||
Debug.Log("Oh noes, " + newStatus.Friends.Friend + " died...");
|
||||
/*foreach (Friendship f in friendsList)
|
||||
foreach (Friendship f in friendsList)
|
||||
{
|
||||
if (f.Friend == newStatus.Friends) ;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
public void Update(float deltaTime)
|
||||
{
|
||||
@ -194,7 +194,7 @@ namespace DeathBook.Model
|
||||
{
|
||||
if (CurrentStatus.EndTime < GameLevel.GameTime)
|
||||
{
|
||||
ShareStatus();
|
||||
//ShareStatus();
|
||||
CurrentStatus = null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,8 +4,8 @@ namespace DeathBook.Model
|
||||
{
|
||||
public class Status
|
||||
{
|
||||
/*private int startTime;
|
||||
public int StartTime { get { return startTime; } }*/
|
||||
private int startTime;
|
||||
public int StartTime { get { return startTime; } }
|
||||
private int endTime;
|
||||
public int EndTime { get { return endTime; } }
|
||||
private Friendship friends;
|
||||
@ -13,8 +13,8 @@ namespace DeathBook.Model
|
||||
|
||||
public Status(int startTime, Friendship friendship)
|
||||
{
|
||||
/*this.startTime = startTime;*/
|
||||
this.endTime = startTime = (int) Utils.GetRandomValue(60*1.5f, 35, 3);
|
||||
this.startTime = startTime;
|
||||
this.endTime = startTime + (int) Utils.GetRandomValue(700, 250, 3);
|
||||
friends = friendship;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ using System;
|
||||
[RequireComponent(typeof(Collider))]
|
||||
public class PersonNode : MonoBehaviour, IObserver
|
||||
{
|
||||
private const float UpdateFrequency = 0.5f;
|
||||
private const float UpdateFrequency = 0.4f;
|
||||
private float time = 0;
|
||||
|
||||
public Action<PersonNode> OnClicked;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user