Gitlab to Gitea Migration

This commit is contained in:
2022-07-02 13:02:05 +02:00
parent 3d070e36e6
commit 0fd1c1acf2
196 changed files with 14059 additions and 1 deletions

View File

@@ -0,0 +1,56 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class BasicBackpackItem :
ClothingItem
{
public override string FriendlyName { get { return "Basic Backpack"; } }
public override string Description { get { return "Can Carry 10KG more with this one little helper"; } }
public override string Slot { get { return ClothingSlot.Back; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.MaxCarryWeight, 10000f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 1)]
public class BasicBackpackRecipe : Recipe
{
public BasicBackpackRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<BasicBackpackItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<LeatherHideItem>(typeof(ClothesmakingEfficiencySkill), 4, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<ClothItem>(typeof(ClothesmakingEfficiencySkill), 5, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Basic Backpack", typeof(BasicBackpackRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}

View File

@@ -0,0 +1,57 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class BearpackItem :
ClothingItem
{
public override string FriendlyName { get { return "Bearpack"; } }
public override string Description { get { return "Lets you carry as much as a bear! Not really, but it does help you carry 20KG more."; } }
public override string Slot { get { return ClothingSlot.Back; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.MaxCarryWeight, 20000f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 4)]
public class BearpackRecipe : Recipe
{
public BearpackRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<BearpackItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<CelluloseFiberItem>(typeof(ClothesmakingEfficiencySkill), 40, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<ClothItem>(typeof(ClothesmakingEfficiencySkill), 30, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<FurPeltItem>(typeof(ClothesmakingEfficiencySkill), 50, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Bearpack", typeof(BearpackRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}

View File

@@ -0,0 +1,56 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class BigBackpackItem :
ClothingItem
{
public override string FriendlyName { get { return "Big Backpack"; } }
public override string Description { get { return "A normal Backpack. Just... bigger. Let's you carry 15KG more"; } }
public override string Slot { get { return ClothingSlot.Back; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.MaxCarryWeight, 15000f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 2)]
public class BigBackpackRecipe : Recipe
{
public BigBackpackRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<BigBackpackItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<LeatherHideItem>(typeof(ClothesmakingEfficiencySkill), 4, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<ClothItem>(typeof(ClothesmakingEfficiencySkill), 10, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Big Backpack", typeof(BigBackpackRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}

View File

@@ -0,0 +1,57 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class LightBackpackItem :
ClothingItem
{
public override string FriendlyName { get { return "Light Backpack"; } }
public override string Description { get { return "Light Backpack. Increasing Movement Speed by 150% but you just can carry 5KG"; } }
public override string Slot { get { return ClothingSlot.Back; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.MaxCarryWeight, 5000f },
{ UserStatType.MovementSpeed, 1.5f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 3)]
public class LightBackpackRecipe : Recipe
{
public LightBackpackRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<LightBackpackItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<ClothItem>(typeof(ClothesmakingEfficiencySkill), 20, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<CelluloseFiberItem>(typeof(ClothesmakingEfficiencySkill), 20, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Light Backpack", typeof(LightBackpackRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}

View File

@@ -0,0 +1,56 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class RunningShoesItem :
ClothingItem
{
public override string FriendlyName { get { return "Running Shoes"; } }
public override string Description { get { return "Running Shoes. Increasing Movement Speed by 70%"; } }
public override string Slot { get { return ClothingSlot.Shoes; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.MovementSpeed, 0.7f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 1)]
public class RunningShoesRecipe : Recipe
{
public RunningShoesRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<RunningShoesItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<LeatherHideItem>(typeof(ClothesmakingEfficiencySkill), 10, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<ClothItem>(typeof(ClothesmakingEfficiencySkill), 5, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Running Shoes", typeof(RunningShoesRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}

View File

@@ -0,0 +1,57 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class WorkBackpackItem :
ClothingItem
{
public override string FriendlyName { get { return "Work Backpack"; } }
public override string Description { get { return "Lighter pack that causes lower calorie consumption by -20%. Let's you carry 8KG"; } }
public override string Slot { get { return ClothingSlot.Back; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.MaxCarryWeight, 8000f },
{ UserStatType.CalorieRate, -0.2f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 3)]
public class WorkBackpackRecipe : Recipe
{
public WorkBackpackRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<WorkBackpackItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<LeatherHideItem>(typeof(ClothesmakingEfficiencySkill), 10, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<CelluloseFiberItem>(typeof(ClothesmakingEfficiencySkill), 20, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Work Backpack", typeof(WorkBackpackRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}

View File

@@ -0,0 +1,56 @@
namespace Eco.Mods.TechTree
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Players;
using Eco.Gameplay.Skills;
using Eco.Mods.TechTree;
using Eco.Shared.Items;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
[Serialized]
[Weight(100)]
public partial class WorkBootsItem :
ClothingItem
{
public override string FriendlyName { get { return "Work Boots"; } }
public override string Description { get { return "Sport shoes. Decreasing Calorie Consumption by 15%"; } }
public override string Slot { get { return ClothingSlot.Shoes; } }
public override bool Starter { get { return false ; } }
private static Dictionary<UserStatType, float> flatStats = new Dictionary<UserStatType, float>()
{
{ UserStatType.CalorieRate, -0.15f },
};
public override Dictionary<UserStatType, float> GetFlatStats() { return flatStats; }
}
[RequiresSkill(typeof(ClothesmakingSkill), 3)]
public class WorkBootsRecipe : Recipe
{
public WorkBootsRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<WorkBootsItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<CelluloseFiberItem>(typeof(ClothesmakingEfficiencySkill), 20, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<LeatherHideItem>(typeof(ClothesmakingEfficiencySkill), 30, ClothesmakingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = new ConstantValue(1);
this.Initialize("Work Boots", typeof(WorkBootsRecipe));
CraftingComponent.AddRecipe(typeof(TailoringTableObject), this);
}
}
}