mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Fix folders and namespaces (except for the Rituals)
This commit is contained in:
parent
17a8264b49
commit
075260f091
47 changed files with 46 additions and 138 deletions
|
@ -0,0 +1,24 @@
|
|||
using RimWorld;
|
||||
|
||||
namespace RJWSexperience.Ideology
|
||||
{
|
||||
public class GoodwillSituationWorker_OneWayReceive : GoodwillSituationWorker_MemeCompatibility
|
||||
{
|
||||
public override int GetNaturalGoodwillOffset(Faction other)
|
||||
{
|
||||
if (!Applies(other))
|
||||
return 0;
|
||||
return def.naturalGoodwillOffset;
|
||||
}
|
||||
|
||||
protected bool Applies(Faction other)
|
||||
{
|
||||
Ideo primaryideo = Faction.OfPlayer.ideos?.PrimaryIdeo;
|
||||
Ideo primaryideo2 = other.ideos?.PrimaryIdeo;
|
||||
if (primaryideo == null || primaryideo2 == null)
|
||||
return false;
|
||||
|
||||
return primaryideo.memes.Contains(def.meme) && !primaryideo2.memes.Contains(def.meme);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue