コード例 #1
0
 protected override IEnumerable <WeightedStat> GetWeightedStats()
 {
     return(new List <WeightedStat>()
     {
         PlaystyleHelper.GainSkillStat <SurvivalistSkill>(10),
         PlaystyleHelper.ItemStat <BlockItem, SellAction>(PlayerActions.Sell, 1, "block"),
     });
 }
コード例 #2
0
 protected override IEnumerable <WeightedStat> GetWeightedStats()
 {
     return(new List <WeightedStat>()
     {
         PlaystyleHelper.Stat(PlayerActions.Harvest, 1, "harvested", "organism"),
         PlaystyleHelper.ItemStat <FoodItem, CraftAction>(PlayerActions.Craft, 2, "food item"),
         PlaystyleHelper.GainSkillStat <CookingSkill>(10),
         PlaystyleHelper.GainSkillStat <FarmerSkill>(10),
     });
 }
コード例 #3
0
 protected override IEnumerable <WeightedStat> GetWeightedStats()
 {
     return(new List <WeightedStat>()
     {
         PlaystyleHelper.Stat(PlayerActions.Craft, 1, "crafted", "item"),
         PlaystyleHelper.Stat(PlayerActions.Sell, 1, "sold", "item"),
         PlaystyleHelper.GainSkillStat <EngineerSkill>(4),
         PlaystyleHelper.GainSkillStat <SmithSkill>(4),
     });
 }
コード例 #4
0
 protected override IEnumerable <WeightedStat> GetWeightedStats()
 {
     return(new List <WeightedStat>()
     {
         PlaystyleHelper.Stat(PlayerActions.Place, 1, "placed", "block"),
         PlaystyleHelper.ItemStat <BlockItem, CraftAction>(PlayerActions.Craft, 1, "block"),
         PlaystyleHelper.GainSkillStat <CarpenterSkill>(10),
         PlaystyleHelper.GainSkillStat <MasonSkill>(10),
     });
 }