Jump to content
Sign in to follow this  
M1cromanagement

After Patch & editing the buff dont work | Duration ,display doesnt work

Recommended Posts

Hey guys can anyone help me with this Buff? it stuck on 15 min on the duration display

	<buff name="buffStaminaMax25" name_key="buffStaminaMax25" description_key="buffStaminaMax25Desc" icon="ui_game_symbol_coffee">
		<stack_type value="replace"/><duration value="0"/>
		<display_value value=".buffStaminaMax25Display"/><display_value_format value="time"/>
		<effect_group>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="subtract" value="@$MetabolismDuration"/>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffStaminaMax25Display" operation="set" value="@$buffStaminaMax25Duration"/>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffStaminaMax25Display" operation="divide" value="@$MetabolismDuration"/>
		</effect_group>
		<effect_group>
			<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffStaminaMax25">
				<requirement name="CVarCompare" cvar="$buffStaminaMax25Duration" operation="LTE" value="0"/>
			</triggered_effect>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar=".buffStaminaMax25Display" operation="set" value="0"/>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="set" value="0"/>
		</effect_group>
		<effect_group>
			<passive_effect name="StaminaMax" operation="base_add" value="25"/>
		</effect_group>
	</buff>

-

<item name="foodCanStaminaMax">
	<property name="Tags" value="food"/>
	<property name="HoldType" value="31"/>
	<property name="DisplayType" value="foodCanStaminaMax"/>
	<property name="CustomIcon" value="foodCanStaminaMax"/>
	<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
	<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
	<property name="Material" value="Mmetal"/>
	<property name="Weight" value="5"/>
	<property name="EconomicValue" value="60"/>
	<property name="UnlockedBy" value="perkMasterChef,foodCanStaminaMaxSchematic"/>
	<property name="Stacknumber" value="10"/> <!-- STK food -->
	<property class="Action0">
		<property name="Class" value="Eat"/>
		<property name="Delay" value="1.0"/>
		<property name="Use_time" value="..."/>
		<property name="Sound_start" value="player_eating"/>
		<property name="Create_item" value="toolCookingPot"/>
	</property>
	<property name="Group" value="Food/Cooking,CFFood/Cooking"/>

	<effect_group tiered="false" name="Food Tier 2">
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$waterAmountAdd" operation="add" value="5"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="5"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="5"/>

		<display_value name="dStaminaMax" value="25"/>
		<display_value name="dDuration" value="900"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="add" value="0.09"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="set" value="0.45">
			<requirement name="CVarCompare" cvar="$buffStaminaMax25Duration" operation="GT" value="0.45"/></triggered_effect>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables,buffStaminaMax25"/>
	</effect_group>
</item>

 

Edited by M1cromanagement (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...