mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Made Letters Translatable, fixes #58
This commit is contained in:
parent
051f67af55
commit
70a15dbfed
5 changed files with 17 additions and 4 deletions
|
@ -10,6 +10,7 @@
|
|||
- New Gene Lifeforce Empath: Gain Lifeforce for sexually satisfied pawns, loose for frustrated pawns.
|
||||
- More genes are configurable with XML, e.g. tick speed, distances or multipliers. I am getting the hang of it.
|
||||
- Halfed Succubus Fertilin-Need, increased cost of abilities.
|
||||
- Translation Keys for some letters
|
||||
|
||||
**Fixes:**
|
||||
|
||||
|
|
7
Common/Languages/English/Keyed/Hive.xml
Normal file
7
Common/Languages/English/Keyed/Hive.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LanguageData>
|
||||
|
||||
<rjw_genes_queenbirth_letter_label>New Queen</rjw_genes_queenbirth_letter_label>
|
||||
<rjw_genes_queenbirth_letter_description>A new Queen was born! Make sure to adress inheritance before the new queen reaches adolesence.</rjw_genes_queenbirth_letter_description>
|
||||
|
||||
</LanguageData>
|
|
@ -14,4 +14,7 @@
|
|||
|
||||
<rjw_genes_sexdemon_visit_incident_label>Dirty dreams</rjw_genes_sexdemon_visit_incident_label>
|
||||
<rjw_genes_sexdemon_visit_incident_description>The dirty dreams of your colonists have attracted succubi.\n\nThey will hang around for a couple of days trying to seduce your colonists. They may decide to join your colony, if they are impressed by your colonists's sexual prowess.</rjw_genes_sexdemon_visit_incident_description>
|
||||
|
||||
<rjw_genes_succubus_joins_letter_label>Guest Joins</rjw_genes_succubus_joins>
|
||||
<rjw_genes_succubus_joins_letter_description>{0} enjoys it here and has decided to stay.</rjw_genes_succubus_joins_letter_description>
|
||||
</LanguageData>
|
|
@ -1,4 +1,5 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
@ -169,9 +170,10 @@ namespace RJW_Genes
|
|||
{
|
||||
if (bornQueen == null) return;
|
||||
|
||||
var letter= LetterMaker.MakeLetter(
|
||||
"New Queen", "A new Queen was born! Make sure to adress succession before the new queen reaches adolesence.", LetterDefOf.NeutralEvent, bornQueen
|
||||
);
|
||||
var letter = LetterMaker.MakeLetter(
|
||||
"rjw_genes_queenbirth_letter_label".Translate(),
|
||||
string.Format("rjw_genes_queenbirth_letter_description".Translate(), xxx.get_pawnname(bornQueen)),
|
||||
LetterDefOf.NeutralEvent, bornQueen);
|
||||
Find.LetterStack.ReceiveLetter(letter);
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ namespace RJW_Genes
|
|||
if(colonyJoiners.Contains(pawn))
|
||||
{
|
||||
RecruitUtility.Recruit(pawn, Faction.OfPlayer);
|
||||
Find.LetterStack.ReceiveLetter("Guest Joins", string.Format("{0} enjoys it here and has decided to stay", xxx.get_pawnname(pawn)), LetterDefOf.PositiveEvent, pawn, null, null, null, null);
|
||||
Find.LetterStack.ReceiveLetter("rjw_genes_succubus_joins_letter_label".Translate(), string.Format("rjw_genes_succubus_joins_letter_description".Translate(), xxx.get_pawnname(pawn)), LetterDefOf.PositiveEvent, pawn, null, null, null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue