Skip to content

Commit

Permalink
1b0252c
Browse files Browse the repository at this point in the history
- Graphical rework to most of the buildings and added some indoor decorations when near it.
- Healer_Monk now gives the "+5 Armour_buff" to all own Infantry Units in 100 radius.
- New Healthbar Decal by Sioxer.
- Removed Pushforce to all Infantry units, Monk_Healer not included.
- When a player is defeated, all of it's buildings and units will be destroyed as a result of destruction and they no longer have a place to go.
- Some few QoL changes and AI fixes.

- Monk Units not including "Healer Monk" are now locked only to Ikko-Ikki as Special
Units from the Buddhist Temple.
- Increased the healing rate of Healer Monk.
- Increased Tetsubo's armour.
- Reduced repair rate of peasants.
- Increase Tier-2 Archer-Tower maximum health and increase cost to 200g and 100w.

- Increased the radius of buildings at which it can be attacked or repaired.
- Reduced the healing rate of the Buddhist Temple + Graphical rework
- Sword School Graphical Rework
  • Loading branch information
Satobi46 committed Oct 7, 2023
1 parent 9e3438b commit 9eddba0
Show file tree
Hide file tree
Showing 234 changed files with 1,240 additions and 488 deletions.
Binary file added Shogun Warfare/0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shogun Warfare/audio/base_attack.wav
Binary file not shown.
Binary file added Shogun Warfare/audio/bomb01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/bow/bow01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/defeat01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/defeat01.wav
Binary file not shown.
Binary file added Shogun Warfare/audio/explode/explode01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/explode/explode02.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/explode/launch01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/explode/launch02.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/matchlocks/projectile01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/scan01.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/skills/bloodLust.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/treeFall.ogg
Binary file not shown.
Binary file added Shogun Warfare/audio/victory01.ogg
Binary file not shown.
21 changes: 15 additions & 6 deletions Shogun Warfare/buildings.template
Expand Up @@ -4,6 +4,7 @@ soundOnNewSelection: ROOT:audio\click1.wav

[graphics]
image_shield: ROOT:images\noshield.png
icon_build:icon.png

[decal_circle]
basePosition: self.getOffsetRelative(diroffset=self.timeAlive()*50)
Expand All @@ -12,25 +13,33 @@ imageScale: 1.7
frame_width: 32
frame_height: 32
teamColors: true

onlyWithZoomLevelOrMore: 0.4
onlyWhileActive: true
onlyWhileAlive: true
#onlyTeam: own
teamColors: true
layer: shadow
alpha: 0.5

[decal_selection]
imageStack: ROOT:images\select.png*1
imageStack: ROOT:images\select3.png*1
imageScale: 2
frame_width: 32
frame_height: 32
alpha: 0.5
layer: beforeUI
teamColors: true
onlyWhenSelectedByAnyPlayer: true

[hiddenAction_baseUnderAttack]
[hiddenAction_baseUnderAttack1]
resetCustomTimer: true
autoTrigger: if self.hasTakenDamage(withinSeconds=1) and self.customTimer(laterThanSeconds=10)
playSoundToPlayer: ROOT:audio\base_attack.ogg
autoTrigger: if self.hasTakenDamage(withinSeconds=1) and self.customTimer(laterThanSeconds=5)
playSoundToPlayer: ROOT:audio\scan01.ogg: 1

[hiddenAction_killIfDefeat]
autoTrigger: if self.numberOfUnitsInTeam(withTag='camp', lessThan=1)
setResourcesWithLogic: hp=0


#[ai]
#lowPriorityTargetForOtherUnits: true

94 changes: 77 additions & 17 deletions Shogun Warfare/faction-camp.template
@@ -1,14 +1,13 @@
[core]
copyFrom:ROOT:buildings.template
class:CustomUnitMetadata
tags: camp
name:
displayText:
displayDescription:


isPickableStartingUnit:true
numBitsOnDeath: 5
selfRegenRate: 0.1
numBitsOnDeath: 10
selfRegenRate: 0
price: gold=100, wood=100
maxHp: 8000
mass: 30000
Expand All @@ -27,47 +26,83 @@ generation_resources: gold=1, wood=1, rice=1
generation_delay: 40
exit_x:0
exit_y:-10

[graphics]
total_frames: 1
total_frames: 6
icon_build: image.png
image: image.png
icon_build:ROOT:images\iconFactionCamp.png
image_back: image.png
image_wreak: image.png
image_wreak: baseRoof1.png
image_shadow: shadow.png
animation_idle_start: 0
animation_idle_end: 5
animation_idle_speed: 5
animation_idle_pingPong: true
shadowOffsetX: 0
shadowOffsetY: 0
drawLayer: bottom

[attack]
canAttack: false
canAttackFlyingUnits: false
canAttackLandUnits: false
canAttackUnderwaterUnits: false

[movement]
movementType: NONE
moveSpeed: 0

[ai]
buildPriority: 2

[hiddenAction_resource]
autoTriggerOnEvent: created
[hiddenAction_ai_extra1]
[hiddenAction_aiExtraIncome]
autoTrigger: if self.isControlledByAI()
requireConditional: if self.isControlledByAI()
addResources: gold=8, wood=8, rice=8
addResources: wood=+15, gold=+15, rice=+15
[hiddenAction_onDestroyed]
autoTriggerOnEvent: destroyed
spawnEffects: CUSTOM: destroyedCastle

[decal_circle]
@copyFrom_skipThisSection: true
[decal_castleImp]
@define TimeAliveMultipler: 200
@define scaleVariance: 0.01
layer:shadow
imageStack: ROOT:images\tcircle01.png*1
imageScale: 0.3+cos(self.timeAlive()*${TimeAliveMultipler})*${scaleVariance}
layer: shadow
order: 0
imageStack: ROOT:images\tCircleCastle.png*1
imageScale: 0.3
teamColors: true
onlyWhenSelectedByAnyPlayer: true
#[decal_castleImp]
#@define TimeAliveMultipler: 200
#@define scaleVariance: 0.01
#layer:shadow
#imageStack: ROOT:images\tcircle01.png*1
#imageScale: 0.3+cos(self.timeAlive()*${TimeAliveMultipler})*${scaleVariance}
#teamColors: true
#onlyWhenSelectedByAnyPlayer: true
[decal_FLAGS020fC78KVK]
layer:beforeUi
order: 2
order: 3
imageStack:clanflag.png
yOffsetRelative: 30
onlyWhenSelectedByAnyPlayer: true
[decal_roofBlock2]
image: baseRoof2.png
layer: beforeUI
order: 2
alpha: 0.2
imageScale: 1
teamColors: true
isVisible: true
[decal_roofBlock3]
image: baseRoof1.png
layer: beforeUI
order: 2
imageScale: 1
teamColors: true
isVisible: if self.numberOfUnitsInTeam(withTag='infantry', lessThan=1, withinRange=60)

[canBuild_0]
name: setRally
Expand All @@ -94,8 +129,33 @@ isVisible: if self.isControlledByAI()
name: yari_ashigaru_exp
isVisible: if self.isControlledByAI()


#[hiddenAction_yearCalendar] ## will be used later in game ##
#autoTriggerOnEvent: created
#isActive:true
#addResources:year=1
#addResources:year=1
### Victory / Defeated Sounds ###
#[hiddenAction_baseOwnDefeated]
#autoTriggerOnEvent: destroyed
#playSoundToPlayer: ROOT:audio\defeat01.ogg: 1
#debugMessage: [You have been destroyed!]
#[hiddenAction_baseOwnVictory]
#autoTrigger: if self.numberOfUnitsInEnemyTeam(withTag="camp") < 1
#playSoundToPlayer: ROOT:audio\victory01.ogg: 1
#debugMessage: [You are victorious!]

[effect_destroyedCastle]
image: ROOT:images\destroyed2.png
priority: high
drawUnderUnits: false
life: 400
alpha: 1
scaleFrom: 0.3
scaleTo: 0.3
fadeOut: true
hSpeed: 0.2
attachedToUnit: true
createWhenZoomedOut: true
spawnChance: 100



20 changes: 11 additions & 9 deletions Shogun Warfare/faction/faction_selector/faction.ini
@@ -1,11 +1,10 @@
[core]
overrideAndReplace: commandCenter
name: Faction Selection
copyFrom:ROOT:all-units.template
copyFrom: ROOT:all-units.template
isPickableStartingUnit:true
displayText: Select Your Clan
#displayDescription: -
tags:selector
tags: camp, selector, factionSelection
class: CustomUnitMetadata
price: 0
maxHp: 500
Expand All @@ -29,7 +28,7 @@ isBuilding: true
convertTo: Takeda Camp
displayType: upgrade
text: Takeda Clan
buildSpeed: 5s
buildSpeed: 3s
highPriorityQueue: true
ai_isHighPriority: true
iconImage: takeda.png
Expand All @@ -39,7 +38,7 @@ addResources: gold=50, wood=50, rice=50
convertTo: Otomo Camp
displayType: upgrade
text: Otomo Clan
buildSpeed: 5s
buildSpeed: 3s
highPriorityQueue: true
ai_isHighPriority: true
iconImage: otomo.png
Expand All @@ -49,7 +48,7 @@ addResources: gold=50, wood=50, rice=50
convertTo: Shimazu Camp
displayType: upgrade
text: Shimazu Clan
buildSpeed: 5s
buildSpeed: 3s
highPriorityQueue: true
ai_isHighPriority: true
iconImage: shimazu.png
Expand All @@ -59,7 +58,7 @@ addResources: gold=50, wood=50, rice=50
convertTo: Hojo Camp
displayType: upgrade
text: Hojo Clan
buildSpeed: 5s
buildSpeed: 3s
highPriorityQueue: true
ai_isHighPriority: true
iconImage: hojo.png
Expand All @@ -69,7 +68,7 @@ addResources: gold=50, wood=50, rice=50
convertTo: Oda Camp
displayType: upgrade
text: Oda Clan
buildSpeed: 5s
buildSpeed: 3s
highPriorityQueue: true
ai_isHighPriority: true
iconImage: oda.png
Expand All @@ -79,7 +78,7 @@ addResources: gold=50, wood=50, rice=50
convertTo: Ikko Ikki Camp
displayType: upgrade
text: Ikko Ikki Clan
buildSpeed: 5s
buildSpeed: 3s
highPriorityQueue: true
ai_isHighPriority: true
iconImage: ikkoikki.png
Expand Down Expand Up @@ -125,3 +124,6 @@ teamColors: true
alwaysStartDirAtZero: true
yOffsetAbsolute: 30
imageScale: 1



Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -3,5 +3,5 @@ name: Hojo Camp
class: CustomUnitMetadata
displayText: Hojo Camp
displayDescription: - Main Camp for Hojo
tags: building, structure, hojo
tags: building, structure, hojo, camp, maincamp, mainCamp
copyFrom:ROOT:faction-camp.template
Binary file modified Shogun Warfare/faction/main/Faction Camps/Hojo Camp/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shogun Warfare/faction/main/Faction Camps/Hojo Camp/shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -3,5 +3,5 @@ name: Ikko Ikki Camp
class: CustomUnitMetadata
displayText: Ikko Ikki Camp
displayDescription: - Main Camp for Ikko Ikki
tags: building, structure, ikko ikki
tags: building, structure, ikkoikkiCamp, ikko ikki, camp, maincamp, mainCamp
copyFrom:ROOT:faction-camp.template
Binary file modified Shogun Warfare/faction/main/Faction Camps/Ikko Ikki/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shogun Warfare/faction/main/Faction Camps/Ikko Ikki/shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -3,5 +3,5 @@ name: Oda Camp
class: CustomUnitMetadata
displayText: Oda Camp
displayDescription: - Main Camp for Oda
tags: building, structure, Oda
tags: building, structure, oda, odacamp, camp, maincamp, mainCamp
copyFrom:ROOT:faction-camp.template
Binary file modified Shogun Warfare/faction/main/Faction Camps/Oda Camp/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shogun Warfare/faction/main/Faction Camps/Oda Camp/shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -3,5 +3,5 @@ name: Otomo Camp
class: CustomUnitMetadata
displayText: Otomo Camp
displayDescription: - Main Camp for Otomo
tags: building, structure, otomo
tags: building, structure, otomo, camp, maincamp, mainCamp
copyFrom:ROOT:faction-camp.template
Binary file modified Shogun Warfare/faction/main/Faction Camps/Otomo Camp/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shogun Warfare/faction/main/Faction Camps/Otomo Camp/shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -3,5 +3,5 @@ name: Shimazu Camp
class: CustomUnitMetadata
displayText: Shimazu Camp
displayDescription: - Main Camp for Shimazu
tags: building, structure, shimazu
tags: building, structure, shimazu, camp, maincamp, mainCamp
copyFrom:ROOT:faction-camp.template
Binary file modified Shogun Warfare/faction/main/Faction Camps/Shimazu Camp/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -3,5 +3,5 @@ name: Takeda Camp
class: CustomUnitMetadata
displayText: Takeda Camp
displayDescription: - Main Camp for Takeda
tags: building, structure, takeda
tags: building, structure, takeda, camp, maincamp, mainCamp
copyFrom:ROOT:faction-camp.template
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified Shogun Warfare/faction/main/Faction Camps/Takeda Camp/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shogun Warfare/faction/main/Infantry/bow/bow_ashigaru/base.png
Expand Up @@ -59,7 +59,7 @@ image: arrow.png
directDamage: 15
life: 150
instant: false
pushForce: 400
#pushForce: 400
speed: 3
ballistic: true
ballistic_delaymove_height: 15
Expand Down
Expand Up @@ -18,7 +18,7 @@ displayRadius: 10
selfRegenRate: 0.01
effectOnDeath: blood*5, dsound01

isUnselectable: false
isUnselectable: true

@memory Rank: float

Expand Down Expand Up @@ -73,7 +73,7 @@ image: arrow.png
directDamage: 15
life: 150
instant: false
pushForce: 650
#pushForce: 400
speed: 3
ballistic: true
ballistic_delaymove_height: 15
Expand Down
Expand Up @@ -18,7 +18,7 @@ displayRadius: 10
selfRegenRate: 0.01
effectOnDeath: blood*5, dsound01

isUnselectable: false
isUnselectable: true

@memory Rank: float

Expand Down Expand Up @@ -73,7 +73,7 @@ image: arrow.png
directDamage: 15
life: 150
instant: false
pushForce: 500
#pushForce: 400
speed: 3
ballistic: true
ballistic_delaymove_height: 15
Expand Down
Expand Up @@ -60,7 +60,7 @@ image: arrow.png
directDamage: 45
life: 150
instant: false
pushForce: 400
#pushForce: 400
speed: 3
ballistic: true
ballistic_delaymove_height: 15
Expand Down
Expand Up @@ -59,7 +59,7 @@ image: arrow.png
directDamage: 30
life: 150
instant: false
pushForce: 400
#pushForce: 400
speed: 3
ballistic: true
ballistic_delaymove_height: 15
Expand Down

0 comments on commit 9eddba0

Please sign in to comment.