
--anything more than a line long in code of script is stored here as a string


DakiData = {}
DakiData.dakiList = {}
DakiData.mangaList = {}
DakiData.dakiTextures = {}
DakiData.DakiScript = {}
DakiData.MangaScript = {}
DakiData.DakiScript.items = [[

    item Dakimakura%s
    {
        DisplayCategory           =	Dakimakura,
        DisplayName		          =	Dakimakura - %s,
        WeaponSprite	          =	%s.Dakimakura%s,
        Icon			          =	%s,
		WorldStaticModel          = WorldItem_Dakimakura%s,
        MinAngle	              =	0.75,
        MaxRange	              =	1.3,
        Type	                  =	Weapon,
        MinimumSwingTime	      =	4,
        KnockBackOnNoDeath	      =	FALSE,
        SwingAmountBeforeImpact	  =	0.02,
        Categories	              =	Blunt,
        ConditionLowerChanceOneIn =	10,
        Weight	                  =	0.8,
        SplatNumber	              =	0,
        PushBackMod	              =	10,
        SubCategory	              =	Swinging,
        ConditionMax	          =	10,
        MaxHitCount	              =	2,
        DoorDamage	              =	0,
        SwingAnim	              =	Bat,
        MinRange	              =	0.61,
        SwingTime	              =	4,
        KnockdownMod	          =	10,
        SplatBloodOnNoDeath	      =	FALSE,
        RunAnim	                  =	Run_Weapon2,
        IdleAnim	              =	Idle_Weapon2,
        BreakSound                = dakiBreak,
        DoorHitSound              = daki,
        HitSound                  = daki,
        HitFloorSound             = daki,
        SwingSound                = PlankSwing,
        TreeDamage                = 0,
        TwoHandWeapon             = TRUE,
        CriticalChance	          =	0,
        CritDmgMultiplier         = 0,
        MinDamage	              =	0.1,
        MaxDamage	              =	0.2,
        BaseSpeed                 = 0.9,
        AttachmentType            = Shovel,
        Tags                      = Pillow;DakiWeapon;RepairWithTape,
        Tooltip                   = %s,
    }

]]
    
DakiData.DakiScript.armorItems = [[

    item Dakimakura%d_FrontArmor
    {
        DisplayCategory         = Dakimakura Armor,
        DisplayName             = %s's Dakimakura Armor,
        ClothingItem            = %s.Dakimakura%d_FrontArmor,
        IconsForTexture         = %s,
        WorldStaticModel        = Dakimakura%dArmor_Ground,
        Type                    = Clothing,
        BodyLocation            = Tail,
        BloodLocation           = Apron;Groin;Neck,
		RunSpeedModifier        = 0.93,
		CombatSpeedModifier     = 0.98,
		BiteDefense             = 50,
		ScratchDefense          = 50,
		ClothingItemExtra       = Dakimakura%d_BackArmor,
        ClothingItemExtraOption = DakiBack,
        clothingExtraSubmenu    = DakiFront,
        Insulation              = 0.2,
        WindResistance          = 0.05,
        FabricType              = Cotton,
		WaterResistance         = 0,
		Weight                  = 0.8,
        Tags                    = DakiArmor;DakiArmorFront,
		CanHaveHoles            = true,
        Tooltip                 = %s,
    }

    item Dakimakura%d_BackArmor
    {
        DisplayCategory	        = Dakimakura Armor,
        DisplayName             = %s's Dakimakura Armor,
        ClothingItem            = %s.Dakimakura%d_BackArmor,
        IconsForTexture         = %s,
        WorldStaticModel        = Dakimakura%dArmor_Ground,
        Type                    = Clothing,
        BodyLocation            = Back,
        BloodLocation           = Bag;Apron;Groin;Neck,
		ClothingItemExtra       = Dakimakura%d_FrontArmor,
        ClothingItemExtraOption = DakiFront,
        clothingExtraSubmenu    = DakiBack,
        RunSpeedModifier        = 0.93,
        CombatSpeedModifier     = 0.98,
        BiteDefense             = 50,
        ScratchDefense          = 50,
        Insulation              = 0.2,
        WindResistance          = 0.05,
        FabricType              = Cotton,
        WaterResistance         = 0,
        Weight                  = 0.8,
        Tags                    = DakiArmor;DakiArmorBack,
 		CanHaveHoles            = true,
        Tooltip                 = %s,
    }


]]

DakiData.DakiScript.models = [[

    model Dakimakura%d
    {
        mesh    = Weapons/2Handed/daki,
        texture = %s,
        
        attachment shovel_back
        {
            offset = -0.0060 0.5810 0.0550,
            rotate = -178.0000 0.0000 4.0000,
        }

        attachment shovel_back_bag
        {
            offset = 0.0730 0.5430 0.0540,
            rotate = 180.0000 0.0000 -3.0000,
        }
    }

    model Dakimakura%dArmor_Ground
    {
        mesh    = static/dakiarmor_ground,
        texture = %s,
    }

    model WorldItem_Dakimakura%d
    {
        mesh    = WorldItems/WorldItem_daki,
        texture = %s,
    }

    model Dakimakura%dFlip
    {
        mesh    = Weapons/2Handed/daki_flip,
        texture = %s,
        
        attachment shovel_back
        {
            offset = -0.0060 0.5810 0.0550,
            rotate = -178.0000 0.0000 4.0000,
        }

        attachment shovel_back_bag
        {
            offset = 0.0730 0.5430 0.0540,
            rotate = 180.0000 0.0000 -3.0000,
        }

    }

    model WorldItem_Dakimakura%dFlip
    {
        mesh    = WorldItems/WorldItem_daki_flip,
        texture = %s,
    }
    
]]

DakiData.MangaScript.items = [[

    item Manga%d
    {
        Weight	         =	0.2,
        Type	         =	Literature,
        DisplayName	     =	Doujinshi - %s,
        StressChange	 =	-50,
        Icon	         =	%s,
        BoredomChange	 =	-50,
        UnhappyChange	 =  -50,
        StaticModel      =  Manga%d,
        WorldStaticModel =  Manga%d_ground,
        Tags             =  Doujinshi,
        DisplayCategory  =  Manga,
        Tooltip          =  %s,
    }
    
]]

DakiData.MangaScript.models = [[

    model Manga%d
    {
        mesh    = WorldItems/Manga,
        texture = %s,
    }
    model Manga%d_ground
    {
        mesh    = WorldItems/MangaClosed,
        texture = %s,
        scale   = 0.4,
    }
    
]]



DakiData.workshopTxt =
[[version=1
title=%s
description= a Dakimakura addon
tags=
visibility=public
author=%s
]]

DakiData.modInfo =
[[name=%s
id=Daki%s
description=a Dakimakura addon
poster=poster.png
require=\WaifuDakis
author=%s
]]

DakiData.OutfitDefs =
[[require "Definitions/AttachedWeaponDefinitions"
require "DakimakuraOutfitDefinitions"
AttachedWeaponDefinitions=AttachedWeaponDefinitions or {};
]]

DakiData.ArmorBackXml =
[[<clothingItem>
<!--  Basic Properties  -->
<m_GUID>%s</m_GUID>
<m_MaleModel>skinned/clothes/m_daki_armor_back</m_MaleModel>
<m_FemaleModel>skinned/clothes/f_daki_armor_back</m_FemaleModel>
<textureChoices>%s</textureChoices>
</clothingItem>
]]

DakiData.ArmorFrontXml =
[[<clothingItem>
<!--  Basic Properties  -->
<m_GUID>%s</m_GUID>
<m_MaleModel>skinned/clothes/m_daki_armor_front</m_MaleModel>
<m_FemaleModel>skinned/clothes/f_daki_armor_front</m_FemaleModel>
<textureChoices>%s</textureChoices>
</clothingItem>]]

DakiData.FileGuideTable =
[[
<files>
<path>%s</path>
<guid>%s</guid>
</files>
]]
DakiData.ToolTip =
[[
Tooltip_EN = {
        %s
}
]]

DakiData.Comments =
[[##This script requires a modname then type you want to make (daki,manga)
##
##after those lines everything is display names for the items separated by commas
##
##Type is either a dakimakura or manga. all accepted alternatives are : pillow,daki,comic. can be capitalized or not. 
##
##The items texture name will be either daki+number in list   or  manga+number in list. put all textures in the texture folder
## 
##If you have icons the names will be the same as textures with an exception that it needs the prefix item_ and armor will be dakiArmor. activate this by setting the Icon value true. tip:it is not actually needed,if you don't have icons, because it is false by default.
##
##To write tooltips for your items put a comma ,tooltip=  after the name
##
##do not put spaces between lines, the script will assume it is done.
##
##If redoing a mod that is already generated it is recommended to delete its folder in this same directory, the script may rewrite to files and that can cause issues
##
##here is an example format, the names can be on any line after type they just need commas between each one if there is more than one on a line. delete the example and replace with your own
##
ModName=#Test
Type=daki
Icon=false
dakiName1,dakiName2,dakiName3,dakiName4,etc
dakiName5,tooltip = this will show when i highlight this item
dakiName6
dakiName7
dakiName8
etc
Type=manga
Icon=false
mangaName1,mangaName2,mangaName3,mangaName4,etc
mangaName5
mangaName6
mangaName7
mangaName8
etc
]]
DakiData.texInfo = 
[[put textures (not icons) in this folder. all textures need to be .png images 

daki textures need to be named daki1.png - daki+totalNumberOfDaki.png and the armor dakiArmor1.png - dakiArmor+totalNumberOfDaki.png

manga textures need to be named manga1.png - manga+totalNumberOfDoujinshi.png

the number matches whatever position in the list the name you wrote into DakiScript.ini is
]]